]> git.mxchange.org Git - friendica.git/blob - view/templates/settings/twofactor/app_specific.tpl
spelling: overridden
[friendica.git] / view / templates / settings / twofactor / app_specific.tpl
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>
4
5 {{if $generated_app_specific_password}}
6         <div class="panel panel-success">
7                 <div class="panel-heading">
8                         ✅ {{$generated_app_specific_password.plaintext_password}}
9                 </div>
10                 <div class="panel-body">
11             {{$generated_message}}
12                 </div>
13         </div>
14 {{/if}}
15
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">
19                         <thead>
20                                 <tr>
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>
24                                 </tr>
25                         </thead>
26                         <tbody>
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}}>
29                                         <td>
30                                 {{$app_specific_password.description}}
31                                         </td>
32                                         <td>
33                                                 <time class="time" title="{{$app_specific_password.local}}" data-toggle="tooltip" datetime="{{$app_specific_password.utc}}">{{$app_specific_password.ago}}</time>
34                                         </td>
35                                         <td>
36                                                 <button type="submit" name="revoke_id" class="btn btn-default btn-small" value="{{$app_specific_password.id}}">{{$revoke_label}}</button>
37                                         </td>
38                                 </tr>
39 {{/foreach}}
40                         </tbody>
41                 </table>
42         </form>
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/>
50                 </div>
51                 <p>
52                         <button type="submit" name="action" class="btn btn-large btn-primary" value="generate">{{$generate_label}}</button>
53                 </p>
54         </form>
55 </div>