Sha256: added0261d29c9848f32da27b05ef0f0ca914cf82efb85c096cf996f68ae2e77

Contents?: true

Size: 1.1 KB

Versions: 2

Compression:

Stored size: 1.1 KB

Contents

<%= form_for([:oauth, application]) do |f| %>
  <fieldset>
    <% if application.errors.any? %>
      <div class="alert-message error" data-alert><a class="close" href="#">×</a><p>Whoops! Check your form for possible errors</p></div>
    <% end %>

    <div class="clearfix">
      <%= f.label :name %>
      <div class="input">
        <%= f.text_field :name %>
        <%= errors_for application, :name %>
      </div>
    </div>

    <div class="clearfix">
      <%= f.label :redirect_uri %>
      <div class="input">
        <%= f.text_area :redirect_uri %>
        <%= errors_for application, :redirect_uri %>
        <span class="help-inline">Please use one line per URI.</span>
        <% if Doorkeeper.configuration.test_redirect_uri %>
          <span class="help-inline">Use <%= Doorkeeper.configuration.test_redirect_uri %> for local tests</span>
        <% end %>
      </div>
    </div>

    <div class="clearfix"></div>

    <div class="actions">
      <%= f.submit :Submit, :class => "btn primary" %>
      <%= link_to "Cancel", oauth_applications_path, :class => "btn" %>
    </div>
  </fieldset>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
doorkeeper-1.0.0 app/views/doorkeeper/applications/_form.html.erb
doorkeeper-1.0.0.rc2 app/views/doorkeeper/applications/_form.html.erb