From 9144622c41c612fa2ee803f2e017c9edf21d89c3 Mon Sep 17 00:00:00 2001 From: saurabhbhatia Date: Tue, 23 Jul 2013 18:57:29 +0800 Subject: [PATCH] Fixed index page for categories color --- .../back_end/event_categories/index.html.erb | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/vendor/built_in_modules/calendar_new/app/views/panel/calendar_new/back_end/event_categories/index.html.erb b/vendor/built_in_modules/calendar_new/app/views/panel/calendar_new/back_end/event_categories/index.html.erb index 8b41f2728..350c0553a 100644 --- a/vendor/built_in_modules/calendar_new/app/views/panel/calendar_new/back_end/event_categories/index.html.erb +++ b/vendor/built_in_modules/calendar_new/app/views/panel/calendar_new/back_end/event_categories/index.html.erb @@ -1,28 +1,28 @@ -<% set_default_index do - objects @event_categories + + + + + + <%if is_manager? %> + + + <% end %> + + + + <% @event_categories.each do |event_category| %> + + + - 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? %> + + + <%end%> + + <% end %> + +
<%= t('event_category.name') %><%= t('event_category.color') %><%= t('event_category.edit') %><%= t('event_category.delete') %>
<%= event_category.name %><%= event_category.color%><%= link_to 'Edit', edit_panel_calendar_new_back_end_event_category_path(event_category) %><%= link_to 'Destroy', panel_calendar_new_back_end_event_category_path(event_category), method: :delete , :confirm => t(:sure?) %>
<%= 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" %>

\ No newline at end of file