Sha256: 44f00156acefca084742b16f25586e61e3af88821b030ace3676f017efa6098a

Contents?: true

Size: 1.16 KB

Versions: 4

Compression:

Stored size: 1.16 KB

Contents

<% content_for :header do %>
  <div class="main-header--buttons">
    <%= link_to 'New Setting', new_setting_path, class: 'main-header--link btn btn-primary' %>    
  </div>
  <h3>Settings</h3>
<% end %>

<% content_for :content do %> 
  <div class="main-table--row row">
    <div class="col-sm-12">

      <table class="table table-striped">
        <thead>
          <tr>
            <th colspan="3">Setting</th>
            <th></th>
          </tr>
        </thead>
        
        <tbody>
          <% @settings.order( :name ).each do |setting| %>
            <tr id="setting_<%= setting.id %>">    
              <td colspan="3"><%= setting.name %></td>
              <td><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> <%= link_to 'Edit', edit_setting_path(setting) %> <span class="glyphicon glyphicon-trash" aria-hidden="true"></span> <%= link_to 'Destroy', setting, method: :delete, data: { confirm: 'Are you sure?' }, class: 'text-danger' %></td>
            </tr>
          <% end %>
        <tbody>
      </table>
    
    <%= link_to 'New Setting', new_setting_path, class: 'main-header--link btn btn-default' %>    
        
  </div>
</div>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
binda-0.0.6 app/views/binda/settings/index.html.erb
binda-0.0.5 app/views/binda/settings/index.html.erb
binda-0.0.3 app/views/binda/settings/index.html.erb
binda-0.0.2 app/views/binda/settings/index.html.erb