Fixed index page for categories color
This commit is contained in:
parent
06ab24374b
commit
9144622c41
|
@ -1,28 +1,28 @@
|
||||||
<% set_default_index do
|
<table class="table main-list">
|
||||||
objects @event_categories
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th class="span1"><%= t('event_category.name') %></th>
|
||||||
|
<th class="span1"><%= t('event_category.color') %></th>
|
||||||
|
<%if is_manager? %>
|
||||||
|
<th class="span1"><%= t('event_category.edit') %></th>
|
||||||
|
<th class="span1"><%= t('event_category.delete') %></th>
|
||||||
|
<% end %>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody id="tbody_locations" class="sort-holder">
|
||||||
|
<% @event_categories.each do |event_category| %>
|
||||||
|
<tr class="with_action">
|
||||||
|
<td><%= event_category.name %></td>
|
||||||
|
<td><%= event_category.color%></td>
|
||||||
|
|
||||||
quick_edit_link type: 'edit',
|
<%if is_manager? %>
|
||||||
link: 'edit_panel_calendar_new_back_end_event_category_path'
|
<td><%= link_to 'Edit', edit_panel_calendar_new_back_end_event_category_path(event_category) %></td>
|
||||||
quick_edit_link type: 'detail'
|
<td><%= link_to 'Destroy', panel_calendar_new_back_end_event_category_path(event_category), method: :delete , :confirm => t(:sure?) %></td>
|
||||||
quick_edit_link type: 'delete',
|
<%end%>
|
||||||
link: 'panel_calendar_new_back_end_event_category_path'
|
</tr>
|
||||||
quick_edit_link type: 'approval',
|
<% end %>
|
||||||
link: 'panel_calendar_new_back_end_event_category_path'
|
</tbody>
|
||||||
quick_edit_link type: 'reject_reason'
|
</table>
|
||||||
|
|
||||||
field type: 'field',
|
|
||||||
associated_value: 'name',
|
|
||||||
db_field: 'name',
|
|
||||||
translation: 'name',
|
|
||||||
hide: 'phone'
|
|
||||||
|
|
||||||
field type: 'field',
|
|
||||||
db_field: 'color',
|
|
||||||
translation: 'color',
|
|
||||||
hide: 'phone'
|
|
||||||
end %>
|
|
||||||
|
|
||||||
<%= render 'admin/default_index/index' %>
|
|
||||||
|
|
||||||
<%= link_to "Add", new_panel_calendar_new_back_end_event_category_path, :class => "btn btn-primary pull-right", :id=>"create_event_btn", :ref=>"add-btn" %>
|
<%= link_to "Add", new_panel_calendar_new_back_end_event_category_path, :class => "btn btn-primary pull-right", :id=>"create_event_btn", :ref=>"add-btn" %>
|
||||||
</p>
|
</p>
|
Loading…
Reference in New Issue