Browse Source

Added a register button to end of copy on conference page

development
Godwin 10 years ago
parent
commit
652372b433
  1. 4
      app/views/conferences/_header.html.haml
  2. 5
      app/views/conferences/show.html.haml

4
app/views/conferences/_header.html.haml

@ -43,7 +43,7 @@
%a.button.more{href: @conference.url}
=_'conference.More_Info'
- if @conference.registration_open && !small_banner
%a.button#register-now{href: @conference.url(:register)}
%a.button#register-now.register-now{href: @conference.url(:register)}
=_'conference.Register_Now'
#register-dlg
= form_tag (@conference.url + '/register/').gsub(/\/\/+/, '/'), :method => :post do
@ -53,7 +53,7 @@
- if !small_banner && @conference.registration_open
- content_for :dom_ready do
:plain
$('#register-now').click(function(e) {
$('a.register-now').click(function(e) {
e.preventDefault();
if ($('#register-dlg').hasClass('open')) {
$('#register-dlg form').submit();

5
app/views/conferences/show.html.haml

@ -21,6 +21,11 @@
- else
%h2=('About '+@conference.title)
=p @conference, :info
- if @conference.registration_open
.columns.small-12.centered
%a.button.register-now{href: @conference.url(:register)}
=_'conference.Register_Now'
- content_for :side_bar do
%h5= @conference.title+' is hosted by:'

Loading…
Cancel
Save