diff --git a/app/views/conference_registrations/show.html.haml b/app/views/conference_registrations/show.html.haml index 898493f2..298a1da3 100644 --- a/app/views/conference_registrations/show.html.haml +++ b/app/views/conference_registrations/show.html.haml @@ -101,9 +101,9 @@ .col-md-12 -if @registration .btn-group-vertical.pull-right - = link_to 'Edit your Registration', edit_conference_conference_registrations_path(@conference.short_title), class: 'btn btn-success' + = link_to 'Edit your Registration', edit_conference_conference_registrations_path(@conference.short_title), class: 'btn btn-success', disabled: @conference.end_date < Date.today = link_to 'Unregister', conference_conference_registrations_path(@conference.short_title), - method: :delete, class: 'btn btn-danger btn-xs', confirm: 'Are you sure you want to unregister?' + method: :delete, class: 'btn btn-danger btn-xs', confirm: 'Are you sure you want to unregister?', disabled: @conference.end_date < Date.today - else = link_to 'Register', new_conference_conference_registrations_path(@conference.short_title), class: 'btn btn-success btn-lg pull-right'