Implements Contacts
This commit is contained in:
parent
4955b2b7b8
commit
eb3e6898d2
9 changed files with 156 additions and 5 deletions
31
app/views/admin/contacts/_form.html.haml
Normal file
31
app/views/admin/contacts/_form.html.haml
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
= form_for @contact, url: admin_conference_contact_path do |f|
|
||||
- if @contact.errors.any?
|
||||
#error_explanation
|
||||
%h2= "#{pluralize(@contact.errors.count, "error")} prohibited this contact from being saved:"
|
||||
%ul
|
||||
- @contact.errors.full_messages.each do |msg|
|
||||
%li= msg
|
||||
|
||||
.field
|
||||
= f.label :social_tag
|
||||
= f.text_field :social_tag
|
||||
.field
|
||||
= f.label :email
|
||||
= f.text_field :email
|
||||
.field
|
||||
= f.label :facebook
|
||||
= f.text_field :facebook
|
||||
.field
|
||||
= f.label :googleplus
|
||||
= f.text_field :googleplus
|
||||
.field
|
||||
= f.label :twitter
|
||||
= f.text_field :twitter
|
||||
.field
|
||||
= f.label :instagram
|
||||
= f.text_field :instagram
|
||||
.field
|
||||
= f.label :public
|
||||
= f.check_box :public
|
||||
.actions
|
||||
= f.submit 'Save'
|
||||
Loading…
Add table
Add a link
Reference in a new issue