The working basics
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
= form_for @conference do |f|
|
||||
.columns
|
||||
- if @conference.errors.any?
|
||||
#error_explanation
|
||||
%h2= "#{pluralize(@conference.errors.count, "error")} prohibited this conference from being saved:"
|
||||
%ul
|
||||
- @conference.errors.full_messages.each do |msg|
|
||||
%li= msg
|
||||
= field f, :title, :text_field
|
||||
= field f, :slug, :text_field
|
||||
.columns.medium-4
|
||||
= field f, :poster, :image_field, @conference.poster_url
|
||||
= field f, :cover, :image_field, @conference.cover_url
|
||||
.columns.medium-8
|
||||
=# f.fields_for :conference_type do |c|
|
||||
=# field c, :id, :text_field
|
||||
= field f, :conference_type_id, :collection_select, ConferenceType.all, attrs: [:id, :title]
|
||||
.row
|
||||
.columns.small-6
|
||||
= field f, :start_date, :date_field
|
||||
.columns.small-6
|
||||
= field f, :end_date, :date_field
|
||||
= field f, :workshop_schedule_published, :check_box
|
||||
=# field f, :registration_open, :check_box
|
||||
= field f, :meals_provided, :check_box
|
||||
= field f, :meal_info, :text_area
|
||||
= field f, :travel_info, :text_area
|
||||
.columns
|
||||
= field f, :info, :text_area
|
||||
= actions :save
|
||||
@@ -0,0 +1,7 @@
|
||||
.columns.medium-8
|
||||
= field f, :registration_open, :check_box, help: true
|
||||
= field f, :preregistration_info, :text_area, help: true
|
||||
= field f, :registration_info, :text_area, help: true
|
||||
= field f, :postregistration_info, :text_area, help: true
|
||||
.columns
|
||||
= actions :save
|
||||
@@ -0,0 +1,13 @@
|
||||
.columns.medium-8
|
||||
#conference-form
|
||||
=render 'registration_form_fields/conference_form'
|
||||
|
||||
- content_for(:after_form) do
|
||||
.row
|
||||
.columns.medium-6
|
||||
%h3='New Form Field'
|
||||
=render 'registration_form_fields/form'
|
||||
.columns.medium-6
|
||||
%h3='Existing Form Fields'
|
||||
#registration-form-field-list
|
||||
= render 'registration_form_fields/list'
|
||||
@@ -0,0 +1,7 @@
|
||||
.columns.medium-8
|
||||
= field :is_attending, :select_tag, ConferenceRegistration::AttendingOptions, label: 'Are you attending?'
|
||||
%ol
|
||||
- @conference.registration_form_fields.each do |ff|
|
||||
%li
|
||||
= form_field ff
|
||||
= actions :register
|
||||
@@ -0,0 +1,5 @@
|
||||
- page_style :form
|
||||
|
||||
= tabs!
|
||||
.row
|
||||
= render 'form'
|
||||
@@ -0,0 +1,13 @@
|
||||
- page_style :form
|
||||
|
||||
= tabs!
|
||||
.row
|
||||
= form_for @conference do |f|
|
||||
.columns.medium-4
|
||||
%h2=_'conference.hosts.help.title', :t
|
||||
%p=_'conference.hosts.help', :p
|
||||
.columns.medium-8
|
||||
.clearfix
|
||||
= f.fields_for :conference_host_organizations, :include_id => true do |u|
|
||||
= field u, :id, :organization_select_field, @conference.organizations[u.index], attrs: @conference
|
||||
= actions :save
|
||||
@@ -0,0 +1,43 @@
|
||||
%h1 Listing conferences
|
||||
|
||||
%table
|
||||
%tr
|
||||
%th Title
|
||||
%th Slug
|
||||
%th Start date
|
||||
%th End date
|
||||
%th Info
|
||||
%th Poster
|
||||
%th Cover
|
||||
%th Workshop schedule published
|
||||
%th Registration open
|
||||
%th Meals provided
|
||||
%th Meal info
|
||||
%th Travel info
|
||||
%th Conference type
|
||||
%th
|
||||
%th
|
||||
%th
|
||||
|
||||
- @conferences.each do |conference|
|
||||
%tr
|
||||
%td= conference.title
|
||||
%td= conference.slug
|
||||
%td= conference.start_date
|
||||
%td= conference.end_date
|
||||
%td= conference.info
|
||||
%td= conference.poster
|
||||
%td= conference.cover
|
||||
%td= conference.workshop_schedule_published
|
||||
%td= conference.registration_open
|
||||
%td= conference.meals_provided
|
||||
%td= conference.meal_info
|
||||
%td= conference.travel_info
|
||||
%td= conference.conference_type
|
||||
%td= link_to 'Show', conference
|
||||
%td= link_to 'Edit', edit_conference_path(conference)
|
||||
%td= link_to 'Destroy', conference, :method => :delete, :data => { :confirm => 'Are you sure?' }
|
||||
|
||||
%br
|
||||
|
||||
= link_to 'New Conference', new_conference_path
|
||||
@@ -0,0 +1,4 @@
|
||||
- page_style :form
|
||||
|
||||
.row
|
||||
= render 'form'
|
||||
@@ -0,0 +1,18 @@
|
||||
- page_style :form
|
||||
|
||||
= tabs!
|
||||
.row
|
||||
= form_for @conference do |f|
|
||||
.columns
|
||||
- if @conference.errors.any?
|
||||
#error_explanation
|
||||
%h2= "#{pluralize(@conference.errors.count, "error")} prohibited this conference from being saved:"
|
||||
%ul
|
||||
- @conference.errors.full_messages.each do |msg|
|
||||
%li= msg
|
||||
.columns.medium-4
|
||||
=sub_tabs!
|
||||
%h2=_'conference.hosts.help.title', :t
|
||||
%p=_'conference.hosts.help', :p
|
||||
= render @sub_action, :f => f
|
||||
= yield_or_default(:after_form)
|
||||
@@ -0,0 +1,76 @@
|
||||
- title 'Bike!Bike!'
|
||||
- banner_image @conference.cover_url
|
||||
- page_style 'emphasize-banner'
|
||||
|
||||
- content_for :banner do
|
||||
.row
|
||||
.columns.medium-6
|
||||
%figure
|
||||
%img{src: @conference.poster_url}
|
||||
.columns.medium-6.info
|
||||
%h1='Bike!Bike!'
|
||||
%h2
|
||||
Columbus, Ohio
|
||||
%em
|
||||
= (l @conference.start_date, format: :date) + ' - ' + (l @conference.end_date, format: :date)
|
||||
%p
|
||||
= _ 'nola_2013.about', 'paragraph'
|
||||
.centered
|
||||
%a.button{href: '#'}
|
||||
Register Now
|
||||
|
||||
= tabs!
|
||||
|
||||
%section
|
||||
.row
|
||||
.columns.medium-6
|
||||
%h1=@conference.title
|
||||
%p=@conference.info.gsub(/\s*\n+\s*/, '</p><p>').html_safe
|
||||
.columns.medium-6
|
||||
|
||||
.row
|
||||
%p#notice= notice
|
||||
|
||||
%p
|
||||
%b Conference type:
|
||||
= @conference.conference_type.title
|
||||
%p
|
||||
%b Title:
|
||||
= @conference.title
|
||||
%p
|
||||
%b Slug:
|
||||
= @conference.slug
|
||||
%p
|
||||
%b Start date:
|
||||
= @conference.start_date
|
||||
%p
|
||||
%b End date:
|
||||
= @conference.end_date
|
||||
%p
|
||||
%b Info:
|
||||
= @conference.info
|
||||
%p
|
||||
%b Poster:
|
||||
= @conference.poster
|
||||
%p
|
||||
%b Banner:
|
||||
= @conference.cover
|
||||
%p
|
||||
%b Workshop schedule published:
|
||||
= @conference.workshop_schedule_published
|
||||
%p
|
||||
%b Registration open:
|
||||
= @conference.registration_open
|
||||
%p
|
||||
%b Meals provided:
|
||||
= @conference.meals_provided
|
||||
%p
|
||||
%b Meal info:
|
||||
= @conference.meal_info
|
||||
%p
|
||||
%b Travel info:
|
||||
= @conference.travel_info
|
||||
|
||||
= link_to 'Edit', edit_conference_path(@conference)
|
||||
\|
|
||||
= link_to 'Back', conferences_path
|
||||
Reference in New Issue
Block a user