2013-11-12 06:01:44 +08:00
|
|
|
<div class="popups">
|
2013-12-29 20:15:03 +08:00
|
|
|
<div class="modal hide b-identity-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>
|
|
|
|
<span data-bind="text: label"></span>
|
|
|
|
</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="visible: !owner(), css: {'error': email.hasError}">
|
|
|
|
<label class="i18n control-label" data-i18n-text="POPUPS_IDENTITIES/LABEL_EMAIL"></label>
|
|
|
|
<div class="controls">
|
|
|
|
<input class="inputEmail input-large" type="email" autocomplete="off"
|
|
|
|
data-bind="value: email, onEnter: addOrEditIdentityCommand, hasfocus: email.focused" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="control-group" data-bind="visible: owner">
|
|
|
|
<label class="i18n control-label" data-i18n-text="POPUPS_IDENTITIES/LABEL_EMAIL"></label>
|
|
|
|
<div class="controls">
|
|
|
|
<div class="textEmail" data-bind="text: email"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
|
|
<label class="i18n control-label" data-i18n-text="POPUPS_IDENTITIES/LABEL_NAME"></label>
|
|
|
|
<div class="controls">
|
|
|
|
<input class="inputName input-large" type="text" autocomplete="off"
|
|
|
|
data-bind="value: name, onEnter: addOrEditIdentityCommand, hasfocus: name.focused" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="control-group" data-bind="css: {'error': replyTo.hasError}" style="display: none">
|
|
|
|
<label class="i18n control-label" data-i18n-text="POPUPS_IDENTITIES/LABEL_REPLY_TO"></label>
|
|
|
|
<div class="controls">
|
|
|
|
<input class="inputReplyTo input-large" type="text" autocomplete="off"
|
|
|
|
data-bind="value: replyTo, onEnter: addOrEditIdentityCommand, hasfocus: replyTo.focused" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="control-group" data-bind="css: {'error': bcc.hasError}" style="display: none">
|
|
|
|
<label class="i18n control-label" data-i18n-text="POPUPS_IDENTITIES/LABEL_BCC"></label>
|
|
|
|
<div class="controls">
|
|
|
|
<input class="inputBcc input-large" type="text" autocomplete="off"
|
|
|
|
data-bind="value: bcc, onEnter: addOrEditIdentityCommand, hasfocus: bcc.focused" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<a class="btn buttonAddAccount" data-bind="command: addOrEditIdentityCommand">
|
2013-12-15 06:42:32 +08:00
|
|
|
<i data-bind="css: {'icon-user-add': !submitRequest(), 'icon-spinner animated': submitRequest()}"></i>
|
2013-11-12 06:01:44 +08:00
|
|
|
|
|
|
|
<span data-bind="text: button"></span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|