2016-09-11 05:30:17 +08:00
|
|
|
<div class="vault_wrapper">
|
|
|
|
<div class="vaults"
|
|
|
|
ng-if="!list_selected_vault && !creating_vault">
|
|
|
|
<div class="ui-select-container ui-select-bootstrap vaultlist">
|
|
|
|
<ul>
|
|
|
|
<li ng-click="newVault()">+ Create a new vault</li>
|
|
|
|
<li ng-repeat="vault in vaults"
|
|
|
|
ng-class="{'selected': vault == list_selected_vault }"
|
|
|
|
ng-click="selectVault(vault)">
|
|
|
|
<div>
|
|
|
|
<span class="ui-select-choices-row-inner">
|
|
|
|
<div class="ng-binding ng-scope">{{vault.name}}</div>
|
|
|
|
<small class="ng-binding ng-scope">
|
|
|
|
Created: {{vault.created * 1000 | date:'dd-MM-yyyy @ HH:mm:ss'}}
|
|
|
|
|
|
|
|
|
Last accessed: {{vault.last_access * 1000 | date:'dd-MM-yyyy @ HH:mm:ss'}}
|
|
|
|
</small>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</li>
|
2016-09-11 18:33:09 +08:00
|
|
|
<li ng-if="vaults.length === 0">No vaults found, why not create one?</li>
|
2016-09-11 05:30:17 +08:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div ng-if="creating_vault">
|
2016-09-11 18:33:09 +08:00
|
|
|
<div class="login_form" ng-init="vault_name = '' ">
|
2016-09-11 05:30:17 +08:00
|
|
|
Please give your new vault a name.
|
|
|
|
<div>
|
2016-09-11 18:33:09 +08:00
|
|
|
<input type="text" ng-model="vault_name">
|
2016-09-11 05:30:17 +08:00
|
|
|
</div>
|
|
|
|
<div class="button_wrapper">
|
2016-09-11 18:33:09 +08:00
|
|
|
<div class="button button-geen" ng-click="createVault(vault_name)">
|
2016-09-11 05:30:17 +08:00
|
|
|
Create vault
|
|
|
|
</div>
|
|
|
|
<div class="button button-red" ng-click="clearState()">
|
|
|
|
Cancel
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div ng-if="list_selected_vault != false">
|
|
|
|
<div class="vaultlist">
|
|
|
|
<ul>
|
|
|
|
<li ng-click="clearState()">Go back to vaults</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="login_form">
|
|
|
|
Please input the password for {{list_selected_vault.name}}
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<input type="password">
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<label>
|
2016-09-11 19:29:52 +08:00
|
|
|
<input type="checkbox" ng-checked="default_vault" ng-click="toggleDefaultVault()">
|
2016-09-11 05:30:17 +08:00
|
|
|
Set this vault as default.
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<label>
|
|
|
|
<input type="checkbox" ng-model="remember_vault_password">
|
|
|
|
Login automatically to this vault.
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="button button-geen">
|
|
|
|
Decrypt vault
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|