Add the ability for Rooms to have a URL.

The URL is shown on the schedule and the event/proposal page.
The URL is only when a user is logged in and registered.
This commit is contained in:
Michael Ball 2020-07-10 20:18:10 -07:00
parent 636ad2cebd
commit 7d2135f851
9 changed files with 39 additions and 17 deletions

View file

@ -11,5 +11,8 @@
= semantic_form_for(@room, url: (@room.new_record? ? admin_conference_venue_rooms_path : admin_conference_venue_room_path(@conference.short_title, @room))) do |f|
= f.input :name, input_html: { autofocus: true }
= f.input :size, label: 'Capacity', input_html: {size: 5}
= f.input :url, label: 'URL'
%p.small
The URL is only visible to registered attendees.
%p.text-right
= f.action :submit, as: :button, button_html: { class: 'btn btn-primary' }