Merge branch 'master' of https://github.com/bikebike/BikeBike
Conflicts: Gemfile Gemfile.lock
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
.columns.medium-8
|
||||
= field :is_attending, :select_tag, ConferenceRegistration::AttendingOptions, label: 'Are you attending?'
|
||||
= field :is_attending, :select_tag, ConferenceRegistration::AttendingOptions, label: 'Are you attending?', value: @conference_registration.try(:is_attending)
|
||||
%ol
|
||||
- @conference.registration_form_fields.each do |ff|
|
||||
%li
|
||||
= form_field ff
|
||||
- response = @conference_registration ? ConferenceRegistrationResponse.find_by(conference_registration_id: @conference_registration.id, registration_form_field_id: ff.id) : nil
|
||||
= form_field ff, response
|
||||
= actions :register
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
= form_for @event_type do |f|
|
||||
- if @event_type.errors.any?
|
||||
#error_explanation
|
||||
%h2= "#{pluralize(@event_type.errors.count, "error")} prohibited this event_type from being saved:"
|
||||
%ul
|
||||
- @event_type.errors.full_messages.each do |msg|
|
||||
%li= msg
|
||||
|
||||
.field
|
||||
= f.label :slug
|
||||
= f.text_field :slug
|
||||
.field
|
||||
= f.label :info
|
||||
= f.text_area :info
|
||||
.actions
|
||||
= f.submit 'Save'
|
||||
@@ -0,0 +1,7 @@
|
||||
%h1 Editing event_type
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Show', @event_type
|
||||
\|
|
||||
= link_to 'Back', event_types_path
|
||||
@@ -0,0 +1,21 @@
|
||||
%h1 Listing event_types
|
||||
|
||||
%table
|
||||
%tr
|
||||
%th Slug
|
||||
%th Info
|
||||
%th
|
||||
%th
|
||||
%th
|
||||
|
||||
- @event_types.each do |event_type|
|
||||
%tr
|
||||
%td= event_type.slug
|
||||
%td= event_type.info
|
||||
%td= link_to 'Show', event_type
|
||||
%td= link_to 'Edit', edit_event_type_path(event_type)
|
||||
%td= link_to 'Destroy', event_type, :method => :delete, :data => { :confirm => 'Are you sure?' }
|
||||
|
||||
%br
|
||||
|
||||
= link_to 'New Event type', new_event_type_path
|
||||
@@ -0,0 +1,5 @@
|
||||
%h1 New event_type
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Back', event_types_path
|
||||
@@ -0,0 +1,12 @@
|
||||
%p#notice= notice
|
||||
|
||||
%p
|
||||
%b Slug:
|
||||
= @event_type.slug
|
||||
%p
|
||||
%b Info:
|
||||
= @event_type.info
|
||||
|
||||
= link_to 'Edit', edit_event_type_path(@event_type)
|
||||
\|
|
||||
= link_to 'Back', event_types_path
|
||||
@@ -0,0 +1,34 @@
|
||||
= form_for @event do |f|
|
||||
- if @event.errors.any?
|
||||
#error_explanation
|
||||
%h2= "#{pluralize(@event.errors.count, "error")} prohibited this event from being saved:"
|
||||
%ul
|
||||
- @event.errors.full_messages.each do |msg|
|
||||
%li= msg
|
||||
|
||||
.field
|
||||
= f.label :title
|
||||
= f.text_field :title
|
||||
.field
|
||||
= f.label :slug
|
||||
= f.text_field :slug
|
||||
.field
|
||||
= f.label :event_type_id
|
||||
= f.number_field :event_type_id
|
||||
.field
|
||||
= f.label :conference
|
||||
= f.text_field :conference
|
||||
.field
|
||||
= f.label :info
|
||||
= f.text_area :info
|
||||
.field
|
||||
= f.label :location
|
||||
= f.text_field :location
|
||||
.field
|
||||
= f.label :start_time
|
||||
= f.datetime_select :start_time
|
||||
.field
|
||||
= f.label :end_time
|
||||
= f.datetime_select :end_time
|
||||
.actions
|
||||
= f.submit 'Save'
|
||||
@@ -0,0 +1,7 @@
|
||||
%h1 Editing event
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Show', @event
|
||||
\|
|
||||
= link_to 'Back', events_path
|
||||
@@ -0,0 +1,33 @@
|
||||
%h1 Listing events
|
||||
|
||||
%table
|
||||
%tr
|
||||
%th Title
|
||||
%th Slug
|
||||
%th Event type
|
||||
%th Conference
|
||||
%th Info
|
||||
%th Location
|
||||
%th Start time
|
||||
%th End time
|
||||
%th
|
||||
%th
|
||||
%th
|
||||
|
||||
- @events.each do |event|
|
||||
%tr
|
||||
%td= event.title
|
||||
%td= event.slug
|
||||
%td= event.event_type_id
|
||||
%td= event.conference
|
||||
%td= event.info
|
||||
%td= event.location
|
||||
%td= event.start_time
|
||||
%td= event.end_time
|
||||
%td= link_to 'Show', event
|
||||
%td= link_to 'Edit', edit_event_path(event)
|
||||
%td= link_to 'Destroy', event, :method => :delete, :data => { :confirm => 'Are you sure?' }
|
||||
|
||||
%br
|
||||
|
||||
= link_to 'New Event', new_event_path
|
||||
@@ -0,0 +1,5 @@
|
||||
%h1 New event
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Back', events_path
|
||||
@@ -0,0 +1,30 @@
|
||||
%p#notice= notice
|
||||
|
||||
%p
|
||||
%b Title:
|
||||
= @event.title
|
||||
%p
|
||||
%b Slug:
|
||||
= @event.slug
|
||||
%p
|
||||
%b Event type:
|
||||
= @event.event_type_id
|
||||
%p
|
||||
%b Conference:
|
||||
= @event.conference
|
||||
%p
|
||||
%b Info:
|
||||
= @event.info
|
||||
%p
|
||||
%b Location:
|
||||
= @event.location
|
||||
%p
|
||||
%b Start time:
|
||||
= @event.start_time
|
||||
%p
|
||||
%b End time:
|
||||
= @event.end_time
|
||||
|
||||
= link_to 'Edit', edit_event_path(@event)
|
||||
\|
|
||||
= link_to 'Back', events_path
|
||||
@@ -5,7 +5,8 @@
|
||||
%ul
|
||||
- @registration_form_field.errors.full_messages.each do |msg|
|
||||
%li= msg
|
||||
|
||||
- if @conference
|
||||
= field :conference_id, :hidden_field_tag, value: @conference.id
|
||||
= field f, :field_type, :select, RegistrationFormField::Types.keys
|
||||
- RegistrationFormField::Fields.each do |key, value|
|
||||
- classes = RegistrationFormField::TypesForField(key.to_sym).collect{|v| 'field-type-' + v.to_s}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
= form_for @workshop_facilitator do |f|
|
||||
- if @workshop_facilitator.errors.any?
|
||||
#error_explanation
|
||||
%h2= "#{pluralize(@workshop_facilitator.errors.count, "error")} prohibited this workshop_facilitator from being saved:"
|
||||
%ul
|
||||
- @workshop_facilitator.errors.full_messages.each do |msg|
|
||||
%li= msg
|
||||
|
||||
.field
|
||||
= f.label :user_id
|
||||
= f.number_field :user_id
|
||||
.field
|
||||
= f.label :workshop_id
|
||||
= f.number_field :workshop_id
|
||||
.field
|
||||
= f.label :role
|
||||
= f.text_field :role
|
||||
.actions
|
||||
= f.submit 'Save'
|
||||
@@ -0,0 +1,7 @@
|
||||
%h1 Editing workshop_facilitator
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Show', @workshop_facilitator
|
||||
\|
|
||||
= link_to 'Back', workshop_facilitators_path
|
||||
@@ -0,0 +1,23 @@
|
||||
%h1 Listing workshop_facilitators
|
||||
|
||||
%table
|
||||
%tr
|
||||
%th User
|
||||
%th Workshop
|
||||
%th Role
|
||||
%th
|
||||
%th
|
||||
%th
|
||||
|
||||
- @workshop_facilitators.each do |workshop_facilitator|
|
||||
%tr
|
||||
%td= workshop_facilitator.user_id
|
||||
%td= workshop_facilitator.workshop_id
|
||||
%td= workshop_facilitator.role
|
||||
%td= link_to 'Show', workshop_facilitator
|
||||
%td= link_to 'Edit', edit_workshop_facilitator_path(workshop_facilitator)
|
||||
%td= link_to 'Destroy', workshop_facilitator, :method => :delete, :data => { :confirm => 'Are you sure?' }
|
||||
|
||||
%br
|
||||
|
||||
= link_to 'New Workshop facilitator', new_workshop_facilitator_path
|
||||
@@ -0,0 +1,5 @@
|
||||
%h1 New workshop_facilitator
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Back', workshop_facilitators_path
|
||||
@@ -0,0 +1,15 @@
|
||||
%p#notice= notice
|
||||
|
||||
%p
|
||||
%b User:
|
||||
= @workshop_facilitator.user_id
|
||||
%p
|
||||
%b Workshop:
|
||||
= @workshop_facilitator.workshop_id
|
||||
%p
|
||||
%b Role:
|
||||
= @workshop_facilitator.role
|
||||
|
||||
= link_to 'Edit', edit_workshop_facilitator_path(@workshop_facilitator)
|
||||
\|
|
||||
= link_to 'Back', workshop_facilitators_path
|
||||
@@ -0,0 +1,19 @@
|
||||
= form_for @workshop_requested_resource do |f|
|
||||
- if @workshop_requested_resource.errors.any?
|
||||
#error_explanation
|
||||
%h2= "#{pluralize(@workshop_requested_resource.errors.count, "error")} prohibited this workshop_requested_resource from being saved:"
|
||||
%ul
|
||||
- @workshop_requested_resource.errors.full_messages.each do |msg|
|
||||
%li= msg
|
||||
|
||||
.field
|
||||
= f.label :workshop_id
|
||||
= f.number_field :workshop_id
|
||||
.field
|
||||
= f.label :workshop_resource_id
|
||||
= f.number_field :workshop_resource_id
|
||||
.field
|
||||
= f.label :status
|
||||
= f.text_field :status
|
||||
.actions
|
||||
= f.submit 'Save'
|
||||
@@ -0,0 +1,7 @@
|
||||
%h1 Editing workshop_requested_resource
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Show', @workshop_requested_resource
|
||||
\|
|
||||
= link_to 'Back', workshop_requested_resources_path
|
||||
@@ -0,0 +1,23 @@
|
||||
%h1 Listing workshop_requested_resources
|
||||
|
||||
%table
|
||||
%tr
|
||||
%th Workshop
|
||||
%th Workshop resource
|
||||
%th Status
|
||||
%th
|
||||
%th
|
||||
%th
|
||||
|
||||
- @workshop_requested_resources.each do |workshop_requested_resource|
|
||||
%tr
|
||||
%td= workshop_requested_resource.workshop_id
|
||||
%td= workshop_requested_resource.workshop_resource_id
|
||||
%td= workshop_requested_resource.status
|
||||
%td= link_to 'Show', workshop_requested_resource
|
||||
%td= link_to 'Edit', edit_workshop_requested_resource_path(workshop_requested_resource)
|
||||
%td= link_to 'Destroy', workshop_requested_resource, :method => :delete, :data => { :confirm => 'Are you sure?' }
|
||||
|
||||
%br
|
||||
|
||||
= link_to 'New Workshop requested resource', new_workshop_requested_resource_path
|
||||
@@ -0,0 +1,5 @@
|
||||
%h1 New workshop_requested_resource
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Back', workshop_requested_resources_path
|
||||
@@ -0,0 +1,15 @@
|
||||
%p#notice= notice
|
||||
|
||||
%p
|
||||
%b Workshop:
|
||||
= @workshop_requested_resource.workshop_id
|
||||
%p
|
||||
%b Workshop resource:
|
||||
= @workshop_requested_resource.workshop_resource_id
|
||||
%p
|
||||
%b Status:
|
||||
= @workshop_requested_resource.status
|
||||
|
||||
= link_to 'Edit', edit_workshop_requested_resource_path(@workshop_requested_resource)
|
||||
\|
|
||||
= link_to 'Back', workshop_requested_resources_path
|
||||
@@ -0,0 +1,23 @@
|
||||
= form_for @workshop, url: conference_workshops_path(@conference, @workshop) do |f|
|
||||
.columns
|
||||
- if @workshop.errors.any?
|
||||
#error_explanation
|
||||
%h2= "#{pluralize(@workshop.errors.count, "error")} prohibited this workshop from being saved:"
|
||||
%ul
|
||||
- @workshop.errors.full_messages.each do |msg|
|
||||
%li= msg
|
||||
= field f, :title, :text_field
|
||||
= field f, :slug, :text_field
|
||||
.columns.medium-4
|
||||
%h2=_'workshop.form.help.title', :t
|
||||
=_'workshop.form.help', :p
|
||||
.columns.medium-8
|
||||
= field f, :info, :text_area
|
||||
= field f, :workshop_stream_id, :number_field
|
||||
= field f, :workshop_presentation_style, :number_field
|
||||
=# field f, :min_facilitators, :number_field
|
||||
=# field f, :location_id, :number_field
|
||||
=# field f, :start_time, :datetime_select
|
||||
=# field f, :end_time, :datetime_select
|
||||
.columns
|
||||
= actions :save
|
||||
@@ -0,0 +1,6 @@
|
||||
- page_style :form
|
||||
|
||||
= tabs!
|
||||
|
||||
.row
|
||||
= render 'form'
|
||||
@@ -0,0 +1,35 @@
|
||||
%h1 Listing workshops
|
||||
|
||||
%table
|
||||
%tr
|
||||
%th Title
|
||||
%th Slug
|
||||
%th Info
|
||||
%th Conference
|
||||
%th Workshop stream
|
||||
%th Workshop presentation style
|
||||
%th Min facilitators
|
||||
%th Location
|
||||
%th Start time
|
||||
%th End time
|
||||
%th
|
||||
%th
|
||||
|
||||
- @workshops.each do |workshop|
|
||||
%tr
|
||||
%td= workshop.title
|
||||
%td= workshop.slug
|
||||
%td= workshop.info
|
||||
%td= workshop.conference_id
|
||||
%td= workshop.workshop_stream_id
|
||||
%td= workshop.workshop_presentation_style
|
||||
%td= workshop.min_facilitators
|
||||
%td= workshop.location_id
|
||||
%td= workshop.start_time
|
||||
%td= workshop.end_time
|
||||
%td= link_to 'Show', conference_workshop_path(@conference, workshop)
|
||||
%td= link_to 'Edit', edit_conference_workshop_path(@conference, workshop)
|
||||
|
||||
%br
|
||||
|
||||
= link_to 'New Workshop', new_conference_workshop_path
|
||||
@@ -0,0 +1,6 @@
|
||||
- page_style :form
|
||||
|
||||
= tabs!
|
||||
|
||||
.row
|
||||
= render 'form'
|
||||
@@ -0,0 +1,30 @@
|
||||
%p#notice= notice
|
||||
|
||||
.row
|
||||
.columns.medium-12
|
||||
%h1= @workshop.title
|
||||
|
||||
= tabs!
|
||||
|
||||
.row
|
||||
.columns.medium-4
|
||||
%p
|
||||
%b Workshop stream:
|
||||
= @workshop.workshop_stream_id
|
||||
%p
|
||||
%b Workshop presentation style:
|
||||
= @workshop.workshop_presentation_style
|
||||
%p
|
||||
%b Min facilitators:
|
||||
= @workshop.min_facilitators
|
||||
%p
|
||||
%b Location:
|
||||
= @workshop.location_id
|
||||
%p
|
||||
%b Start time:
|
||||
= @workshop.start_time
|
||||
%p
|
||||
%b End time:
|
||||
= @workshop.end_time
|
||||
.columns.medium-8
|
||||
=p @workshop, :info
|
||||
Reference in New Issue
Block a user