Sha256: 2876504c40f03cb7e8697388e9313a198095fdbcb028fadd2237b20c84ae016e

Contents?: true

Size: 1.74 KB

Versions: 6

Compression:

Stored size: 1.74 KB

Contents

<h1><%= t('controller.wobauth/users') %></h1>

<%= content_tag :table, id: :wobauth_users, role: :wobauth_datatable, 
    class: "table table-bordered table-striped dataTable" do %>
<thead>
  <tr>
    <th><%= t('attributes.name') %></th>
    <th class="notvisible"><%= t('attributes.sn') %></th>
    <th class="notvisible"><%= t('attributes.givenname') %></th>
    <th class="notvisible"><%= t('attributes.title') %></th>
    <th><%= t('attributes.username') %></th>
    <th><%= t('attributes.telephone') %></th>
    <th><%= t('attributes.email') %></th>
    <th class="notvisible"><%= t('attributes.position') %></th>
    <th class="notvisible"><%= t('attributes.department') %></th>
    <th class="notvisible"><%= t('attributes.company') %></th>
    <th><%= t('attributes.current_sign_in_at') %></th>
    <th class="notvisible"><%= t('attributes.sign_in_count') %></th>
    <th><%= t('wobauth.action')%></th>
  </tr>
</thead>
<tbody>

<% @users.each do |user| %>
  <%= content_tag_for(:tr, user) do %>
    <td><%= user %></td>
    <td><%= user.sn %></td>
    <td><%= user.givenname %></td>
    <td><%= user.title %></td>
    <td><%= user.username %></td>
    <td><%= user.telephone %></td>
    <td><%= user.email %></td>
    <td><%= user.position %></td>
    <td><%= user.department %></td>
    <td><%= user.company %></td>
    <td><%= user.current_sign_in_at.try(:to_date) %></td>
    <td><%= user.sign_in_count %></td>
    <td class="nowrap">
      <%= show_link [wobauth, user] %>
      <%= edit_link [wobauth, user] %>
      <%= delete_link [wobauth, user] %>
    </td>
  <% end %>
<% end %>
</tbody>
<% end %>

<br />

<%= back_link %>
<%= new_link [wobauth, Wobauth::User] %>
<%= link_to t('wobauth.new_user_from_ad'), wobauth.ad_users_path, class: 'btn btn-secondary' %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
wobauth-4.0.0 app/views/wobauth/users/index.html.erb
wobauth-3.4.8 app/views/wobauth/users/index.html.erb
wobauth-3.4.7 app/views/wobauth/users/index.html.erb
wobauth-3.4.6 app/views/wobauth/users/index.html.erb
wobauth-3.4.5 app/views/wobauth/users/index.html.erb
wobauth-3.4.4 app/views/wobauth/users/index.html.erb