Allowing registration to be access but not modified after registration is closed

This commit is contained in:
Godwin
2015-09-29 22:31:22 -07:00
parent 06d216421e
commit dfd39d77e0
48 changed files with 113 additions and 194 deletions
+4 -3
View File
@@ -45,6 +45,7 @@
%tr
%th=_'articles.conference_registration.headings.payment'
%td=_!('$' + (@amount || 0))
= form_tag register_path(@this_conference.slug) do
.actions
= button_tag :edit_registration, :value => :register
- if @conference.registration_open
= form_tag register_path(@this_conference.slug) do
.actions
= button_tag :edit_registration, :value => :register
@@ -1,6 +1,6 @@
- # encoding: utf-8
%ul.workshop-previews
- workshops.each do |w|
- workshops.sort_by{ |w| w.title.downcase }.each do |w|
- if w.title
%li
=link_to view_workshop_path(@this_conference.slug, w.id) do
+1 -1
View File
@@ -8,6 +8,6 @@
= columns(medium: 6) do
%h3=_'articles.workshops.headings.Your_Workshops'
= render 'workshops/workshop_previews', :workshops => @my_workshops
= link_to (_'actions.workshops.create','New Workshop'), create_workshop_path(@this_conference.slug), class: [:button, :modify]
= link_to (_'actions.workshops.create','New Workshop'), create_workshop_path(@this_conference.slug), class: [:button, :modify] if @conference.registration_open
= row do
= render 'workshops/workshop_previews', :workshops => @workshops