diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-14 17:41:13 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-14 17:41:13 +0100 |
commit | 25d7c1b6eaf03ddaec892c82f7d93a128b79a872 (patch) | |
tree | c9991b70e8cfd584c09b502bc39dc0763d017731 /app/views/doorkeeper/applications/_form.html.erb | |
parent | 34413615683677e26213263fb98f63b5aab64872 (diff) |
Customizing the last of doorkeeper views, adding CSS for dashboard forms
Diffstat (limited to 'app/views/doorkeeper/applications/_form.html.erb')
-rw-r--r-- | app/views/doorkeeper/applications/_form.html.erb | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/app/views/doorkeeper/applications/_form.html.erb b/app/views/doorkeeper/applications/_form.html.erb deleted file mode 100644 index f42cfdc10..000000000 --- a/app/views/doorkeeper/applications/_form.html.erb +++ /dev/null @@ -1,47 +0,0 @@ -<%= form_for application, url: doorkeeper_submit_path(application), html: {class: 'form-horizontal', role: 'form'} do |f| %> - <% if application.errors.any? %> - <div class="alert alert-danger" data-alert><p><%= t('doorkeeper.applications.form.error') %></p></div> - <% end %> - - <%= content_tag :div, class: "form-group#{' has-error' if application.errors[:name].present?}" do %> - <%= f.label :name, class: 'col-sm-2 control-label' %> - <div class="col-sm-10"> - <%= f.text_field :name, class: 'form-control' %> - <%= doorkeeper_errors_for application, :name %> - </div> - <% end %> - - <%= content_tag :div, class: "form-group#{' has-error' if application.errors[:redirect_uri].present?}" do %> - <%= f.label :redirect_uri, class: 'col-sm-2 control-label' %> - <div class="col-sm-10"> - <%= f.text_area :redirect_uri, class: 'form-control' %> - <%= doorkeeper_errors_for application, :redirect_uri %> - <span class="help-block"> - <%= t('doorkeeper.applications.help.redirect_uri') %> - </span> - <% if Doorkeeper.configuration.native_redirect_uri %> - <span class="help-block"> - <%= raw t('doorkeeper.applications.help.native_redirect_uri', native_redirect_uri: "<code>#{ Doorkeeper.configuration.native_redirect_uri }</code>") %> - </span> - <% end %> - </div> - <% end %> - - <%= content_tag :div, class: "form-group#{' has-error' if application.errors[:scopes].present?}" do %> - <%= f.label :scopes, class: 'col-sm-2 control-label' %> - <div class="col-sm-10"> - <%= f.text_field :scopes, class: 'form-control' %> - <%= doorkeeper_errors_for application, :scopes %> - <span class="help-block"> - <%= t('doorkeeper.applications.help.scopes') %> - </span> - </div> - <% end %> - - <div class="form-group"> - <div class="col-sm-offset-2 col-sm-10"> - <%= f.submit t('doorkeeper.applications.buttons.submit'), class: "btn btn-primary" %> - <%= link_to t('doorkeeper.applications.buttons.cancel'), oauth_applications_path, :class => "btn btn-default" %> - </div> - </div> -<% end %> |