2013-11-12 06:01:44 +08:00
|
|
|
<div class="popups">
|
2015-02-16 05:55:59 +08:00
|
|
|
<div class="modal hide b-identity-content" data-bind="modal: modalVisibility">
|
2013-11-12 06:01:44 +08:00
|
|
|
<div>
|
2015-02-16 05:55:59 +08:00
|
|
|
<div class="modal-header g-ui-user-select-none">
|
2013-11-12 06:01:44 +08:00
|
|
|
<button type="button" class="close" data-bind="command: cancelCommand">×</button>
|
|
|
|
<h3>
|
2015-02-12 05:47:12 +08:00
|
|
|
<span data-bind="visible: !edit()" class="i18n" data-i18n-text="POPUPS_IDENTITY/TITLE_ADD_IDENTITY"></span>
|
|
|
|
<span data-bind="visible: edit" class="i18n" data-i18n-text="POPUPS_IDENTITY/TITLE_UPDATE_IDENTITY"></span>
|
2013-11-12 06:01:44 +08:00
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
2015-02-16 05:55:59 +08:00
|
|
|
<div class="form-horizontal g-ui-user-select-none">
|
2013-11-12 06:01:44 +08:00
|
|
|
<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}">
|
2015-02-12 05:47:12 +08:00
|
|
|
<label class="i18n control-label" data-i18n-text="POPUPS_IDENTITY/LABEL_EMAIL"></label>
|
2013-11-12 06:01:44 +08:00
|
|
|
<div class="controls">
|
2015-02-08 09:11:13 +08:00
|
|
|
<input type="email" class="inputEmail input-xlarge"
|
2014-04-29 23:31:49 +08:00
|
|
|
autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
|
2013-11-12 06:01:44 +08:00
|
|
|
data-bind="value: email, onEnter: addOrEditIdentityCommand, hasfocus: email.focused" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="control-group" data-bind="visible: owner">
|
2015-02-12 05:47:12 +08:00
|
|
|
<label class="i18n control-label" data-i18n-text="POPUPS_IDENTITY/LABEL_EMAIL"></label>
|
2013-11-12 06:01:44 +08:00
|
|
|
<div class="controls">
|
|
|
|
<div class="textEmail" data-bind="text: email"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="control-group">
|
2015-02-12 05:47:12 +08:00
|
|
|
<label class="i18n control-label" data-i18n-text="POPUPS_IDENTITY/LABEL_NAME"></label>
|
2013-11-12 06:01:44 +08:00
|
|
|
<div class="controls">
|
2015-02-08 09:11:13 +08:00
|
|
|
<input type="text" class="inputName input-xlarge"
|
2014-04-29 23:31:49 +08:00
|
|
|
autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
|
2013-11-12 06:01:44 +08:00
|
|
|
data-bind="value: name, onEnter: addOrEditIdentityCommand, hasfocus: name.focused" />
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-02-08 09:11:13 +08:00
|
|
|
<div class="control-group" data-bind="visible: showReplyTo, css: {'error': replyTo.hasError}">
|
2015-02-12 05:47:12 +08:00
|
|
|
<label class="i18n control-label" data-i18n-text="POPUPS_IDENTITY/LABEL_REPLY_TO"></label>
|
2013-11-12 06:01:44 +08:00
|
|
|
<div class="controls">
|
2015-02-08 09:11:13 +08:00
|
|
|
<input type="text" class="inputReplyTo input-xlarge"
|
2014-04-29 23:31:49 +08:00
|
|
|
autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
|
2013-11-12 06:01:44 +08:00
|
|
|
data-bind="value: replyTo, onEnter: addOrEditIdentityCommand, hasfocus: replyTo.focused" />
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-02-08 09:11:13 +08:00
|
|
|
<div class="control-group" data-bind="visible: showBcc, css: {'error': bcc.hasError}">
|
2015-02-12 05:47:12 +08:00
|
|
|
<label class="i18n control-label" data-i18n-text="POPUPS_IDENTITY/LABEL_BCC"></label>
|
2013-11-12 06:01:44 +08:00
|
|
|
<div class="controls">
|
2015-02-08 09:11:13 +08:00
|
|
|
<input type="text" class="inputBcc input-xlarge"
|
2014-04-29 23:31:49 +08:00
|
|
|
autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
|
2013-11-12 06:01:44 +08:00
|
|
|
data-bind="value: bcc, onEnter: addOrEditIdentityCommand, hasfocus: bcc.focused" />
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-02-08 09:11:13 +08:00
|
|
|
<div class="control-group" data-bind="visible: !showReplyTo() || !showBcc()">
|
|
|
|
<div class="controls">
|
|
|
|
<span data-bind="visible: !showReplyTo()">
|
2015-02-12 05:47:12 +08:00
|
|
|
<span class="i18n g-ui-link" data-i18n-text="POPUPS_IDENTITY/LABEL_REPLY_TO"
|
2015-02-08 09:11:13 +08:00
|
|
|
data-bind="click: function () { showReplyTo(true); }"></span>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
<span data-bind="visible: !showBcc()">
|
2015-02-12 05:47:12 +08:00
|
|
|
<span class="i18n g-ui-link" data-i18n-text="POPUPS_IDENTITY/LABEL_BCC"
|
2015-02-08 09:11:13 +08:00
|
|
|
data-bind="click: function () { showBcc(true); }"></span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-02-16 05:55:59 +08:00
|
|
|
</div>
|
|
|
|
<hr />
|
|
|
|
<div class="form-horizontal">
|
|
|
|
<div class="control-group g-ui-user-select-none">
|
2015-02-08 09:11:13 +08:00
|
|
|
<div class="controls">
|
|
|
|
<div data-bind="component: {
|
|
|
|
name: 'Checkbox',
|
|
|
|
params: {
|
2015-02-12 05:47:12 +08:00
|
|
|
label: 'POPUPS_IDENTITY/LABEL_SIGNATURE_INSERT_BEFORE',
|
2015-02-08 09:11:13 +08:00
|
|
|
value: signatureInsertBefore
|
|
|
|
}
|
|
|
|
}"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
|
|
<div class="e-signature-place" data-bind="initDom: signatureDom"></div>
|
|
|
|
</div>
|
2013-11-12 06:01:44 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2015-02-06 23:26:20 +08:00
|
|
|
<a class="btn buttonAddIdentity" data-bind="command: addOrEditIdentityCommand">
|
2014-10-22 00:49:15 +08:00
|
|
|
<i data-bind="visible: !edit(), css: {'icon-user-add': !submitRequest(), 'icon-spinner animated': submitRequest()}"></i>
|
|
|
|
<i data-bind="visible: edit, css: {'icon-ok': !submitRequest(), 'icon-spinner animated': submitRequest()}"></i>
|
2013-11-12 06:01:44 +08:00
|
|
|
|
2015-02-12 05:47:12 +08:00
|
|
|
<span data-bind="visible: !edit()" class="i18n" data-i18n-text="POPUPS_IDENTITY/BUTTON_ADD_IDENTITY"></span>
|
|
|
|
<span data-bind="visible: edit" class="i18n" data-i18n-text="POPUPS_IDENTITY/BUTTON_UPDATE_IDENTITY"></span>
|
2013-11-12 06:01:44 +08:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|