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 8b41f272..350c0553 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 +
<%= t('event_category.name') %> | +<%= t('event_category.color') %> | + <%if is_manager? %> +<%= t('event_category.edit') %> | +<%= t('event_category.delete') %> | + <% end %> +
---|---|---|---|
<%= event_category.name %> | +<%= event_category.color%> | - 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? %> +<%= 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?) %> | + <%end%> +