Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 1 | {% extends 'edit.twig' %} |
| 2 | |
| 3 | {% block inner_content %} |
| 4 | {% if result %} |
| 5 | <h4>OAuth2</h4> |
| 6 | <form data-id="oauth2client" class="form-horizontal" role="form" method="post"> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 7 | <div class="row mb-2"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 8 | <label class="control-label col-sm-2" for="client_id">{{ lang.edit.client_id }}</label> |
| 9 | <div class="col-sm-10"> |
| 10 | <input type="text" class="form-control" name="client_id" id="client_id" value="{{ result.client_id }}" disabled> |
| 11 | </div> |
| 12 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 13 | <div class="row mb-2"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 14 | <label class="control-label col-sm-2" for="client_secret">{{ lang.edit.client_secret }}</label> |
| 15 | <div class="col-sm-10"> |
| 16 | <input type="text" class="form-control" name="client_secret" id="client_secret" value="{{ result.client_secret }}" disabled> |
| 17 | </div> |
| 18 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 19 | <div class="row mb-2"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 20 | <label class="control-label col-sm-2" for="scope">{{ lang.edit.scope }}</label> |
| 21 | <div class="col-sm-10"> |
| 22 | <input type="text" class="form-control" name="scope" id="scope" value="{{ result.scope }}" disabled> |
| 23 | </div> |
| 24 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 25 | <div class="row mb-4"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 26 | <label class="control-label col-sm-2" for="redirect_uri">{{ lang.edit.redirect_uri }}</label> |
| 27 | <div class="col-sm-10"> |
| 28 | <input type="text" class="form-control" name="redirect_uri" id="redirect_uri" value="{{ result.redirect_uri }}"> |
| 29 | </div> |
| 30 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 31 | <div class="row"> |
| 32 | <div class="offset-sm-2 col-sm-10"> |
| 33 | <button class="btn btn-xs-lg d-block d-sm-inline btn-secondary" data-action="edit_selected" data-id="oauth2client" data-item="{{ oauth2client }}" data-api-url='edit/oauth2-client' data-api-attr='{}' href="#">{{ lang.admin.save }}</button> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 34 | </div> |
| 35 | </div> |
| 36 | </form> |
| 37 | {% else %} |
| 38 | {{ parent() }} |
| 39 | {% endif %} |
| 40 | {% endblock %} |