Sha256: 73c88b74d4b51123e9851d1ad27d382448b7eac8d42d2ed62a0bcd601d4b510b

Contents?: true

Size: 1.51 KB

Versions: 5

Compression:

Stored size: 1.51 KB

Contents

<div class="search">

  <div class="column-block">

    <h1>Tag Definitions
      <% if can? :create_tag_definition, Kaui::Tag %>
          <%= link_to '&nbsp;<i class="fa fa-plus-square"></i>'.html_safe, kaui_engine.new_tag_definition_path %>
      <% end %>
    </h1>

    <table id='tag_definitions-table' class='table table-condensed mobile-data'>
      <thead>
      <tr>
        <th>Id</th>
        <th>Name</th>
        <th>Description</th>
        <th>System tag?</th>
        <th>Applicable types</th>
        <th></th>
      </tr>
      </thead>
      <tbody>
      <% @tag_definitions.each do |tag_definition| %>
          <tr>
            <td><%= object_id_popover(tag_definition.id) %></td>
            <td><%= tag_definition.name %></td>
            <td><%= tag_definition.description %></td>
            <td><%= tag_definition.system_tag? %></td>
            <td><%= tag_definition.pretty_applicable_object_types %></td>
            <td>
              <% unless tag_definition.system_tag? %>
                  <%= link_to 'Destroy', kaui_engine.tag_definition_path(tag_definition.id), :confirm => 'Are you sure?', :method => :delete %>
              <% end %>
            </td>
          </tr>
      <% end %>
      </tbody>
    </table>

  </div>

</div>

<%= javascript_tag do %>
$(document).ready(function() {
  $('#tag_definitions-table').dataTable({
    "dom": "t",
    "paging": "false",
    "order": [],
    "columns": [
    null,
    null,
    null,
    null,
    null,
    { "orderable": false }
    ]
  });
});
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kaui-3.0.5 app/views/kaui/tag_definitions/index.html.erb
kaui-3.0.4 app/views/kaui/tag_definitions/index.html.erb
kaui-3.0.2 app/views/kaui/tag_definitions/index.html.erb
kaui-2.2.1 app/views/kaui/tag_definitions/index.html.erb
kaui-3.0.1 app/views/kaui/tag_definitions/index.html.erb