Implement consistent admin interface
* Consistent route/model/controller/view layout * Get rid of unused photos, speakers, dietchoices, social_events controllers * Drop unused :public from Rooms and :description from CallForPapers
This commit is contained in:
parent
f6a87331be
commit
28063129c7
133 changed files with 1461 additions and 1461 deletions
|
|
@ -1,8 +1,14 @@
|
|||
= semantic_form_for(@venue, url: admin_conference_venue_path(@conference.short_title)) do |f|
|
||||
= f.inputs :name, :website
|
||||
= f.input :description, input_html: { rows: 5, cols: 20, data: { provide: 'markdown-editable' } }, hint: markdown_hint
|
||||
= f.inputs :street, :postalcode, :city, :country, :longitude, :latitude
|
||||
- unless @venue.photo.blank?
|
||||
= image_tag @venue.photo(:thumb)
|
||||
= f.input :photo
|
||||
= f.action :submit, as: :button, button_html: { class: 'btn btn-primary' }
|
||||
.row
|
||||
.col-md-12
|
||||
.page-header
|
||||
%h1 Venue
|
||||
.row
|
||||
.col-md-8
|
||||
= semantic_form_for(@venue, url: admin_conference_venue_path(@conference.short_title)) do |f|
|
||||
= f.inputs :name, :website
|
||||
= f.input :description, input_html: { rows: 5, cols: 20, data: { provide: 'markdown-editable' } }, hint: markdown_hint
|
||||
= f.inputs :street, :postalcode, :city, :country, :longitude, :latitude
|
||||
- unless @venue.photo.blank?
|
||||
= image_tag @venue.photo(:thumb)
|
||||
= f.input :photo
|
||||
= f.action :submit, as: :button, button_html: { class: 'btn btn-primary' }
|
||||
|
|
|
|||
|
|
@ -1,3 +1,9 @@
|
|||
.row
|
||||
.col-md-12
|
||||
.page-header
|
||||
%h1 Venue
|
||||
%p.text-muted
|
||||
The place where your conference takes place
|
||||
-if @venue
|
||||
.row
|
||||
.col-md-6
|
||||
|
|
@ -20,6 +26,6 @@
|
|||
Delete Venue
|
||||
-else
|
||||
.row
|
||||
.col-md-12
|
||||
= link_to(new_admin_conference_venue_path(@conference.short_title), class: 'btn btn-success') do
|
||||
.col-md-12.text-right
|
||||
= link_to(new_admin_conference_venue_path(@conference.short_title), class: 'btn btn-primary') do
|
||||
Create Venue
|
||||
Loading…
Add table
Add a link
Reference in a new issue