Sha256: f991f3fcc77ca1d1a0a748ba756a2493acaa3d8e749f4a9e4990187900b33450

Contents?: true

Size: 1.05 KB

Versions: 2

Compression:

Stored size: 1.05 KB

Contents

<html>
  <head></head>
  <body>

    <h2>Sign Up</h2>
    <% if admin_does_not_exist %>
      <p class="admin_notice">
        <b>No administrator was found. Probably this is the first time
        you access the Rest OAuth 2.0 Server Dashboard. Fill the form
        and create the first admin user</b>.
      </p>
    <% end %>

    <%= form_for @user do |f| %>

      <% if @user.errors.any? %>
        <div id="error_explanation">
          <div><%= pluralize(@user.errors.count, "error") %> prohibited this resource from being saved</div>
          <ul>
          <% @user.errors.full_messages.each do |msg| %>
            <li><%= msg %></li>
          <% end %>
          </ul>
        </div>
      <% end %>


      <div class="field">
        <%= f.label :email %><br />
        <%= f.text_field :email %>
      </div>

      <div class="field">
        <%= f.label :password %><br />
        <%= f.password_field :password %>
      </div>

      <div class="actions">
        <%= f.submit nil, {class: "button"} %>
      </div>

    <% end %>

  </body>
</html>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
oauth2_provider_engine-0.0.2 test/dummy/app/views/users/new.html.erb
oauth2_provider_engine-0.0.1 test/dummy/app/views/users/new.html.erb