2013-11-12 06:01:44 +08:00
|
|
|
<div class="popups">
|
2013-12-29 20:15:03 +08:00
|
|
|
<div class="modal hide b-account-add-content g-ui-user-select-none" data-bind="modal: modalVisibility">
|
2013-11-12 06:01:44 +08:00
|
|
|
<div>
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-bind="command: cancelCommand">×</button>
|
|
|
|
<h3>
|
2014-10-22 00:49:15 +08:00
|
|
|
<span data-bind="visible: isNew" class="i18n" data-i18n-text="POPUPS_ADD_ACCOUNT/TITLE_ADD_ACCOUNT"></span>
|
|
|
|
<span data-bind="visible: !isNew()" class="i18n" data-i18n-text="POPUPS_ADD_ACCOUNT/TITLE_UPDATE_ACCOUNT"></span>
|
2013-11-12 06:01:44 +08:00
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="form-horizontal">
|
|
|
|
<div class="alert" data-bind="visible: '' !== submitError()">
|
|
|
|
<button type="button" class="close" data-bind="click: function () { submitError('') }">×</button>
|
|
|
|
<span data-bind="text: submitError"></span>
|
|
|
|
</div>
|
|
|
|
<br />
|
|
|
|
<div class="control-group" data-bind="css: {'error': emailError}">
|
|
|
|
<label class="i18n control-label" data-i18n-text="LOGIN/LABEL_EMAIL"></label>
|
|
|
|
<div class="controls">
|
2014-10-22 00:49:15 +08:00
|
|
|
<label style="margin-top: 5px;"><strong data-bind="visible: !isNew(), text: email"></strong></label>
|
2014-04-29 23:31:49 +08:00
|
|
|
<input type="email" class="inputEmail input-large" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
|
2014-10-22 00:49:15 +08:00
|
|
|
data-bind="visible: isNew, textInput: email, onEnter: addAccountCommand, hasfocus: emailFocus" />
|
2013-11-12 06:01:44 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="control-group" data-bind="css: {'error': passwordError}">
|
|
|
|
<label class="i18n control-label" data-i18n-text="LOGIN/LABEL_PASSWORD"></label>
|
|
|
|
<div class="controls">
|
2014-04-29 23:31:49 +08:00
|
|
|
<input type="password" class="inputPassword input-large" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
|
2013-11-12 06:01:44 +08:00
|
|
|
data-bind="value: password, onEnter: addAccountCommand" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<a class="btn buttonAddAccount" data-bind="command: addAccountCommand">
|
2014-10-22 00:49:15 +08:00
|
|
|
<i data-bind="visible: isNew, css: {'icon-user-add': !submitRequest(), 'icon-spinner animated': submitRequest()}"></i>
|
|
|
|
<i data-bind="visible: !isNew(), css: {'icon-ok': !submitRequest(), 'icon-spinner animated': submitRequest()}"></i>
|
2013-11-12 06:01:44 +08:00
|
|
|
|
2014-10-22 00:49:15 +08:00
|
|
|
<span data-bind="visible: isNew" class="i18n" data-i18n-text="POPUPS_ADD_ACCOUNT/BUTTON_ADD_ACCOUNT"></span>
|
|
|
|
<span data-bind="visible: !isNew()" class="i18n" data-i18n-text="POPUPS_ADD_ACCOUNT/BUTTON_UPDATE_ACCOUNT"></span>
|
2013-11-12 06:01:44 +08:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|