Sha256: 9370698520ee17935be1b1f8536c025e9178120e8b8426a98992862f9ec2ffb2

Contents?: true

Size: 1.09 KB

Versions: 17

Compression:

Stored size: 1.09 KB

Contents

<div class="openstax-accounts development-login">
  <%= render partial: 'openstax/accounts/shared/attention' %>

  <h3>Create an Account</h3>

  <%= lev_form_for :create,
                   url: openstax_accounts.dev_accounts_path,
                   method: :post,
                   html: {class: 'form-inline'} do |f| %>


    <div class="form-group">
      <%= f.text_field :username, placeholder: 'Username' %>&nbsp;
      <%= f.select :role, OpenStax::Accounts::Account.roles.keys.map{|rr| [rr, rr]} %>&nbsp;
      <%= f.submit 'Create', class: 'btn btn-primary' %>
    </div>

  <% end %>

  <h3>Development Login</h3>

  <p>You need to login, but we're not connected to the Accounts server.<br>
  Search for a user below and click the sign in link next to him or her.</p>

  <%= render partial: 'openstax/accounts/shared/accounts/search',
             locals: {
               search_action_path: openstax_accounts.dev_accounts_path,
               search_results_partial: 'openstax/accounts/dev/accounts/search_results',
               remote: true,
               method: :get
             } %>

  <br>
</div>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
openstax_accounts-9.9.0 app/views/openstax/accounts/dev/accounts/index.html.erb
openstax_accounts-9.8.1 app/views/openstax/accounts/dev/accounts/index.html.erb
openstax_accounts-9.8.0 app/views/openstax/accounts/dev/accounts/index.html.erb
openstax_accounts-9.7.0 app/views/openstax/accounts/dev/accounts/index.html.erb
openstax_accounts-9.6.1 app/views/openstax/accounts/dev/accounts/index.html.erb
openstax_accounts-9.6.0 app/views/openstax/accounts/dev/accounts/index.html.erb
openstax_accounts-9.5.1 app/views/openstax/accounts/dev/accounts/index.html.erb
openstax_accounts-9.5.0 app/views/openstax/accounts/dev/accounts/index.html.erb
openstax_accounts-9.4.0 app/views/openstax/accounts/dev/accounts/index.html.erb
openstax_accounts-9.3.0 app/views/openstax/accounts/dev/accounts/index.html.erb
openstax_accounts-9.0.5 app/views/openstax/accounts/dev/accounts/index.html.erb
openstax_accounts-9.0.4 app/views/openstax/accounts/dev/accounts/index.html.erb
openstax_accounts-9.2.0 app/views/openstax/accounts/dev/accounts/index.html.erb
openstax_accounts-9.0.3 app/views/openstax/accounts/dev/accounts/index.html.erb
openstax_accounts-9.1.0 app/views/openstax/accounts/dev/accounts/index.html.erb
openstax_accounts-9.0.2 app/views/openstax/accounts/dev/accounts/index.html.erb
openstax_accounts-9.0.1 app/views/openstax/accounts/dev/accounts/index.html.erb