1 <div class="generic-page-wrapper">
2 <h1>{{$title}} <a href="help/Two-Factor-Authentication" title="{{$help_label}}" class="btn btn-default btn-sm"><i aria-hidden="true" class="fa fa-question fa-2x"></i></a></h1>
3 <div>{{$message nofilter}}</div>
5 {{if $generated_app_specific_password}}
6 <div class="panel panel-success">
7 <div class="panel-heading">
8 ✅ {{$generated_app_specific_password.plaintext_password}}
10 <div class="panel-body">
11 {{$generated_message}}
16 <form action="settings/2fa/app_specific?t={{$password_security_token}}" method="post">
17 <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
18 <table class="app-specific-passwords table table-hover table-condensed table-striped">
21 <th>{{$description_label}}</th>
22 <th>{{$last_used_label}}</th>
23 <th><button type="submit" name="action" class="btn btn-primary btn-small" value="revoke_all">{{$revoke_all_label}}</button></th>
27 {{foreach $app_specific_passwords as $app_specific_password}}
28 <tr{{if $generated_app_specific_password && $app_specific_password.id == $generated_app_specific_password.id}} class="success"{{/if}}>
30 {{$app_specific_password.description}}
33 <time class="time" title="{{$app_specific_password.local}}" data-toggle="tooltip" datetime="{{$app_specific_password.utc}}">{{$app_specific_password.ago}}</time>
36 <button type="submit" name="revoke_id" class="btn btn-default btn-small" value="{{$app_specific_password.id}}">{{$revoke_label}}</button>
43 <form action="settings/2fa/app_specific?t={{$password_security_token}}" method="post">
44 <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
45 <h3>{{$generate_title}}</h3>
46 <p>{{$generate_message}}</p>
47 <div class="form-group">
48 <label for="app-specific-password-description">{{$description_label}}</label>
49 <input type="text" maxlength="255" name="description" id="app-specific-password-description" class="form-control" placeholder="{{$description_placeholder_label}}" required/>
52 <button type="submit" name="action" class="btn btn-large btn-primary" value="generate">{{$generate_label}}</button>