Sha256: 7ad83662c6a01fcdc0e9fd6bff77a16c9918aaffdcde2b91f97d78eeb69ac9e4

Contents?: true

Size: 1.71 KB

Versions: 6

Compression:

Stored size: 1.71 KB

Contents

<div class='container-fluid'>
  <h3 class='page-header'><%= t '.title' %></h3>
  <div class='row'>
    <div class='col-md-3 side-filters'>
      <%= render partial: 'side_filters', locals: { filters: @filters } %>
      <hr>

      <% if ldap_enabled? %>
        <div class='btn-group'>
          <%= content_tag :button, type: 'button', class: 'btn btn-primary dropdown-toggle',
            data: {toggle: 'dropdown'}, aria: {expanded: false} do %>
            <%= icon :plus, t('.new_user') %> <span class="caret"></span>
          <% end %>

          <ul class='dropdown-menu' role='menu'>
            <li><%= link_to t('.new_ldap_user'), ldap_search_path %></li>
            <li><%= link_to t('.new_local_user'), new_user_path %></li>
          </ul>
        </div>
      <% else %>
        <%= link_to new_user_path, class: 'btn btn-primary pull-right' do %>
          <%= icon :plus, t('.new_local_user') %>
        <% end %>
      <% end %>

    </div>
    <div class='col-md-9'>
      <div class='panel panel-default'>
        <div class='panel-body'>
          <%= content_tag 'table', id: 'users', class: 'table table-striped table-responsive' do %>
            <thead>
              <tr>
                <th class='username'>
                  <%= User.human_attribute_name(:username) %>
                </th>
                <th class='fullname'>
                  <%= User.human_attribute_name(:fullname) %>
                </th>
                <th class='email'>
                  <%= User.human_attribute_name(:email) %>
                </th>
              </tr>
            </thead>
            <tbody>
              <%= render @users %>
            </tbody>
          <% end %>
        </div>
      </div>
    </div>
  </div>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
chaltron-0.2.11 app/views/chaltron/users/index.html.erb
chaltron-0.2.10 app/views/chaltron/users/index.html.erb
chaltron-0.2.9 app/views/chaltron/users/index.html.erb
chaltron-0.2.8 app/views/chaltron/users/index.html.erb
chaltron-0.2.7 app/views/chaltron/users/index.html.erb
chaltron-0.2.6 app/views/chaltron/users/index.html.erb