Sha256: 7bb519ccd97b71faa6b024088ec19dd3c0390153a9b815f6aea053be3bc2df2c
Contents?: true
Size: 1.49 KB
Versions: 2
Compression:
Stored size: 1.49 KB
Contents
<%= form_for [:oauth, application], html: {class: 'form-horizontal', role: 'form'} do |f| %> <% if application.errors.any? %> <div class="alert alert-danger" data-alert><p>Whoops! Check your form for possible errors</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', for: 'application_name' %> <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', for: 'application_redirect_uri' %> <div class="col-sm-10"> <%= f.text_area :redirect_uri, class: 'form-control' %> <%= doorkeeper_errors_for application, :redirect_uri %> <span class="help-block"> Use one line per URI </span> <% if Doorkeeper.configuration.test_redirect_uri %> <span class="help-block"> Use <code><%= Doorkeeper.configuration.test_redirect_uri %></code> for local tests </span> <% end %> </div> <% end %> <div class="form-group"> <div class="col-sm-offset-2 col-sm-10"> <%= f.submit 'Submit', class: "btn btn-primary" %> <%= link_to "Cancel", oauth_applications_path, :class => "btn btn-default" %> </div> </div> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
doorkeeper-1.3.0 | app/views/doorkeeper/applications/_form.html.erb |
doorkeeper-1.2.0 | app/views/doorkeeper/applications/_form.html.erb |