sWITCH TEST
This commit is contained in:
@@ -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()); }
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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#" />​<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;
|
||||
|
||||
|
||||
Generated
+9
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user