mail/src/tpl/login-initial.html

53 lines
2.3 KiB
HTML
Raw Normal View History

2013-11-11 07:28:05 -05:00
<div class="view-login" ng-class="{'waiting-cursor': state.ui === 2}">
2013-10-21 12:50:19 -04:00
<div class="logo-wrapper">
<div class="logo"></div>
</div><!--/logo-->
2013-10-21 07:10:42 -04:00
2013-11-11 07:28:05 -05:00
<div class="content" ng-switch on="state.ui">
2013-11-11 07:08:27 -05:00
<div ng-switch-when="1">
<h1>Set passphrase</h1>
2013-11-18 11:44:59 -05:00
<p>The passphrase protects your keypair. If you forget your passphrase you will not be able to recover your messages.</p>
2013-11-11 07:08:27 -05:00
<form>
<div>
2013-11-11 07:28:05 -05:00
<input type="password" ng-model="state.passphrase" placeholder="Enter passphrase" tabindex="1" focus-me="true">
<input type="password" ng-model="state.confirmation" ng-class="{error: state.confirmation !== state.passphrase}" placeholder="Confirm passphrase" tabindex="2">
2013-12-04 08:47:04 -05:00
<span class="popover-info" data-icon-append="&#xe010;" popover="#passphrase-info"></span>
2013-11-11 07:08:27 -05:00
</div>
<div>
2013-11-11 07:28:05 -05:00
<button type="submit" ng-click="confirmPassphrase()" class="btn" ng-disabled="!state.passphrase || state.passphrase !== state.confirmation" tabindex="3">Generate keypair</button>
2013-11-11 07:08:27 -05:00
</div>
</form>
</div>
<div ng-switch-when="2">
<h1>Generating keypair</h1>
<p>Please stand by. This can take a while...</p>
</div>
<div ng-switch-when="4">
<h1>Keypair generated</h1>
2013-11-18 11:44:59 -05:00
<p>Your personal keypair has been generated. You can export it (e.g. to a USB flash drive) to setup Whiteout Mail on another computer or as a backup.</p>
2013-11-11 07:08:27 -05:00
<button ng-click="exportKeypair()" class="btn" tabindex="4">Export now</button>
<button ng-click="proceed()" class="btn" tabindex="5">Do it later</button>
2013-11-11 07:08:27 -05:00
</div>
2013-10-21 07:10:42 -04:00
2013-10-23 11:17:36 -04:00
</div><!--/content-->
</div>
<!-- lightbox -->
<div class="lightbox-overlay" ng-class="{'show': state.dialog.open}">
<div class="lightbox lightbox-effect view-dialog" ng-include="'tpl/dialog.html'"></div>
2013-12-04 08:47:04 -05:00
</div>
<!-- popovers -->
<div id="passphrase-info" class="popover right" ng-controller="PopoverCtrl">
<div class="arrow"></div>
<div class="popover-title"><b>What is this?</b></div>
<div class="popover-content">
<p>A passphrase is like a password but longer.</p>
<p>If your device is lost or stolen the passphrase protects the contents of your mailbox.</p>
<p>The passphrase should consist of multiple words that are easy to remember.</p>
<p>You cannot change your passphrase at a later time.</p>
</div>
</div><!--/.popover-->