2014-03-20 06:39:36 +08:00
|
|
|
<div class="popups">
|
|
|
|
<div class="modal hide b-compose-open-pgp-content g-ui-user-select-none" data-bind="modal: modalVisibility">
|
|
|
|
<div>
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-bind="command: cancelCommand">×</button>
|
|
|
|
<h3>
|
2015-03-21 04:23:41 +08:00
|
|
|
<span class="i18n" data-i18n="POPUPS_COMPOSE_OPEN_PGP/TITLE_COMPOSE_OPEN_PGP"></span>
|
2014-03-20 06:39:36 +08:00
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="form-horizontal">
|
|
|
|
<div class="alert" data-bind="visible: '' !== notification()">
|
|
|
|
<span data-bind="text: notification"></span>
|
|
|
|
</div>
|
|
|
|
<br />
|
|
|
|
<div class="control-group">
|
2014-04-02 07:58:24 +08:00
|
|
|
<div class="controls">
|
2014-10-30 05:08:53 +08:00
|
|
|
<div data-bind="component: {
|
|
|
|
name: 'Checkbox',
|
|
|
|
params: {
|
|
|
|
label: 'POPUPS_COMPOSE_OPEN_PGP/LABEL_SIGN',
|
|
|
|
value: sign
|
|
|
|
}
|
|
|
|
}"></div>
|
|
|
|
<div data-bind="component: {
|
|
|
|
name: 'Checkbox',
|
|
|
|
params: {
|
|
|
|
label: 'POPUPS_COMPOSE_OPEN_PGP/LABEL_ENCRYPT',
|
|
|
|
value: encrypt
|
|
|
|
}
|
|
|
|
}"></div>
|
2014-04-02 07:58:24 +08:00
|
|
|
</div>
|
2014-03-20 06:39:36 +08:00
|
|
|
</div>
|
|
|
|
<div class="control-group">
|
2015-03-21 04:23:41 +08:00
|
|
|
<label class="i18n control-label" data-i18n="POPUPS_COMPOSE_OPEN_PGP/LABEL_PASSWORD"></label>
|
2014-03-20 06:39:36 +08:00
|
|
|
<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"
|
2014-04-11 05:07:23 +08:00
|
|
|
data-bind="value: password, hasfocus: password.focus, onEnter: doCommand" />
|
2014-03-20 06:39:36 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2014-04-11 05:07:23 +08:00
|
|
|
<button class="btn buttonDo" data-bind="command: doCommand, hasfocus: buttonFocus">
|
2014-03-21 07:47:13 +08:00
|
|
|
<i data-bind="css: {'icon-key': !submitRequest(), 'icon-spinner animated': submitRequest()}"></i>
|
2014-03-20 06:39:36 +08:00
|
|
|
|
2015-03-21 04:23:41 +08:00
|
|
|
<span class="i18n" data-bind="visible: sign() && !encrypt()" data-i18n="POPUPS_COMPOSE_OPEN_PGP/BUTTON_SIGN"></span>
|
|
|
|
<span class="i18n" data-bind="visible: !sign() && encrypt()" data-i18n="POPUPS_COMPOSE_OPEN_PGP/BUTTON_ENCRYPT"></span>
|
|
|
|
<span class="i18n" data-bind="visible: (sign() && encrypt()) || (!sign() && !encrypt())" data-i18n="POPUPS_COMPOSE_OPEN_PGP/BUTTON_SIGN_AND_ENCRYPT"></span>
|
2014-04-11 05:07:23 +08:00
|
|
|
</button>
|
2014-03-20 06:39:36 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|