2013-12-25 08:05:04 +08:00
|
|
|
<div class="b-settings-accounts g-ui-user-select-none">
|
2015-02-16 21:46:22 +08:00
|
|
|
<div data-bind="visible: allowAdditionalAccount">
|
|
|
|
<div class="form-horizontal">
|
|
|
|
<div class="legend">
|
2015-03-21 04:23:41 +08:00
|
|
|
<span class="i18n" data-i18n="SETTINGS_ACCOUNTS/LEGEND_ACCOUNTS"></span>
|
2015-02-16 21:46:22 +08:00
|
|
|
|
|
|
|
<i class="icon-spinner animated" style="margin-top: 5px" data-bind="visible: accounts.loading"></i>
|
|
|
|
</div>
|
2013-11-12 06:01:44 +08:00
|
|
|
</div>
|
2015-02-16 21:46:22 +08:00
|
|
|
<a class="btn" data-bind="click: addNewAccount">
|
|
|
|
<i class="icon-user-add"></i>
|
|
|
|
|
2015-03-21 04:23:41 +08:00
|
|
|
<span class="i18n" data-i18n="SETTINGS_ACCOUNTS/BUTTON_ADD_ACCOUNT"></span>
|
2015-02-16 21:46:22 +08:00
|
|
|
</a>
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<table class="table table-hover list-table accounts-list" data-bind="i18nUpdate: accounts">
|
|
|
|
<colgroup>
|
|
|
|
<col />
|
|
|
|
<col style="width: 150px" />
|
|
|
|
<col style="width: 1%" />
|
|
|
|
</colgroup>
|
|
|
|
<tbody data-bind="sortable: {data: accounts, options: scrollableOptions(), afterMove: accountsAndIdentitiesAfterMove}">
|
|
|
|
<tr class="account-item">
|
|
|
|
<td class="e-action" data-bind="css: {'e-action': canBeEdit}">
|
|
|
|
<span class="account-img icon-user"></span>
|
|
|
|
<i class="icon-braille drag-handle"></i>
|
|
|
|
|
|
|
|
<span class="account-name" data-bind="text: email"></span>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<span data-bind="visible: !canBeDeleted()"></span>
|
|
|
|
<a class="btn btn-small btn-small-small btn-danger pull-right button-delete button-delete-transitions" data-bind="visible: canBeDeleted, css: {'delete-access': deleteAccess}, click: function(oAccount) { $root.deleteAccount(oAccount); }">
|
2015-03-21 04:23:41 +08:00
|
|
|
<span class="i18n" data-i18n="SETTINGS_ACCOUNTS/DELETING_ASK"></span>
|
2015-02-16 21:46:22 +08:00
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<span class="delete-account" data-bind="visible: !deleteAccess() && canBeDeleted(), click: function (oAccount) { $root.accountForDeletion(oAccount); }">
|
|
|
|
<i class="icon-trash"></i>
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2013-11-12 06:01:44 +08:00
|
|
|
</div>
|
2015-02-16 21:46:22 +08:00
|
|
|
<div data-bind="visible: allowIdentities">
|
|
|
|
<br />
|
|
|
|
<div class="form-horizontal">
|
|
|
|
<div class="legend">
|
2015-03-21 04:23:41 +08:00
|
|
|
<span class="i18n" data-i18n="SETTINGS_ACCOUNTS/LEGEND_IDENTITIES"></span>
|
2015-02-16 21:46:22 +08:00
|
|
|
</div>
|
2015-02-13 01:54:12 +08:00
|
|
|
</div>
|
2015-02-16 21:46:22 +08:00
|
|
|
<a class="btn" data-bind="click: addNewIdentity">
|
|
|
|
<i class="icon-user-add"></i>
|
|
|
|
|
2015-03-21 04:23:41 +08:00
|
|
|
<span class="i18n" data-i18n="SETTINGS_ACCOUNTS/BUTTON_ADD_IDENTITY"></span>
|
2015-02-16 21:46:22 +08:00
|
|
|
</a>
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<table class="table table-hover list-table identities-list" data-bind="i18nUpdate: identities">
|
|
|
|
<colgroup>
|
|
|
|
<col />
|
|
|
|
<col style="width: 150px" />
|
|
|
|
<col style="width: 1%" />
|
|
|
|
</colgroup>
|
|
|
|
<tbody data-bind="sortable: {data: identities, options: scrollableOptions(), afterMove: accountsAndIdentitiesAfterMove}">
|
|
|
|
<tr class="identity-item">
|
|
|
|
<td class="e-action">
|
|
|
|
<span class="identity-img icon-user"></span>
|
|
|
|
<i class="icon-braille drag-handle"></i>
|
|
|
|
|
|
|
|
<span class="identity-name" data-bind="text: formattedName()"></span>
|
2015-02-19 03:52:52 +08:00
|
|
|
|
|
|
|
<span class="identity-default" data-bind="visible: 0 === $index()">
|
2015-03-21 04:23:41 +08:00
|
|
|
(<span class="i18n" data-i18n="SETTINGS_ACCOUNTS/DEFAULT_IDENTITY_LABEL"></span>)
|
2015-02-19 03:52:52 +08:00
|
|
|
</span>
|
2015-02-16 21:46:22 +08:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<span data-bind="visible: !canBeDeleted()"></span>
|
|
|
|
<a class="btn btn-small btn-small-small btn-danger pull-right button-delete button-delete-transitions" data-bind="visible: canBeDeleted, css: {'delete-access': deleteAccess}, click: function(oIdentity) { $root.deleteIdentity(oIdentity); }">
|
2015-03-21 04:23:41 +08:00
|
|
|
<span class="i18n" data-i18n="SETTINGS_ACCOUNTS/DELETING_ASK"></span>
|
2015-02-16 21:46:22 +08:00
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<span class="delete-identity" data-bind="visible: !deleteAccess() && canBeDeleted(), click: function (oIdentity) { $root.identityForDeletion(oIdentity); }">
|
|
|
|
<i class="icon-trash"></i>
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2015-02-13 01:54:12 +08:00
|
|
|
</div>
|
2013-09-25 03:04:44 +08:00
|
|
|
</div>
|