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"> |
| 7 | <div class="form-group"> |
| 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> |
| 13 | <div class="form-group"> |
| 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> |
| 19 | <div class="form-group"> |
| 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> |
| 25 | <div class="form-group"> |
| 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> |
| 31 | <div class="form-group"> |
| 32 | <div class="col-sm-offset-2 col-sm-10"> |
| 33 | <button class="btn btn-xs-lg visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-default" data-action="edit_selected" data-id="oauth2client" data-item="{{ oauth2client }}" data-api-url='edit/oauth2-client' data-api-attr='{}' href="#">{{ lang.admin.save }}</button> |
| 34 | </div> |
| 35 | </div> |
| 36 | </form> |
| 37 | {% else %} |
| 38 | {{ parent() }} |
| 39 | {% endif %} |
| 40 | {% endblock %} |