Zone and OQS
This commit is contained in:
49
app/views/settings/tables/index.html.erb
Normal file
49
app/views/settings/tables/index.html.erb
Normal file
@@ -0,0 +1,49 @@
|
||||
|
||||
|
||||
<div class="page-header">
|
||||
<ul class="breadcrumb">
|
||||
<li><a href="<%= root_path %>">Home</a></li>
|
||||
<li>Tables</li>
|
||||
<span style="float: right">
|
||||
<%= link_to t('.new', :default => t("helpers.links.new")),new_settings_zone_table_path,:class => 'btn btn-primary btn-sm' %>
|
||||
</span>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<div class="card">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Status</th>
|
||||
<th>Seater</th>
|
||||
<th>Order by</th>
|
||||
<th>is Active</th>
|
||||
<th>Created By</th>
|
||||
<th>Created At</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<% @settings_tables.each do |table| %>
|
||||
<tr>
|
||||
<td><%= link_to table.name, settings_menu_path(table) %></td>
|
||||
<td><%= table.status %></td>
|
||||
<td><%= table.seater rescue "-" %></td>
|
||||
<td><%= table.order_by rescue "-" %></td>
|
||||
<td><%= table.is_active %></td>
|
||||
<% if Employee.exists?(table.created_by) %>
|
||||
<td><%= Employee.find(table.created_by).name %></td>
|
||||
<% else %>
|
||||
<td><%= table.created_by %></td>
|
||||
<% end %>
|
||||
<td><%= table.created_at.utc.getlocal.strftime("%Y-%m-%d/%I:%M %p") %></td>
|
||||
<td><%= link_to 'Edit', edit_settings_zone_table_path(@zone,table) %></td>
|
||||
<td><%= link_to 'Destroy', settings_zone_table_path(@zone,table), method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
Reference in New Issue
Block a user