Fixed index page for categories color

This commit is contained in:
saurabhbhatia 2013-07-23 18:57:29 +08:00
parent 06ab24374b
commit 9144622c41
1 changed files with 24 additions and 24 deletions

View File

@ -1,28 +1,28 @@
<% set_default_index do
objects @event_categories
<table class="table main-list">
<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',
link: 'edit_panel_calendar_new_back_end_event_category_path'
quick_edit_link type: 'detail'
quick_edit_link type: 'delete',
link: 'panel_calendar_new_back_end_event_category_path'
quick_edit_link type: 'approval',
link: 'panel_calendar_new_back_end_event_category_path'
quick_edit_link type: 'reject_reason'
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' %>
<%if is_manager? %>
<td><%= link_to 'Edit', edit_panel_calendar_new_back_end_event_category_path(event_category) %></td>
<td><%= link_to 'Destroy', panel_calendar_new_back_end_event_category_path(event_category), method: :delete , :confirm => t(:sure?) %></td>
<%end%>
</tr>
<% end %>
</tbody>
</table>
<%= 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>