Workshop interest
This commit is contained in:
@@ -4,10 +4,16 @@
|
||||
%article
|
||||
%h2=_!@conference.title
|
||||
=@conference.info.html_safe
|
||||
%h3=_'acticles.conferences.headings.Proposed_Workshops'
|
||||
%p=_'acticles.conferences.paragraphs.Proposed_Workshops', "Would you like to facilitate your own workshop? Simply register and visit the workshops page. If you have already registered you can access the page by restarting the registration process."
|
||||
%ul.workshop-list
|
||||
- @conference.workshops.each do |w|
|
||||
%li
|
||||
%h4=w.title
|
||||
.workshop-description=markdown w.info
|
||||
%h3=_'articles.workshops.headings.Proposed_Workshops'
|
||||
%p=_'articles.workshops.paragraphs.Proposed_Workshops', "Would you like to facilitate your own workshop? Simply register and visit the workshops page. If you have already registered you can access the page by restarting the registration process."
|
||||
- if @conference.workshops
|
||||
%ul.workshop-list
|
||||
- @conference.workshops.each do |w|
|
||||
%li
|
||||
%h4=w.title
|
||||
.workshop-interest
|
||||
- if w.interested?(current_user)
|
||||
=_'articles.workshops.info.you_are_interested_count', "You and #{w.interested_count - 1} others are interested in this workshop", :vars => {:count => (w.interested_count - 1)}
|
||||
- elsif w.interested_count > 0
|
||||
=_'articles.workshops.info.interested_count', "#{w.interested_count} people are interested in this workshop", :vars => {:count => w.interested_count}
|
||||
.workshop-description=markdown w.info
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
= form_for @conference_registration_response do |f|
|
||||
- if @conference_registration_response.errors.any?
|
||||
#error_explanation
|
||||
%h2= "#{pluralize(@conference_registration_response.errors.count, "error")} prohibited this conference_registration_response from being saved:"
|
||||
%ul
|
||||
- @conference_registration_response.errors.full_messages.each do |msg|
|
||||
%li= msg
|
||||
|
||||
.field
|
||||
= f.label :conference_registration_id
|
||||
= f.number_field :conference_registration_id
|
||||
.field
|
||||
= f.label :registration_form_field_id
|
||||
= f.number_field :registration_form_field_id
|
||||
.field
|
||||
= f.label :data
|
||||
= f.text_area :data
|
||||
.actions
|
||||
= f.submit 'Save'
|
||||
@@ -1,7 +0,0 @@
|
||||
%h1 Editing conference_registration_response
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Show', @conference_registration_response
|
||||
\|
|
||||
= link_to 'Back', conference_registration_responses_path
|
||||
@@ -1,23 +0,0 @@
|
||||
%h1 Listing conference_registration_responses
|
||||
|
||||
%table
|
||||
%tr
|
||||
%th Conference registration
|
||||
%th Registration form field
|
||||
%th Data
|
||||
%th
|
||||
%th
|
||||
%th
|
||||
|
||||
- @conference_registration_responses.each do |conference_registration_response|
|
||||
%tr
|
||||
%td= conference_registration_response.conference_registration_id
|
||||
%td= conference_registration_response.registration_form_field_id
|
||||
%td= conference_registration_response.data
|
||||
%td= link_to 'Show', conference_registration_response
|
||||
%td= link_to 'Edit', edit_conference_registration_response_path(conference_registration_response)
|
||||
%td= link_to 'Destroy', conference_registration_response, :method => :delete, :data => { :confirm => 'Are you sure?' }
|
||||
|
||||
%br
|
||||
|
||||
= link_to 'New Conference registration response', new_conference_registration_response_path
|
||||
@@ -1,5 +0,0 @@
|
||||
%h1 New conference_registration_response
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Back', conference_registration_responses_path
|
||||
@@ -1,15 +0,0 @@
|
||||
%p#notice= notice
|
||||
|
||||
%p
|
||||
%b Conference registration:
|
||||
= @conference_registration_response.conference_registration_id
|
||||
%p
|
||||
%b Registration form field:
|
||||
= @conference_registration_response.registration_form_field_id
|
||||
%p
|
||||
%b Data:
|
||||
= @conference_registration_response.data
|
||||
|
||||
= link_to 'Edit', edit_conference_registration_response_path(@conference_registration_response)
|
||||
\|
|
||||
= link_to 'Back', conference_registration_responses_path
|
||||
@@ -1,8 +0,0 @@
|
||||
= form_for @conference_registraton_form_field do |f|
|
||||
= f.label :conference_id
|
||||
= f.number_field :conference_id
|
||||
= f.label :registration_form_field_id
|
||||
= f.number_field :registration_form_field_id
|
||||
= f.label :order
|
||||
= f.number_field :order
|
||||
= f.actions :Save
|
||||
@@ -1,7 +0,0 @@
|
||||
%h1 Editing conference_registraton_form_field
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Show', @conference_registraton_form_field
|
||||
\|
|
||||
= link_to 'Back', conference_registraton_form_fields_path
|
||||
@@ -1,23 +0,0 @@
|
||||
%h1 Listing conference_registraton_form_fields
|
||||
|
||||
%table
|
||||
%tr
|
||||
%th Conference
|
||||
%th Registration form field
|
||||
%th Order
|
||||
%th
|
||||
%th
|
||||
%th
|
||||
|
||||
- @conference_registraton_form_fields.each do |conference_registraton_form_field|
|
||||
%tr
|
||||
%td= conference_registraton_form_field.conference_id
|
||||
%td= conference_registraton_form_field.registration_form_field_id
|
||||
%td= conference_registraton_form_field.order
|
||||
%td= link_to 'Show', conference_registraton_form_field
|
||||
%td= link_to 'Edit', edit_conference_registraton_form_field_path(conference_registraton_form_field)
|
||||
%td= link_to 'Destroy', conference_registraton_form_field, :method => :delete, :data => { :confirm => 'Are you sure?' }
|
||||
|
||||
%br
|
||||
|
||||
= link_to 'New Conference registraton form field', new_conference_registraton_form_field_path
|
||||
@@ -1,5 +0,0 @@
|
||||
%h1 New conference_registraton_form_field
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Back', conference_registraton_form_fields_path
|
||||
@@ -1,15 +0,0 @@
|
||||
%p#notice= notice
|
||||
|
||||
%p
|
||||
%b Conference:
|
||||
= @conference_registraton_form_field.conference_id
|
||||
%p
|
||||
%b Registration form field:
|
||||
= @conference_registraton_form_field.registration_form_field_id
|
||||
%p
|
||||
%b Order:
|
||||
= @conference_registraton_form_field.order
|
||||
|
||||
= link_to 'Edit', edit_conference_registraton_form_field_path(@conference_registraton_form_field)
|
||||
\|
|
||||
= link_to 'Back', conference_registraton_form_fields_path
|
||||
@@ -1,19 +0,0 @@
|
||||
= form_for @organization_status do |f|
|
||||
- if @organization_status.errors.any?
|
||||
#error_explanation
|
||||
%h2= "#{pluralize(@organization_status.errors.count, "error")} prohibited this organization_status from being saved:"
|
||||
%ul
|
||||
- @organization_status.errors.full_messages.each do |msg|
|
||||
%li= msg
|
||||
|
||||
.field
|
||||
= f.label :name
|
||||
= f.text_field :name
|
||||
.field
|
||||
= f.label :slug
|
||||
= f.text_field :slug
|
||||
.field
|
||||
= f.label :info
|
||||
= f.text_field :info
|
||||
.actions
|
||||
= f.submit 'Save'
|
||||
@@ -1,7 +0,0 @@
|
||||
%h1 Editing organization_status
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Show', @organization_status
|
||||
\|
|
||||
= link_to 'Back', organization_statuses_path
|
||||
@@ -1,23 +0,0 @@
|
||||
%h1 Listing organization_statuses
|
||||
|
||||
%table
|
||||
%tr
|
||||
%th Name
|
||||
%th Slug
|
||||
%th Info
|
||||
%th
|
||||
%th
|
||||
%th
|
||||
|
||||
- @organization_statuses.each do |organization_status|
|
||||
%tr
|
||||
%td= organization_status.name
|
||||
%td= organization_status.slug
|
||||
%td= organization_status.info
|
||||
%td= link_to 'Show', organization_status
|
||||
%td= link_to 'Edit', edit_organization_status_path(organization_status)
|
||||
%td= link_to 'Destroy', organization_status, :method => :delete, :data => { :confirm => 'Are you sure?' }
|
||||
|
||||
%br
|
||||
|
||||
= link_to 'New Organization status', new_organization_status_path
|
||||
@@ -1,5 +0,0 @@
|
||||
%h1 New organization_status
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Back', organization_statuses_path
|
||||
@@ -1,15 +0,0 @@
|
||||
%p#notice= notice
|
||||
|
||||
%p
|
||||
%b Name:
|
||||
= @organization_status.name
|
||||
%p
|
||||
%b Slug:
|
||||
= @organization_status.slug
|
||||
%p
|
||||
%b Info:
|
||||
= @organization_status.info
|
||||
|
||||
= link_to 'Edit', edit_organization_status_path(@organization_status)
|
||||
\|
|
||||
= link_to 'Back', organization_statuses_path
|
||||
@@ -1,6 +0,0 @@
|
||||
= sortable @conference.conference_registration_form_fields, 'registration_form_field_id', url: 'form/reorder' do |form_field|
|
||||
- ff = RegistrationFormField.find(form_field.registration_form_field_id)
|
||||
%span.drag-sort='[drag]'
|
||||
= ff.title
|
||||
%a.remove-form-field.button{:data => {:id => ff.id}}
|
||||
= _ 'registration_form_field.list.remove_from_form'
|
||||
@@ -1,14 +0,0 @@
|
||||
= form_for @registration_form_field do |f|
|
||||
- if @conference
|
||||
= f.hidden_field :conference_id, value: @conference.id
|
||||
= f.select :field_type, RegistrationFormField::Types.keys
|
||||
- RegistrationFormField::Fields.each do |key, value|
|
||||
- options = {:html => { :classes => RegistrationFormField::TypesForField(key.to_sym).collect{|v| 'field-type-' + v.to_s} } }
|
||||
- options[:html][:classes] << 'registration-form-field-field'
|
||||
-# eval('field f, :' + key.to_s + ', :' + value[:control] + (value[:options] ? ', ' + (value[:options].map.with_index{|v, i| 'value[:options][' + i.to_s + ']'}.join(', ') || 'nil') : '') + ", classes: classes")
|
||||
- if value[:options]
|
||||
- fields = options_for_select(value[:options].first.map { |v| [_("form_field.#{v}"), v]})
|
||||
= f.send(value[:control], key.to_s, fields, options)
|
||||
- else
|
||||
= f.send(value[:control], key.to_s, options)
|
||||
= f.actions :save
|
||||
@@ -1,6 +0,0 @@
|
||||
%ul
|
||||
- @registration_form_fields.each do |registration_form_field|
|
||||
%li
|
||||
= registration_form_field.title
|
||||
%a.add-form-field.button{:data => {:id => registration_form_field.id}}
|
||||
= _ 'registration_form_field.list.add_to_form'
|
||||
@@ -1,7 +0,0 @@
|
||||
%h1 Editing registration_form_field
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Show', @registration_form_field
|
||||
\|
|
||||
= link_to 'Back', registration_form_fields_path
|
||||
@@ -1,29 +0,0 @@
|
||||
%h1 Listing registration_form_fields
|
||||
|
||||
%table
|
||||
%tr
|
||||
%th Title
|
||||
%th Help
|
||||
%th Required
|
||||
%th Field type
|
||||
%th Options
|
||||
%th Is retired
|
||||
%th
|
||||
%th
|
||||
%th
|
||||
|
||||
- @registration_form_fields.each do |registration_form_field|
|
||||
%tr
|
||||
%td= registration_form_field.title
|
||||
%td= registration_form_field.help
|
||||
%td= registration_form_field.required
|
||||
%td= registration_form_field.field_type
|
||||
%td= registration_form_field.options
|
||||
%td= registration_form_field.is_retired
|
||||
%td= link_to 'Show', registration_form_field
|
||||
%td= link_to 'Edit', edit_registration_form_field_path(registration_form_field)
|
||||
%td= link_to 'Destroy', registration_form_field, :method => :delete, :data => { :confirm => 'Are you sure?' }
|
||||
|
||||
%br
|
||||
|
||||
= link_to 'New Registration form field', new_registration_form_field_path
|
||||
@@ -1,5 +0,0 @@
|
||||
%h1 New registration_form_field
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Back', registration_form_fields_path
|
||||
@@ -1,24 +0,0 @@
|
||||
%p#notice= notice
|
||||
|
||||
%p
|
||||
%b Title:
|
||||
= @registration_form_field.title
|
||||
%p
|
||||
%b Help:
|
||||
= @registration_form_field.help
|
||||
%p
|
||||
%b Required:
|
||||
= @registration_form_field.required
|
||||
%p
|
||||
%b Field type:
|
||||
= @registration_form_field.field_type
|
||||
%p
|
||||
%b Options:
|
||||
= @registration_form_field.options
|
||||
%p
|
||||
%b Is retired:
|
||||
= @registration_form_field.is_retired
|
||||
|
||||
= link_to 'Edit', edit_registration_form_field_path(@registration_form_field)
|
||||
\|
|
||||
= link_to 'Back', registration_form_fields_path
|
||||
@@ -1,19 +0,0 @@
|
||||
= 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'
|
||||
@@ -1,7 +0,0 @@
|
||||
%h1 Editing workshop_facilitator
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Show', @workshop_facilitator
|
||||
\|
|
||||
= link_to 'Back', workshop_facilitators_path
|
||||
@@ -1,23 +0,0 @@
|
||||
%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
|
||||
@@ -1,5 +0,0 @@
|
||||
%h1 New workshop_facilitator
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Back', workshop_facilitators_path
|
||||
@@ -1,15 +0,0 @@
|
||||
%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
|
||||
@@ -1,19 +0,0 @@
|
||||
= form_for @workshop_presentation_style do |f|
|
||||
- if @workshop_presentation_style.errors.any?
|
||||
#error_explanation
|
||||
%h2= "#{pluralize(@workshop_presentation_style.errors.count, "error")} prohibited this workshop_presentation_style from being saved:"
|
||||
%ul
|
||||
- @workshop_presentation_style.errors.full_messages.each do |msg|
|
||||
%li= msg
|
||||
|
||||
.field
|
||||
= f.label :name
|
||||
= f.text_field :name
|
||||
.field
|
||||
= f.label :slug
|
||||
= f.text_field :slug
|
||||
.field
|
||||
= f.label :info
|
||||
= f.text_field :info
|
||||
.actions
|
||||
= f.submit 'Save'
|
||||
@@ -1,7 +0,0 @@
|
||||
%h1 Editing workshop_presentation_style
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Show', @workshop_presentation_style
|
||||
\|
|
||||
= link_to 'Back', workshop_presentation_styles_path
|
||||
@@ -1,23 +0,0 @@
|
||||
%h1 Listing workshop_presentation_styles
|
||||
|
||||
%table
|
||||
%tr
|
||||
%th Name
|
||||
%th Slug
|
||||
%th Info
|
||||
%th
|
||||
%th
|
||||
%th
|
||||
|
||||
- @workshop_presentation_styles.each do |workshop_presentation_style|
|
||||
%tr
|
||||
%td= workshop_presentation_style.name
|
||||
%td= workshop_presentation_style.slug
|
||||
%td= workshop_presentation_style.info
|
||||
%td= link_to 'Show', workshop_presentation_style
|
||||
%td= link_to 'Edit', edit_workshop_presentation_style_path(workshop_presentation_style)
|
||||
%td= link_to 'Destroy', workshop_presentation_style, :method => :delete, :data => { :confirm => 'Are you sure?' }
|
||||
|
||||
%br
|
||||
|
||||
= link_to 'New Workshop presentation style', new_workshop_presentation_style_path
|
||||
@@ -1,5 +0,0 @@
|
||||
%h1 New workshop_presentation_style
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Back', workshop_presentation_styles_path
|
||||
@@ -1,15 +0,0 @@
|
||||
%p#notice= notice
|
||||
|
||||
%p
|
||||
%b Name:
|
||||
= @workshop_presentation_style.name
|
||||
%p
|
||||
%b Slug:
|
||||
= @workshop_presentation_style.slug
|
||||
%p
|
||||
%b Info:
|
||||
= @workshop_presentation_style.info
|
||||
|
||||
= link_to 'Edit', edit_workshop_presentation_style_path(@workshop_presentation_style)
|
||||
\|
|
||||
= link_to 'Back', workshop_presentation_styles_path
|
||||
@@ -1,19 +0,0 @@
|
||||
= 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'
|
||||
@@ -1,7 +0,0 @@
|
||||
%h1 Editing workshop_requested_resource
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Show', @workshop_requested_resource
|
||||
\|
|
||||
= link_to 'Back', workshop_requested_resources_path
|
||||
@@ -1,23 +0,0 @@
|
||||
%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
|
||||
@@ -1,5 +0,0 @@
|
||||
%h1 New workshop_requested_resource
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Back', workshop_requested_resources_path
|
||||
@@ -1,15 +0,0 @@
|
||||
%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
|
||||
@@ -1,19 +0,0 @@
|
||||
= form_for @workshop_resource do |f|
|
||||
- if @workshop_resource.errors.any?
|
||||
#error_explanation
|
||||
%h2= "#{pluralize(@workshop_resource.errors.count, "error")} prohibited this workshop_resource from being saved:"
|
||||
%ul
|
||||
- @workshop_resource.errors.full_messages.each do |msg|
|
||||
%li= msg
|
||||
|
||||
.field
|
||||
= f.label :name
|
||||
= f.text_field :name
|
||||
.field
|
||||
= f.label :slug
|
||||
= f.text_field :slug
|
||||
.field
|
||||
= f.label :info
|
||||
= f.text_field :info
|
||||
.actions
|
||||
= f.submit 'Save'
|
||||
@@ -1,7 +0,0 @@
|
||||
%h1 Editing workshop_resource
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Show', @workshop_resource
|
||||
\|
|
||||
= link_to 'Back', workshop_resources_path
|
||||
@@ -1,23 +0,0 @@
|
||||
%h1 Listing workshop_resources
|
||||
|
||||
%table
|
||||
%tr
|
||||
%th Name
|
||||
%th Slug
|
||||
%th Info
|
||||
%th
|
||||
%th
|
||||
%th
|
||||
|
||||
- @workshop_resources.each do |workshop_resource|
|
||||
%tr
|
||||
%td= workshop_resource.name
|
||||
%td= workshop_resource.slug
|
||||
%td= workshop_resource.info
|
||||
%td= link_to 'Show', workshop_resource
|
||||
%td= link_to 'Edit', edit_workshop_resource_path(workshop_resource)
|
||||
%td= link_to 'Destroy', workshop_resource, :method => :delete, :data => { :confirm => 'Are you sure?' }
|
||||
|
||||
%br
|
||||
|
||||
= link_to 'New Workshop resource', new_workshop_resource_path
|
||||
@@ -1,5 +0,0 @@
|
||||
%h1 New workshop_resource
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Back', workshop_resources_path
|
||||
@@ -1,15 +0,0 @@
|
||||
%p#notice= notice
|
||||
|
||||
%p
|
||||
%b Name:
|
||||
= @workshop_resource.name
|
||||
%p
|
||||
%b Slug:
|
||||
= @workshop_resource.slug
|
||||
%p
|
||||
%b Info:
|
||||
= @workshop_resource.info
|
||||
|
||||
= link_to 'Edit', edit_workshop_resource_path(@workshop_resource)
|
||||
\|
|
||||
= link_to 'Back', workshop_resources_path
|
||||
@@ -1,19 +0,0 @@
|
||||
= form_for @workshop_stream, html: {class: 'row'} do |f|
|
||||
- if @workshop_stream.errors.any?
|
||||
#error_explanation
|
||||
%h2= "#{pluralize(@workshop_stream.errors.count, "error")} prohibited this workshop_stream from being saved:"
|
||||
%ul
|
||||
- @workshop_stream.errors.full_messages.each do |msg|
|
||||
%li= msg
|
||||
|
||||
.field
|
||||
= f.label :name
|
||||
= f.text_field :name
|
||||
.field
|
||||
= f.label :slug
|
||||
= f.text_field :slug
|
||||
.field
|
||||
= f.label :info
|
||||
= f.text_field :info
|
||||
.actions
|
||||
= f.submit 'Save'
|
||||
@@ -1,7 +0,0 @@
|
||||
%h1 Editing workshop_stream
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Show', @workshop_stream
|
||||
\|
|
||||
= link_to 'Back', workshop_streams_path
|
||||
@@ -1,23 +0,0 @@
|
||||
%h1 Listing workshop_streams
|
||||
|
||||
%table
|
||||
%tr
|
||||
%th Name
|
||||
%th Slug
|
||||
%th Info
|
||||
%th
|
||||
%th
|
||||
%th
|
||||
|
||||
- @workshop_streams.each do |workshop_stream|
|
||||
%tr
|
||||
%td= workshop_stream.name
|
||||
%td= workshop_stream.slug
|
||||
%td= workshop_stream.info
|
||||
%td= link_to 'Show', workshop_stream
|
||||
%td= link_to 'Edit', edit_workshop_stream_path(workshop_stream)
|
||||
%td= link_to 'Destroy', workshop_stream, :method => :delete, :data => { :confirm => 'Are you sure?' }
|
||||
|
||||
%br
|
||||
|
||||
= link_to 'New Workshop stream', new_workshop_stream_path
|
||||
@@ -1,5 +0,0 @@
|
||||
- banner_title 'New workshop_stream'
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Back', workshop_streams_path
|
||||
@@ -1,15 +0,0 @@
|
||||
%p#notice= notice
|
||||
|
||||
%p
|
||||
%b Name:
|
||||
= @workshop_stream.name
|
||||
%p
|
||||
%b Slug:
|
||||
= @workshop_stream.slug
|
||||
%p
|
||||
%b Info:
|
||||
= @workshop_stream.info
|
||||
|
||||
= link_to 'Edit', edit_workshop_stream_path(@workshop_stream)
|
||||
\|
|
||||
= link_to 'Back', workshop_streams_path
|
||||
@@ -3,6 +3,14 @@
|
||||
= row do
|
||||
= columns(medium: 12) do
|
||||
%h2=_!@workshop.title
|
||||
.workshop-interest
|
||||
- if @workshop.interested?(current_user)
|
||||
=_'articles.workshops.info.you_are_interested_count', "You and #{@workshop.interested_count - 1} others are interested in this workshop", :vars => {:count => (@workshop.interested_count - 1)}
|
||||
- else
|
||||
=_'articles.workshops.info.interested_count', "#{@workshop.interested_count} people are interested in this workshop", :vars => {:count => @workshop.interested_count}
|
||||
- if @workshop.can_show_interest?(current_user)
|
||||
= form_tag toggle_workshop_interest_path(@this_conference.slug, @workshop.id) do
|
||||
= button_tag (@workshop.interested?(current_user) ? :remove_interest : :show_interest), :value => :toggle_interest, :class => (@workshop.interested?(current_user) ? 'delete' : 'add')
|
||||
=markdown _!(@workshop.info) || ''
|
||||
= columns(medium: 6) do
|
||||
%h3=_'articles.workshops.headings.facilitators'
|
||||
|
||||
Reference in New Issue
Block a user