Commit 642d0fb041fd5acb22c5fa60cf657635245379ce
Committed by
Matheus Miranda Lacerda
1 parent
cf1bed68
Initializing admin option for external login
Signed-off-by: Sabryna Sousa <sabryna.sousa1323@gmail.com> Signed-off-by: Victor Navarro <victor.matias.navarro@gmail.com> Signed-off-by: Vitor Barbosa <vitornga15@gmail.com>
Showing
4 changed files
with
38 additions
and
0 deletions
Show diff stats
plugins/oauth_client/controllers/oauth_client_plugin_admin_controller.rb
plugins/oauth_client/db/migrate/20160714113820_create_oauth_client_plugin_config.rb
0 → 100644
plugins/oauth_client/models/oauth_client_plugin/config.rb
0 → 100644
plugins/oauth_client/views/oauth_client_plugin_admin/index.html.erb
1 | 1 | <h1><%= _('Oauth Client Settings') %></h1> |
2 | + | |
3 | +<%= labelled_form_for("") do |f| %> | |
4 | + <table> | |
5 | + <tr> | |
6 | + <%= hidden_field_tag('environment[enabled_features][]', '') %> | |
7 | + <td><%= _('Only allow login with creation of new account') %></td> | |
8 | + <td><%= check_box_tag "environment[enabled_features][]","" ,"" %></td> | |
9 | + </tr> | |
10 | + </table> | |
11 | + | |
12 | + <div> | |
13 | + <%= button_bar do %> | |
14 | + <%= submit_button('save', _('Save changes')) %> | |
15 | + <%= button :back, _('Back to plugins panel'), :controller => 'plugins', :action => 'index' %> | |
16 | + <% end %> | |
17 | + </div> | |
18 | +<% end %> | |
19 | + | |
2 | 20 | <h3><%= _('Providers') %></h3> |
3 | 21 | <%= button :add, _('New'), {:action => 'new'} %> |
4 | 22 | <table> | ... | ... |