parent
518e1cc62b
commit
5fe99dd041
26 changed files with 352 additions and 130 deletions
12
app/views/admin/venues/_edit.html.haml
Normal file
12
app/views/admin/venues/_edit.html.haml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
.row
|
||||
.col-md-8
|
||||
= semantic_form_for(@venue, :url => admin_conference_venue_path(@conference.short_title),:html => {:multipart => true}) do |f|
|
||||
= f.input :include_venue_in_splash, hint: 'On setting this true you will enable the venue to be displayed on the splash page'
|
||||
= f.input :name, :input_html => {:rows => 1}
|
||||
= f.input :address, :input_html => {:rows => 1}
|
||||
= f.input :website
|
||||
= f.input :description, :input_html => { :rows => 10, :cols => 20, data: { provide: "markdown-editable" } }, hint: markdown_hint
|
||||
- unless @venue.photo.blank?
|
||||
= image_tag @venue.photo(:thumb)
|
||||
= f.input :photo
|
||||
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}
|
||||
44
app/views/admin/venues/_show.html.haml
Normal file
44
app/views/admin/venues/_show.html.haml
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
%dl.dl-horizontal
|
||||
%dt
|
||||
Name
|
||||
%dd
|
||||
- unless @conference.venue.name.blank?
|
||||
= @conference.venue.name
|
||||
- else
|
||||
Not set!
|
||||
%dt
|
||||
Address
|
||||
%dd
|
||||
- unless @conference.venue.name.blank?
|
||||
= @conference.venue.address
|
||||
- else
|
||||
Not set!
|
||||
%dt
|
||||
Website
|
||||
%dd
|
||||
- unless @conference.venue.name.blank?
|
||||
= @conference.venue.website
|
||||
- else
|
||||
Not set!
|
||||
%dt
|
||||
Description
|
||||
%dd
|
||||
- unless @conference.venue.name.blank?
|
||||
= markdown(@conference.venue.description)
|
||||
- else
|
||||
Not set!
|
||||
.thumbnail
|
||||
%h3.text-center
|
||||
Venue Photo
|
||||
- if @conference.venue.photo?
|
||||
= image_tag(@conference.venue.photo(:large), class: 'img-responsive')
|
||||
.caption
|
||||
%p
|
||||
%dl.dl-horizontal
|
||||
%dt
|
||||
Filename
|
||||
%dd
|
||||
= @conference.venue.photo_file_name
|
||||
-else
|
||||
%h4.text-center
|
||||
Not set!
|
||||
16
app/views/admin/venues/edit.html.haml
Normal file
16
app/views/admin/venues/edit.html.haml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
.row
|
||||
.col-md-12
|
||||
%ul.nav.nav-tabs{'role'=>'tablist'}
|
||||
%li.active
|
||||
%a{'href'=> '#show', 'role'=>'tab', 'data-toggle'=>'tab'}
|
||||
Show
|
||||
%li
|
||||
%a{'href'=> '#edit', 'role'=>'tab', 'data-toggle'=>'tab'}
|
||||
Edit
|
||||
.row
|
||||
.col-md-12
|
||||
.tab-content
|
||||
.tab-pane.active#show
|
||||
= render partial: 'show'
|
||||
.tab-pane#edit
|
||||
= render partial: 'edit'
|
||||
Loading…
Add table
Add a link
Reference in a new issue