The working basics
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
= form_for @conference_admin do |f|
|
||||
- if @conference_admin.errors.any?
|
||||
#error_explanation
|
||||
%h2= "#{pluralize(@conference_admin.errors.count, "error")} prohibited this conference_admin from being saved:"
|
||||
%ul
|
||||
- @conference_admin.errors.full_messages.each do |msg|
|
||||
%li= msg
|
||||
|
||||
.field
|
||||
= f.label :conference_id
|
||||
= f.number_field :conference_id
|
||||
.field
|
||||
= f.label :user_id
|
||||
= f.number_field :user_id
|
||||
.actions
|
||||
= f.submit 'Save'
|
||||
@@ -0,0 +1,7 @@
|
||||
%h1 Editing conference_admin
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Show', @conference_admin
|
||||
\|
|
||||
= link_to 'Back', conference_admins_path
|
||||
@@ -0,0 +1,21 @@
|
||||
%h1 Listing conference_admins
|
||||
|
||||
%table
|
||||
%tr
|
||||
%th Conference
|
||||
%th User
|
||||
%th
|
||||
%th
|
||||
%th
|
||||
|
||||
- @conference_admins.each do |conference_admin|
|
||||
%tr
|
||||
%td= conference_admin.conference_id
|
||||
%td= conference_admin.user_id
|
||||
%td= link_to 'Show', conference_admin
|
||||
%td= link_to 'Edit', edit_conference_admin_path(conference_admin)
|
||||
%td= link_to 'Destroy', conference_admin, :method => :delete, :data => { :confirm => 'Are you sure?' }
|
||||
|
||||
%br
|
||||
|
||||
= link_to 'New Conference admin', new_conference_admin_path
|
||||
@@ -0,0 +1,5 @@
|
||||
%h1 New conference_admin
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Back', conference_admins_path
|
||||
@@ -0,0 +1,12 @@
|
||||
%p#notice= notice
|
||||
|
||||
%p
|
||||
%b Conference:
|
||||
= @conference_admin.conference_id
|
||||
%p
|
||||
%b User:
|
||||
= @conference_admin.user_id
|
||||
|
||||
= link_to 'Edit', edit_conference_admin_path(@conference_admin)
|
||||
\|
|
||||
= link_to 'Back', conference_admins_path
|
||||
@@ -0,0 +1,19 @@
|
||||
= form_for @conference_host_organization do |f|
|
||||
- if @conference_host_organization.errors.any?
|
||||
#error_explanation
|
||||
%h2= "#{pluralize(@conference_host_organization.errors.count, "error")} prohibited this conference_host_organization from being saved:"
|
||||
%ul
|
||||
- @conference_host_organization.errors.full_messages.each do |msg|
|
||||
%li= msg
|
||||
|
||||
.field
|
||||
= f.label :conference_id
|
||||
= f.number_field :conference_id
|
||||
.field
|
||||
= f.label :organization_id
|
||||
= f.number_field :organization_id
|
||||
.field
|
||||
= f.label :order
|
||||
= f.number_field :order
|
||||
.actions
|
||||
= f.submit 'Save'
|
||||
@@ -0,0 +1,7 @@
|
||||
%h1 Editing conference_host_organization
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Show', @conference_host_organization
|
||||
\|
|
||||
= link_to 'Back', conference_host_organizations_path
|
||||
@@ -0,0 +1,23 @@
|
||||
%h1 Listing conference_host_organizations
|
||||
|
||||
%table
|
||||
%tr
|
||||
%th Conference
|
||||
%th Organization
|
||||
%th Order
|
||||
%th
|
||||
%th
|
||||
%th
|
||||
|
||||
- @conference_host_organizations.each do |conference_host_organization|
|
||||
%tr
|
||||
%td= conference_host_organization.conference_id
|
||||
%td= conference_host_organization.organization_id
|
||||
%td= conference_host_organization.order
|
||||
%td= link_to 'Show', conference_host_organization
|
||||
%td= link_to 'Edit', edit_conference_host_organization_path(conference_host_organization)
|
||||
%td= link_to 'Destroy', conference_host_organization, :method => :delete, :data => { :confirm => 'Are you sure?' }
|
||||
|
||||
%br
|
||||
|
||||
= link_to 'New Conference host organization', new_conference_host_organization_path
|
||||
@@ -0,0 +1,5 @@
|
||||
%h1 New conference_host_organization
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Back', conference_host_organizations_path
|
||||
@@ -0,0 +1,15 @@
|
||||
%p#notice= notice
|
||||
|
||||
%p
|
||||
%b Conference:
|
||||
= @conference_host_organization.conference_id
|
||||
%p
|
||||
%b Organization:
|
||||
= @conference_host_organization.organization_id
|
||||
%p
|
||||
%b Order:
|
||||
= @conference_host_organization.order
|
||||
|
||||
= link_to 'Edit', edit_conference_host_organization_path(@conference_host_organization)
|
||||
\|
|
||||
= link_to 'Back', conference_host_organizations_path
|
||||
@@ -0,0 +1,19 @@
|
||||
= 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'
|
||||
@@ -0,0 +1,7 @@
|
||||
%h1 Editing conference_registration_response
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Show', @conference_registration_response
|
||||
\|
|
||||
= link_to 'Back', conference_registration_responses_path
|
||||
@@ -0,0 +1,23 @@
|
||||
%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
|
||||
@@ -0,0 +1,5 @@
|
||||
%h1 New conference_registration_response
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Back', conference_registration_responses_path
|
||||
@@ -0,0 +1,15 @@
|
||||
%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
|
||||
@@ -0,0 +1,19 @@
|
||||
= form_for @conference_registration do |f|
|
||||
- if @conference_registration.errors.any?
|
||||
#error_explanation
|
||||
%h2= "#{pluralize(@conference_registration.errors.count, "error")} prohibited this conference_registration from being saved:"
|
||||
%ul
|
||||
- @conference_registration.errors.full_messages.each do |msg|
|
||||
%li= msg
|
||||
|
||||
.field
|
||||
= f.label :conference_id
|
||||
= f.number_field :conference_id
|
||||
.field
|
||||
= f.label :user_id
|
||||
= f.number_field :user_id
|
||||
.field
|
||||
= f.label :is_attending
|
||||
= f.text_field :is_attending
|
||||
.actions
|
||||
= f.submit 'Save'
|
||||
@@ -0,0 +1,7 @@
|
||||
%h1 Editing conference_registration
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Show', @conference_registration
|
||||
\|
|
||||
= link_to 'Back', conference_registrations_path
|
||||
@@ -0,0 +1,23 @@
|
||||
%h1 Listing conference_registrations
|
||||
|
||||
%table
|
||||
%tr
|
||||
%th Conference
|
||||
%th User
|
||||
%th Is attending
|
||||
%th
|
||||
%th
|
||||
%th
|
||||
|
||||
- @conference_registrations.each do |conference_registration|
|
||||
%tr
|
||||
%td= conference_registration.conference_id
|
||||
%td= conference_registration.user_id
|
||||
%td= conference_registration.is_attending
|
||||
%td= link_to 'Show', conference_registration
|
||||
%td= link_to 'Edit', edit_conference_registration_path(conference_registration)
|
||||
%td= link_to 'Destroy', conference_registration, :method => :delete, :data => { :confirm => 'Are you sure?' }
|
||||
|
||||
%br
|
||||
|
||||
= link_to 'New Conference registration', new_conference_registration_path
|
||||
@@ -0,0 +1,5 @@
|
||||
%h1 New conference_registration
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Back', conference_registrations_path
|
||||
@@ -0,0 +1,15 @@
|
||||
%p#notice= notice
|
||||
|
||||
%p
|
||||
%b Conference:
|
||||
= @conference_registration.conference_id
|
||||
%p
|
||||
%b User:
|
||||
= @conference_registration.user_id
|
||||
%p
|
||||
%b Is attending:
|
||||
= @conference_registration.is_attending
|
||||
|
||||
= link_to 'Edit', edit_conference_registration_path(@conference_registration)
|
||||
\|
|
||||
= link_to 'Back', conference_registrations_path
|
||||
@@ -0,0 +1,19 @@
|
||||
= form_for @conference_registraton_form_field do |f|
|
||||
- if @conference_registraton_form_field.errors.any?
|
||||
#error_explanation
|
||||
%h2= "#{pluralize(@conference_registraton_form_field.errors.count, "error")} prohibited this conference_registraton_form_field from being saved:"
|
||||
%ul
|
||||
- @conference_registraton_form_field.errors.full_messages.each do |msg|
|
||||
%li= msg
|
||||
|
||||
.field
|
||||
= f.label :conference_id
|
||||
= f.number_field :conference_id
|
||||
.field
|
||||
= f.label :registration_form_field_id
|
||||
= f.number_field :registration_form_field_id
|
||||
.field
|
||||
= f.label :order
|
||||
= f.number_field :order
|
||||
.actions
|
||||
= f.submit 'Save'
|
||||
@@ -0,0 +1,7 @@
|
||||
%h1 Editing conference_registraton_form_field
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Show', @conference_registraton_form_field
|
||||
\|
|
||||
= link_to 'Back', conference_registraton_form_fields_path
|
||||
@@ -0,0 +1,23 @@
|
||||
%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
|
||||
@@ -0,0 +1,5 @@
|
||||
%h1 New conference_registraton_form_field
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Back', conference_registraton_form_fields_path
|
||||
@@ -0,0 +1,15 @@
|
||||
%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
|
||||
@@ -0,0 +1,16 @@
|
||||
= form_for @conference_type do |f|
|
||||
- if @conference_type.errors.any?
|
||||
#error_explanation
|
||||
%h2= "#{pluralize(@conference_type.errors.count, "error")} prohibited this conference_type from being saved:"
|
||||
%ul
|
||||
- @conference_type.errors.full_messages.each do |msg|
|
||||
%li= msg
|
||||
|
||||
.field
|
||||
= f.label :title
|
||||
= f.text_field :title
|
||||
.field
|
||||
= f.label :info
|
||||
= f.text_field :info
|
||||
.actions
|
||||
= f.submit 'Save'
|
||||
@@ -0,0 +1,7 @@
|
||||
%h1 Editing conference_type
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Show', @conference_type
|
||||
\|
|
||||
= link_to 'Back', conference_types_path
|
||||
@@ -0,0 +1,21 @@
|
||||
%h1 Listing conference_types
|
||||
|
||||
%table
|
||||
%tr
|
||||
%th Title
|
||||
%th Info
|
||||
%th
|
||||
%th
|
||||
%th
|
||||
|
||||
- @conference_types.each do |conference_type|
|
||||
%tr
|
||||
%td= conference_type.title
|
||||
%td= conference_type.info
|
||||
%td= link_to 'Show', conference_type
|
||||
%td= link_to 'Edit', edit_conference_type_path(conference_type)
|
||||
%td= link_to 'Destroy', conference_type, :method => :delete, :data => { :confirm => 'Are you sure?' }
|
||||
|
||||
%br
|
||||
|
||||
= link_to 'New Conference type', new_conference_type_path
|
||||
@@ -0,0 +1,5 @@
|
||||
%h1 New conference_type
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Back', conference_types_path
|
||||
@@ -0,0 +1,12 @@
|
||||
%p#notice= notice
|
||||
|
||||
%p
|
||||
%b Title:
|
||||
= @conference_type.title
|
||||
%p
|
||||
%b Info:
|
||||
= @conference_type.info
|
||||
|
||||
= link_to 'Edit', edit_conference_type_path(@conference_type)
|
||||
\|
|
||||
= link_to 'Back', conference_types_path
|
||||
@@ -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
|
||||
@@ -25,20 +25,19 @@
|
||||
Le javascript
|
||||
\==================================================
|
||||
/ Placed at the top of the document 'cause of turbolinks
|
||||
= javascript_include_tag '//use.typekit.net/iqv7hcg.js'
|
||||
= javascript_include_tag 'application'
|
||||
= javascript_include_tag 'nested_form'
|
||||
= javascript_include_tag '//use.edgefonts.net/abel;amatic-sc.js'
|
||||
|
||||
%body
|
||||
%body{ class: (yield_or_default :page_style) }
|
||||
= render 'shared/translation_control'
|
||||
= render 'shared/navbar'
|
||||
|
||||
#main-container.container.row
|
||||
%aside.columns.large-4.push-8
|
||||
Stuff that is not directly related to this page will go here, things like recommend or popular articles.
|
||||
%section#main.columns.large-8.pull-4
|
||||
%header#article-header.columns.large-12
|
||||
%img{src: @title_img}
|
||||
%nav.columns.large-2
|
||||
Nav 2
|
||||
%article.content.columns.large-10= yield
|
||||
%main
|
||||
- if has_banner?
|
||||
%header#banner{banner_attrs(yield_or_default :banner_image)}
|
||||
= yield :banner
|
||||
= yield
|
||||
#footer
|
||||
.container= render 'shared/footer'
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
= form_for @location do |f|
|
||||
- if @location.errors.any?
|
||||
#error_explanation
|
||||
%h2= "#{pluralize(@location.errors.count, "error")} prohibited this location from being saved:"
|
||||
%ul
|
||||
- @location.errors.full_messages.each do |msg|
|
||||
%li= msg
|
||||
|
||||
.field
|
||||
= f.label :title
|
||||
= f.text_field :title
|
||||
.field
|
||||
= f.label :address
|
||||
= f.text_field :address
|
||||
.field
|
||||
= f.label :latitude
|
||||
= f.text_field :latitude
|
||||
.field
|
||||
= f.label :longitude
|
||||
= f.text_field :longitude
|
||||
.actions
|
||||
= f.submit 'Save'
|
||||
@@ -0,0 +1,7 @@
|
||||
%h1 Editing location
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Show', @location
|
||||
\|
|
||||
= link_to 'Back', locations_path
|
||||
@@ -0,0 +1,25 @@
|
||||
%h1 Listing locations
|
||||
|
||||
%table
|
||||
%tr
|
||||
%th Title
|
||||
%th Address
|
||||
%th Latitude
|
||||
%th Longitude
|
||||
%th
|
||||
%th
|
||||
%th
|
||||
|
||||
- @locations.each do |location|
|
||||
%tr
|
||||
%td= location.title
|
||||
%td= location.address
|
||||
%td= location.latitude
|
||||
%td= location.longitude
|
||||
%td= link_to 'Show', location
|
||||
%td= link_to 'Edit', edit_location_path(location)
|
||||
%td= link_to 'Destroy', location, :method => :delete, :data => { :confirm => 'Are you sure?' }
|
||||
|
||||
%br
|
||||
|
||||
= link_to 'New Location', new_location_path
|
||||
@@ -0,0 +1,5 @@
|
||||
%h1 New location
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Back', locations_path
|
||||
@@ -0,0 +1,18 @@
|
||||
%p#notice= notice
|
||||
|
||||
%p
|
||||
%b Title:
|
||||
= @location.title
|
||||
%p
|
||||
%b Address:
|
||||
= @location.address
|
||||
%p
|
||||
%b Latitude:
|
||||
= @location.latitude
|
||||
%p
|
||||
%b Longitude:
|
||||
= @location.longitude
|
||||
|
||||
= link_to 'Edit', edit_location_path(@location)
|
||||
\|
|
||||
= link_to 'Back', locations_path
|
||||
@@ -0,0 +1,19 @@
|
||||
= 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'
|
||||
@@ -0,0 +1,7 @@
|
||||
%h1 Editing organization_status
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Show', @organization_status
|
||||
\|
|
||||
= link_to 'Back', organization_statuses_path
|
||||
@@ -0,0 +1,23 @@
|
||||
%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
|
||||
@@ -0,0 +1,5 @@
|
||||
%h1 New organization_status
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Back', organization_statuses_path
|
||||
@@ -0,0 +1,15 @@
|
||||
%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
|
||||
@@ -0,0 +1,42 @@
|
||||
= form_for @organization do |f|
|
||||
.columns
|
||||
- if @organization.errors.any?
|
||||
#error_explanation
|
||||
%h2= "#{pluralize(@organization.errors.count, "error")} prohibited this organization from being saved:"
|
||||
%ul
|
||||
- @organization.errors.full_messages.each do |msg|
|
||||
%li= msg
|
||||
= field f, :name, :text_field
|
||||
= field f, :slug, :text_field
|
||||
|
||||
.columns.medium-4
|
||||
-#%h2=_'organization.create.intro-title', :t
|
||||
-#%p=_'organization.create.intro', :p
|
||||
=# field f, :avatar, :image_field
|
||||
= field f, :avatar, :image_field, @organization.avatar_url
|
||||
-#= field f, :year_founded, :number_field
|
||||
=# f.label :avatar do
|
||||
=# %div
|
||||
=# = image_tag(@organization.avatar_url || ''
|
||||
=# = f.hidden_field :avatar_cache
|
||||
.columns.medium-8
|
||||
= field f, :email_address, :email_field
|
||||
-#= field f, :url, :text_field
|
||||
= f.fields_for :locations do |b|
|
||||
= field_set_tag 'Location' do
|
||||
= field b, :country, :country_select, {help: 'Select a Country'}
|
||||
- cc = @organization.locations && @organization.locations[b.index].country ? @organization.locations[b.index].country : 'US'
|
||||
= field b, :territory, :subregion_select, cc, html: {class: @organization.locations[b.index].country ? 'can' : 'cant', data: {:country => cc}}
|
||||
= field b, :city, :text_field
|
||||
= field b, :street, :text_field
|
||||
= field b, :postal_code, :text_field
|
||||
-#= field f, :logo, :text_field
|
||||
-#= field f, :avatar, :text_field
|
||||
-#= field f, :requires_approval, :check_box
|
||||
-#= field f, :secret_question, :text_field
|
||||
-#= field f, :secret_answer, :text_field
|
||||
-#= field f, :location_id, :number_field
|
||||
-#= field f, :user_organization_replationship_id, :number_field
|
||||
.columns
|
||||
= field f, :info, :text_area
|
||||
= actions :save
|
||||
@@ -0,0 +1,5 @@
|
||||
- page_style :form
|
||||
|
||||
= tabs!
|
||||
.row
|
||||
= render 'form'
|
||||
@@ -0,0 +1,13 @@
|
||||
|
||||
- page_style :form
|
||||
|
||||
= tabs!
|
||||
.row
|
||||
= form_for @organization do |f|
|
||||
.columns.medium-4
|
||||
%h2=_'organization.members.help.title', :t
|
||||
%p=_'organization.members.help', :p
|
||||
.columns.medium-8
|
||||
= field f, :cover, :image_field, @organization.cover_url
|
||||
= field f, :year_founded, :number_field
|
||||
= actions :save
|
||||
@@ -0,0 +1,41 @@
|
||||
%h1 Listing organizations
|
||||
|
||||
%table
|
||||
%tr
|
||||
%th Name
|
||||
%th Slug
|
||||
%th Email address
|
||||
%th Url
|
||||
%th Year founded
|
||||
%th Info
|
||||
%th Logo
|
||||
%th Avatar
|
||||
%th Requires approval
|
||||
%th Secret question
|
||||
%th Secret answer
|
||||
%th User organization replationship
|
||||
%th
|
||||
%th
|
||||
%th
|
||||
|
||||
- @organizations.each do |organization|
|
||||
%tr
|
||||
%td= organization.name
|
||||
%td= organization.slug
|
||||
%td= organization.email_address
|
||||
%td= organization.url
|
||||
%td= organization.year_founded
|
||||
%td= organization.info
|
||||
%td= organization.logo
|
||||
%td= organization.avatar
|
||||
%td= organization.requires_approval
|
||||
%td= organization.secret_question
|
||||
%td= organization.secret_answer
|
||||
%td= organization.user_organization_replationship_id
|
||||
%td= link_to 'Show', organization
|
||||
%td= link_to 'Edit', edit_organization_path(organization)
|
||||
%td= link_to 'Destroy', organization, :method => :delete, :data => { :confirm => 'Are you sure?' }
|
||||
|
||||
%br
|
||||
|
||||
= link_to 'New Organization', new_organization_path
|
||||
@@ -0,0 +1,14 @@
|
||||
|
||||
- page_style :form
|
||||
|
||||
= tabs!
|
||||
.row
|
||||
= form_for @organization do |f|
|
||||
.columns.medium-4
|
||||
%h2=_'organization.members.help.title', :t
|
||||
%p=_'organization.members.help', :p
|
||||
.columns.medium-8
|
||||
.clearfix
|
||||
= f.fields_for :user_organization_relationships, :include_id => true do |u|
|
||||
= field u, :id, :user_select_field, @organization.users[u.index], attrs: [@organization.user_organization_relationships[u.index]]
|
||||
= actions :save
|
||||
@@ -0,0 +1,5 @@
|
||||
-# banner_title 'Register a New Organization'
|
||||
- page_style :form
|
||||
|
||||
.row
|
||||
= render 'form'
|
||||
@@ -0,0 +1,18 @@
|
||||
- page_style 'organization'
|
||||
- banner_image @organization.cover_url
|
||||
- content_for :banner do
|
||||
.row
|
||||
.columns.medium-6.info
|
||||
%h1=@organization.name
|
||||
%h2=@organization.locations[0].city + (@organization.locations[0].territory ? ' ' + @organization.locations[0].territory : '') + ', ' + Carmen::Country.coded(@organization.locations[0].country).name
|
||||
.columns.medium-6
|
||||
%figure
|
||||
= image_tag(@organization.avatar_url)
|
||||
|
||||
%p#notice= notice
|
||||
|
||||
= tabs!
|
||||
|
||||
.row
|
||||
.columns
|
||||
=p @organization, :info
|
||||
@@ -1,6 +1,30 @@
|
||||
- title 'Bike!Bike!'
|
||||
- banner_image '/assets/columbus.jpg'
|
||||
- page_style 'emphasize-banner'
|
||||
|
||||
%h1
|
||||
Bike!Bike!
|
||||
%p.lead.muted
|
||||
Ruby 2 + Rails 4.0.0 + Foundation
|
||||
- content_for :banner do
|
||||
.row
|
||||
.columns.medium-6
|
||||
%figure
|
||||
%img{src: '/assets/poster.jpg'}
|
||||
.columns.medium-6.info
|
||||
%h1
|
||||
Bike!Bike! 2014
|
||||
%h2
|
||||
Columbus, Ohio
|
||||
%em
|
||||
August 30 - September 1
|
||||
%p
|
||||
= _ 'nola_2013.about', 'paragraph'
|
||||
.centered
|
||||
%a.button{href: '#'}
|
||||
Register Now
|
||||
|
||||
%section
|
||||
.row
|
||||
.columns.medium-6
|
||||
%h1
|
||||
Welcome to Bike!Bike!
|
||||
%p
|
||||
= _ 'home.its_awesome', 'paragraph'
|
||||
.columns.medium-6
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
= 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'
|
||||
@@ -0,0 +1,14 @@
|
||||
= form_for @registration_form_field do |f|
|
||||
- if @registration_form_field.errors.any?
|
||||
#error_explanation
|
||||
%h2= "#{pluralize(@registration_form_field.errors.count, "error")} prohibited this registration_form_field from being saved:"
|
||||
%ul
|
||||
- @registration_form_field.errors.full_messages.each do |msg|
|
||||
%li= msg
|
||||
|
||||
= 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}
|
||||
- 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")
|
||||
= actions :save
|
||||
@@ -0,0 +1,6 @@
|
||||
%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'
|
||||
@@ -0,0 +1,7 @@
|
||||
%h1 Editing registration_form_field
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Show', @registration_form_field
|
||||
\|
|
||||
= link_to 'Back', registration_form_fields_path
|
||||
@@ -0,0 +1,29 @@
|
||||
%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
|
||||
@@ -0,0 +1,5 @@
|
||||
%h1 New registration_form_field
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Back', registration_form_fields_path
|
||||
@@ -0,0 +1,24 @@
|
||||
%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,6 +1,5 @@
|
||||
%hr
|
||||
%footer
|
||||
%p
|
||||
= link_to 'https://github.com/diowa/ruby2-rails4-bootstrap-heroku' do
|
||||
%i.icon-github
|
||||
diowa/ruby2-rails4-bootstrap-heroku
|
||||
%p
|
||||
= link_to 'https://github.com/diowa/ruby2-rails4-bootstrap-heroku' do
|
||||
%i.icon-github
|
||||
diowa/ruby2-rails4-bootstrap-heroku
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
%nav.top-bar
|
||||
%nav.top-bar.row
|
||||
#nav-inner
|
||||
%ul.title-area
|
||||
/ Title Area
|
||||
@@ -13,18 +13,19 @@
|
||||
.top-bar-section
|
||||
/ Left Nav Section
|
||||
%ul.left
|
||||
%li.divider
|
||||
%li.active
|
||||
%a{href: "#"} Conferences
|
||||
%li.divider
|
||||
%a{href: "/conferences/"} Conferences
|
||||
%li
|
||||
%a{href: "#"} Organizations
|
||||
%li.divider
|
||||
%a{href: "/organizations/"} Organizations
|
||||
%li
|
||||
%a{href: "#"} Resources
|
||||
%li.divider
|
||||
/ Right Nav Section
|
||||
%a{href: "/resources/"} Resources
|
||||
/ Right Nav Section
|
||||
%ul.right
|
||||
%li.divider.hide-for-small
|
||||
%li.has-form
|
||||
%a.button{href: "#"} Sign In!
|
||||
- if current_user
|
||||
%li.has-form.sign-out
|
||||
= link_to "Sign Out", :logout, method: :post, :class => 'button'
|
||||
%li.user-profile
|
||||
= link_to image_tag(current_user.avatar_url(:icon)), current_user
|
||||
- else
|
||||
%li.has-form.sign-in
|
||||
= link_to "Sign In", :login, :class => 'button'
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
- if ThereAreTranslationsOnThisPage?
|
||||
- counts = {'one' => _('translation.count.one'), 'zero' => _('translation.count.zero'), 'two' => _('translation.count.two'), 'few' => _('translation.count.few'), 'many' => _('translation.count.many')}
|
||||
- save_str = _ 'active_record.save'
|
||||
= javascript_include_tag 'translate'
|
||||
%div#translation-control
|
||||
= form_tag '/translate/' do
|
||||
= hidden_field_tag :translationlang, I18n.locale
|
||||
.row
|
||||
.columns.medium-3
|
||||
= select_tag :translationkey, options_for_select(get_all_translations().invert())
|
||||
.columns.medium-8
|
||||
= text_area_tag :translationvalue, '', :rows => '1'
|
||||
#translatepluralizations
|
||||
= hidden_field_tag :translationhascount, I18n.locale
|
||||
- counts.each do |count_key,count_name|
|
||||
.row
|
||||
.columns.medium-2
|
||||
= check_box_tag ('translationpluralization_' + count_key.to_s)
|
||||
= label_tag ('translationpluralization_' + count_key.to_s), count_name.to_s
|
||||
.columns.medium-10
|
||||
= text_area_tag ('translationvalue_' + count_key.to_s), '', :rows => '1'
|
||||
#translatevars
|
||||
%strong Parameters:
|
||||
%ul
|
||||
.columns.medium-1
|
||||
= button_tag save_str
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
UserMailer#activation_needed_email
|
||||
|
||||
= @greeting + ", find me in app/views/user_mailer/activation_needed_email.text.haml"
|
||||
@@ -0,0 +1,3 @@
|
||||
UserMailer#activation_success_email
|
||||
|
||||
= @greeting + ", find me in app/views/user_mailer/activation_success_email.text.haml"
|
||||
@@ -0,0 +1,19 @@
|
||||
= form_for @user_organization_relationship do |f|
|
||||
- if @user_organization_relationship.errors.any?
|
||||
#error_explanation
|
||||
%h2= "#{pluralize(@user_organization_relationship.errors.count, "error")} prohibited this user_organization_relationship from being saved:"
|
||||
%ul
|
||||
- @user_organization_relationship.errors.full_messages.each do |msg|
|
||||
%li= msg
|
||||
|
||||
.field
|
||||
= f.label :user_id
|
||||
= f.number_field :user_id
|
||||
.field
|
||||
= f.label :organization_id
|
||||
= f.number_field :organization_id
|
||||
.field
|
||||
= f.label :relationship
|
||||
= f.text_field :relationship
|
||||
.actions
|
||||
= f.submit 'Save'
|
||||
@@ -0,0 +1,7 @@
|
||||
%h1 Editing user_organization_relationship
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Show', @user_organization_relationship
|
||||
\|
|
||||
= link_to 'Back', user_organization_relationships_path
|
||||
@@ -0,0 +1,23 @@
|
||||
%h1 Listing user_organization_relationships
|
||||
|
||||
%table
|
||||
%tr
|
||||
%th User
|
||||
%th Organization
|
||||
%th Relationship
|
||||
%th
|
||||
%th
|
||||
%th
|
||||
|
||||
- @user_organization_relationships.each do |user_organization_relationship|
|
||||
%tr
|
||||
%td= user_organization_relationship.user_id
|
||||
%td= user_organization_relationship.organization_id
|
||||
%td= user_organization_relationship.relationship
|
||||
%td= link_to 'Show', user_organization_relationship
|
||||
%td= link_to 'Edit', edit_user_organization_relationship_path(user_organization_relationship)
|
||||
%td= link_to 'Destroy', user_organization_relationship, :method => :delete, :data => { :confirm => 'Are you sure?' }
|
||||
|
||||
%br
|
||||
|
||||
= link_to 'New User organization relationship', new_user_organization_relationship_path
|
||||
@@ -0,0 +1,5 @@
|
||||
%h1 New user_organization_relationship
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Back', user_organization_relationships_path
|
||||
@@ -0,0 +1,15 @@
|
||||
%p#notice= notice
|
||||
|
||||
%p
|
||||
%b User:
|
||||
= @user_organization_relationship.user_id
|
||||
%p
|
||||
%b Organization:
|
||||
= @user_organization_relationship.organization_id
|
||||
%p
|
||||
%b Relationship:
|
||||
= @user_organization_relationship.relationship
|
||||
|
||||
= link_to 'Edit', edit_user_organization_relationship_path(@user_organization_relationship)
|
||||
\|
|
||||
= link_to 'Back', user_organization_relationships_path
|
||||
@@ -0,0 +1,4 @@
|
||||
= form_tag user_sessions_path, :method => :post do
|
||||
= field :email, :email_field
|
||||
= field :password, :password_field_tag
|
||||
= actions :sign_in
|
||||
@@ -0,0 +1,2 @@
|
||||
%h1 UserSessions#create
|
||||
%p Find me in app/views/user_sessions/create.html.haml
|
||||
@@ -0,0 +1,2 @@
|
||||
%h1 UserSessions#destroy
|
||||
%p Find me in app/views/user_sessions/destroy.html.haml
|
||||
@@ -0,0 +1,11 @@
|
||||
- banner_title 'Login'
|
||||
|
||||
.row
|
||||
.columns.medium-6
|
||||
= render 'form'
|
||||
.columns.medium-6
|
||||
%h2
|
||||
Create an Account
|
||||
%p
|
||||
#{_ 'user.why_register', 'paragraph'}
|
||||
= render '/users/form'
|
||||
@@ -0,0 +1,19 @@
|
||||
= form_for @user, :html => (@user.id ? {:multipart => true} : {}) do |f|
|
||||
%div{:class => (@user.id ? 'columns medium-6' : '')}
|
||||
- if @user.errors.any?
|
||||
#error_explanation
|
||||
%h2= "#{pluralize(@user.errors.count, "error")} prohibited this user from being saved:"
|
||||
%ul
|
||||
- @user.errors.full_messages.each do |msg|
|
||||
%li= msg
|
||||
|
||||
= field f, :username, :text_field
|
||||
= field f, :email, :text_field
|
||||
- if !@user.id
|
||||
= field f, :password, :password_field
|
||||
= field f, :password_confirmation, :password_field
|
||||
= actions :register
|
||||
- if @user.id
|
||||
.columns.medium-6
|
||||
= field f, :avatar, :image_field, @user.avatar_url
|
||||
= actions :save
|
||||
@@ -0,0 +1,8 @@
|
||||
- banner_title @user.username
|
||||
|
||||
.row
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Show', @user
|
||||
\|
|
||||
= link_to 'Back', users_path
|
||||
@@ -0,0 +1,22 @@
|
||||
- banner_title 'Listing users'
|
||||
|
||||
.row
|
||||
%table
|
||||
%tr
|
||||
%th Email
|
||||
%th Crypted password
|
||||
%th Salt
|
||||
%th
|
||||
%th
|
||||
%th
|
||||
|
||||
- @users.each do |user|
|
||||
%tr
|
||||
%td= user.email
|
||||
%td= user.crypted_password
|
||||
%td= user.salt
|
||||
%td= link_to 'Show', user
|
||||
%td= link_to 'Edit', edit_user_path(user)
|
||||
%td= link_to 'Destroy', user, :method => :delete, :data => { :confirm => 'Are you sure?' }
|
||||
|
||||
= link_to 'New User', new_user_path
|
||||
@@ -0,0 +1,6 @@
|
||||
- banner_title 'Create an Account'
|
||||
|
||||
.row
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Back', users_path
|
||||
@@ -0,0 +1,14 @@
|
||||
- banner_title @user.username
|
||||
|
||||
%p#notice= notice
|
||||
|
||||
.row
|
||||
|
||||
%p
|
||||
%b Email:
|
||||
= @user.email
|
||||
= image_tag(@user.avatar_url(:thumb)) if @user.avatar?
|
||||
|
||||
= link_to 'Edit', edit_user_path(@user)
|
||||
\|
|
||||
= link_to 'Back', users_path
|
||||
@@ -0,0 +1,19 @@
|
||||
= 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'
|
||||
@@ -0,0 +1,7 @@
|
||||
%h1 Editing workshop_presentation_style
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Show', @workshop_presentation_style
|
||||
\|
|
||||
= link_to 'Back', workshop_presentation_styles_path
|
||||
@@ -0,0 +1,23 @@
|
||||
%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
|
||||
@@ -0,0 +1,5 @@
|
||||
%h1 New workshop_presentation_style
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Back', workshop_presentation_styles_path
|
||||
@@ -0,0 +1,15 @@
|
||||
%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
|
||||
@@ -0,0 +1,19 @@
|
||||
= 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'
|
||||
@@ -0,0 +1,7 @@
|
||||
%h1 Editing workshop_resource
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Show', @workshop_resource
|
||||
\|
|
||||
= link_to 'Back', workshop_resources_path
|
||||
@@ -0,0 +1,23 @@
|
||||
%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
|
||||
@@ -0,0 +1,5 @@
|
||||
%h1 New workshop_resource
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Back', workshop_resources_path
|
||||
@@ -0,0 +1,15 @@
|
||||
%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
|
||||
@@ -0,0 +1,19 @@
|
||||
= 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'
|
||||
@@ -0,0 +1,7 @@
|
||||
%h1 Editing workshop_stream
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Show', @workshop_stream
|
||||
\|
|
||||
= link_to 'Back', workshop_streams_path
|
||||
@@ -0,0 +1,23 @@
|
||||
%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
|
||||
@@ -0,0 +1,5 @@
|
||||
- banner_title 'New workshop_stream'
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Back', workshop_streams_path
|
||||
@@ -0,0 +1,15 @@
|
||||
%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
|
||||
Reference in New Issue
Block a user