Sha256: 6a7d83c65f929def62b20a200a9e9fe080d7dec3240853a62d7dccbe6a65f7d4

Contents?: true

Size: 613 Bytes

Versions: 4

Compression:

Stored size: 613 Bytes

Contents

<%= form_tag switch_user_users_path do %>
  <div class="row">
    <div class="small-12 columns">
      <h1>Switch User</h1>
      <%= submit_tag "Submit", class: "success button" %>
    </div>
  </div>

  <% if flash[:notice] %>
    <div class="row">
      <div class="small-12 columns">
        <div class="callout success">
          <%= flash[:notice] %>
        </div>
      </div>
    </div>
  <% end %>

  <div class="row">
    <div class="small-12 columns">
      <%= select_tag :user_id, options_for_select(@users.map{|u| ["#{u.name} &mdash; #{u.email}".html_safe, u.id]}) %>
    </div>
  </div>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
guts-1.0.8 app/views/guts/users/switch_user.html.erb
guts-1.0.7 app/views/guts/users/switch_user.html.erb
guts-1.0.5 app/views/guts/users/switch_user.html.erb
guts-1.0.3 app/views/guts/users/switch_user.html.erb