Added group_categories creation page in admin panel
• Added: - group_categories creation page in admin panel
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
%tr
|
||||
%td= group_categories.created_at
|
||||
%td= group_categories.text
|
||||
%td
|
||||
= table_link_to 'trash', t('group_categories.delete'), settings_group_categories_path(group_categories), method: :delete
|
||||
20
app/views/settings/group_categories/index.html.haml
Normal file
20
app/views/settings/group_categories/index.html.haml
Normal file
@@ -0,0 +1,20 @@
|
||||
- content_for :page_title do
|
||||
= t('group_categories.title')
|
||||
|
||||
= form_tag settings_group_categories_url, method: 'POST', class: 'simple_form' do
|
||||
.fields-group
|
||||
.input.string.optional
|
||||
= text_field_tag :text, params[:text], class: 'string optional', placeholder: I18n.t("group_categories.text")
|
||||
|
||||
.actions
|
||||
%button= t('group_categories.create')
|
||||
|
||||
.table-wrapper
|
||||
%table.table
|
||||
%thead
|
||||
%tr
|
||||
%th= t('categories.created_at')
|
||||
%th= t('categories.text')
|
||||
%th
|
||||
%tbody
|
||||
= render @categories
|
||||
Reference in New Issue
Block a user