Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(317)

Side by Side Diff: appengine/components/components/auth/ui/templates/oauth_config.html

Issue 2840053003: auth_service: Fetch revisions of all configs (for UI) at once. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 {% extends 'auth/base.html' %} 1 {% extends 'auth/base.html' %}
2 {% block content %} 2 {% block content %}
3 3
4 {% set is_readonly = auth_service_config_locked or not is_admin %} 4 {% set is_readonly = auth_service_config_locked or not is_admin %}
5 <div class="row"> 5 <div class="row">
6 <div class="col-md-12"> 6 <div class="col-md-12">
7 <div class="panel panel-default"> 7 <div class="panel panel-default">
8 <div class="panel-heading"><h3 class="panel-title">OAuth and token server config</h3></div> 8 <div class="panel-heading"><h3 class="panel-title">OAuth and token server config</h3></div>
9 <div class="panel-body"> 9 <div class="panel-body">
10 <div id="oauth-config-alerts"></div> 10 <div id="oauth-config-alerts"></div>
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 <input type="text" class="form-control" 83 <input type="text" class="form-control"
84 {% if is_readonly %}readonly{% endif %} 84 {% if is_readonly %}readonly{% endif %}
85 name="token_server_url" placeholder="Not set"> 85 name="token_server_url" placeholder="Not set">
86 </div> 86 </div>
87 </div> 87 </div>
88 <hr> 88 <hr>
89 89
90 <div class="form-group"> 90 <div class="form-group">
91 {% if auth_service_config_locked %} 91 {% if auth_service_config_locked %}
92 <div class="col-sm-12"> 92 <div class="col-sm-12">
93 {{ render_config_locked() }} 93 {{ render_config_locked("oauth.cfg") }}
94 </div> 94 </div>
95 {% else %} 95 {% else %}
96 {% if is_admin %} 96 {% if is_admin %}
97 <div class="col-sm-offset-2 col-sm-10"> 97 <div class="col-sm-offset-2 col-sm-10">
98 <button type="submit" class="btn btn-primary">Submit</button> 98 <button type="submit" class="btn btn-primary">Submit</button>
99 </div> 99 </div>
100 {% endif %} 100 {% endif %}
101 {% endif %} 101 {% endif %}
102 </div> 102 </div>
103 </form> 103 </form>
104 </div> 104 </div>
105 </div> 105 </div>
106 </div> 106 </div>
107 </div> 107 </div>
108 108
109 {% endblock content %} 109 {% endblock content %}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698