mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Add link to venue when venue is not set
Link to create rooms is removed from schedules#show when venue is not set as creating room without venue will show error Closes https://github.com/openSUSE/osem/issues/1729
This commit is contained in:
parent
2f8454a837
commit
33bfb3d3c2
1 changed files with 17 additions and 5 deletions
|
|
@ -40,11 +40,23 @@
|
|||
.tab-pane{ class: "#{ (@dates.first == date) ? 'active' : '' }", id: "#{date}" }
|
||||
= render partial: 'day_tab', locals: { date: date }
|
||||
- else
|
||||
.h3
|
||||
No Rooms!
|
||||
%small
|
||||
= link_to 'Create rooms', admin_conference_venue_rooms_path
|
||||
before creating the schedule.
|
||||
- if @venue.try(:rooms).present?
|
||||
.text-right
|
||||
- if can? :create, @program.schedules.new
|
||||
= link_to 'Add Schedule', admin_conference_schedules_path(@conference.short_title),
|
||||
method: :post, class: 'btn btn-primary'
|
||||
- elsif @venue
|
||||
.h3
|
||||
No Rooms!
|
||||
%small
|
||||
= link_to 'Create rooms', admin_conference_venue_rooms_path
|
||||
before creating the schedule.
|
||||
- else
|
||||
.h3
|
||||
No Venue!
|
||||
%small
|
||||
= link_to 'Create a venue with rooms', new_admin_conference_venue_path
|
||||
before creating the schedule.
|
||||
|
||||
:javascript
|
||||
$(document).ready( function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue