Admin Group scaffold -> new, show, index
This commit is contained in:
parent
d683ce5c10
commit
d6363e9359
8 changed files with 175 additions and 1 deletions
19
app/views/admin/groups/_form.html.haml
Normal file
19
app/views/admin/groups/_form.html.haml
Normal file
|
@ -0,0 +1,19 @@
|
|||
= form_for [:admin, @group] do |f|
|
||||
- if @group.errors.any?
|
||||
.alert-message.block-message.error
|
||||
%span= @group.errors.full_messages.first
|
||||
.clearfix.group_name_holder
|
||||
= f.label :name do
|
||||
Group name is
|
||||
.input
|
||||
= f.text_field :name, placeholder: "Example Group", class: "xxlarge"
|
||||
.clearfix
|
||||
= f.label :code do
|
||||
URL
|
||||
.input
|
||||
.input-prepend
|
||||
%span.add-on= web_app_url
|
||||
= f.text_field :code, placeholder: "example"
|
||||
|
||||
.form-actions
|
||||
= f.submit 'Create group', class: "btn primary"
|
Loading…
Add table
Add a link
Reference in a new issue