sWITCH TEST

This commit is contained in:
Falkvinge
2016-11-13 00:30:04 +01:00
parent 801a2edaa2
commit 863e9bad43
3 changed files with 31 additions and 1 deletions
+14
View File
@@ -62,6 +62,20 @@ namespace Swarmops.Frontend
{
get { return this._authority; }
}
// Common localizations
// ReSharper disable InconsistentNaming
public string Localized_SwitchLabelOn_Upper
{
get { return CommonV5.JavascriptEscape(Resources.Global.Global_On.ToUpperInvariant()); }
}
public string Localized_SwitchLabelOff_Upper
{
get { return CommonV5.JavascriptEscape(Resources.Global.Global_Off.ToUpperInvariant()); }
}
}
}
+8 -1
View File
@@ -257,7 +257,8 @@
<h2><span class="spanModalEditingPersonName">PERSONNAME</span>: <asp:Label ID="MasterLabelEditPersonHeaderSecurityProvisioning" runat="server" /></h2>
<div class="entryFields">
<input type="button" id="masterPersonEditButtonResetPassword" onclick="masterPersonEditorConfirmResetPassword(); return false;" value="#SendResetMail#" />&#8203;<br/>
<input type="input" todo="true"/>
<label for="MasterCheckEditPersonEnable2FA"><asp:Label ID="MasterLabelEditPersonSecurity2FA" runat="server" Text="Bitcoin Cold"/></label><div class="CheckboxContainer"><input type="checkbox" rel="MasterPersonEdit2FA" class="EditCheck" id="MasterCheckEditPersonEnable2FA"/></div><br/>
</div>
<div class="entryLabels">
<asp:Label runat="server" ID="MasterLabelEditPersonResetPassword" /><br/>
@@ -352,6 +353,12 @@
// This JavaScript block is for the Master Modal Person Editor.
$(document).ready(function() {
$('.EditCheck').switchbutton({
checkedLabel: SwarmopsJS.unescape('<%= this.Localized_SwitchLabelOn_Upper %>'),
uncheckedLabel: SwarmopsJS.unescape('<%= this.Localized_SwitchLabelOff_Upper %>'),
}).change(function() { });
function masterBeginEditPerson(personId) {
_master_PersonEditedId = personId;
+9
View File
@@ -372,6 +372,15 @@ namespace Swarmops.Frontend {
/// </remarks>
protected global::System.Web.UI.WebControls.Label MasterLabelEditPersonHeaderSecurityProvisioning;
/// <summary>
/// MasterLabelEditPersonSecurity2FA control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label MasterLabelEditPersonSecurity2FA;
/// <summary>
/// MasterLabelEditPersonResetPassword control.
/// </summary>