blob: f3dc4d0dbea5583ce494db001615e1798a988f27 [file] [log] [blame]
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +01001{% 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 Benkard1ba53812022-12-27 17:32:58 +01007 <div class="row mb-2">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +01008 <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 Benkard1ba53812022-12-27 17:32:58 +010013 <div class="row mb-2">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010014 <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 Benkard1ba53812022-12-27 17:32:58 +010019 <div class="row mb-2">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010020 <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 Benkard1ba53812022-12-27 17:32:58 +010025 <div class="row mb-4">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010026 <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 Benkard1ba53812022-12-27 17:32:58 +010031 <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 Benkard12a57352021-12-28 18:02:04 +010034 </div>
35 </div>
36</form>
37{% else %}
38 {{ parent() }}
39{% endif %}
40{% endblock %}