New look
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
- banner_image @conference.cover_url, id: 532693, name: 'phil', user_id: 1429589, src: 'panoramio'
|
||||
- page_style 'emphasize-banner'
|
||||
|
||||
- content_for :banner do
|
||||
.row
|
||||
.columns.small-12
|
||||
%figure
|
||||
%img{src: @conference.poster_url}
|
||||
.row.align-bottom
|
||||
.columns.medium-6
|
||||
%h1='Bike!Bike! '+@conference.start_date.year.to_s
|
||||
%h2
|
||||
- location = @conference.organizations.first.locations.first
|
||||
= location.city + ', ' + (location.territory || location.country)
|
||||
%em
|
||||
= (l @conference.start_date, format: :date) + ' - ' + (l @conference.end_date, format: :date)
|
||||
%p
|
||||
= @conference.info
|
||||
.columns.medium-6.centered
|
||||
- if @conference.registration_open
|
||||
%a.button{href: @conference.url(:register)}
|
||||
=_'conference.Register_Now'
|
||||
- if params['controller'] != 'conferences'
|
||||
%a.button.more{href: @conference.url}
|
||||
=_'conference.More_Info'
|
||||
@@ -1,8 +1,45 @@
|
||||
.columns.medium-8
|
||||
= select_tag :is_attending, ConferenceRegistration::AttendingOptions, label: 'Are you attending?', value: @conference_registration.try(:is_attending)
|
||||
.columns{:class => @host_privledges ? 'medium-8' : 'medium-12'}
|
||||
= f.fields_for @user do |u|
|
||||
.columns#step-1.registration-step= u.email_field :email
|
||||
%button#submit-email.next=_'form.Next'
|
||||
= f.fields_for @user do |u|
|
||||
.columns#step-2.registration-step= u.text_field :username
|
||||
-# .columns.medium-6
|
||||
= select_tag :is_attending, options_for_select(ConferenceRegistration::AttendingOptions, @conference_registration.try(:is_attending)), :label => true
|
||||
%ol
|
||||
- @conference.registration_form_fields.each do |ff|
|
||||
%li
|
||||
- response = @conference_registration ? ConferenceRegistrationResponse.find_by(conference_registration_id: @conference_registration.id, registration_form_field_id: ff.id) : nil
|
||||
= form_field ff, response
|
||||
= form_actions :register
|
||||
= f.actions :register
|
||||
|
||||
- content_for :scripts do
|
||||
:plain
|
||||
function updateForm(data, step) {
|
||||
$('.registration-step').each(function() {
|
||||
var $this = $(this);
|
||||
var this_step = parseInt($this.attr('id').replace(/^step\-(\d+)$/, '$1'));
|
||||
if (this_step > step) {
|
||||
$this.find('input,select').each(function(){
|
||||
var $input = $(this);
|
||||
var params = $input.attr('name').match(/\[(.*?)\]/g);
|
||||
var val = data.conference;
|
||||
for (key in params) {
|
||||
var k = params[key].replace(/\[(.*)\]/, '$1');
|
||||
val = val[params[key].replace(/\[(.*)\]/, '$1')];
|
||||
}
|
||||
$input.val(val)
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
- dom_ready do
|
||||
:plain
|
||||
$('#submit-email').click(function(e){
|
||||
e.preventDefault();
|
||||
$.post('register/step/1', $('form.edit_conference').serialize(), function(data) {
|
||||
//console.log(data.conference.user.username);
|
||||
updateForm(data, 1);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
- title 'Bike!Bike!'
|
||||
= render 'header'
|
||||
|
||||
.row
|
||||
%h1
|
||||
=_'error.title.Permission_Denied'
|
||||
%p
|
||||
=_'error.desc.permission_denied', :p
|
||||
@@ -1,11 +1,14 @@
|
||||
= render 'header'
|
||||
|
||||
- page_style :form
|
||||
|
||||
= tabs!
|
||||
.row
|
||||
= form_for @conference do |f|
|
||||
.columns.medium-4
|
||||
=sub_tabs!
|
||||
%h2=_'conference.hosts.help.title', :t
|
||||
%p=_'conference.hosts.help', :p
|
||||
- if @host_privledges
|
||||
.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)
|
||||
@@ -1,23 +1,5 @@
|
||||
- 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
|
||||
= render 'header'
|
||||
|
||||
= tabs!
|
||||
|
||||
@@ -71,6 +53,6 @@
|
||||
%b Travel info:
|
||||
= @conference.travel_info
|
||||
|
||||
= link_to 'Edit', edit_conference_path(@conference)
|
||||
= link_to 'Edit', @conference.path(:edit) #edit_conference_path(@conference.conference_type.slug, @conference)
|
||||
\|
|
||||
= link_to 'Back', conferences_path
|
||||
= link_to 'Back', 'conferences'
|
||||
|
||||
Reference in New Issue
Block a user