Merge pull request #1766 from rahul2240/venue
Add link to venue when venue is not set
This commit is contained in:
commit
eaa8ad8005
1 changed files with 17 additions and 5 deletions
|
|
@ -40,11 +40,23 @@
|
||||||
.tab-pane{ class: "#{ (@dates.first == date) ? 'active' : '' }", id: "#{date}" }
|
.tab-pane{ class: "#{ (@dates.first == date) ? 'active' : '' }", id: "#{date}" }
|
||||||
= render partial: 'day_tab', locals: { date: date }
|
= render partial: 'day_tab', locals: { date: date }
|
||||||
- else
|
- else
|
||||||
.h3
|
- if @venue.try(:rooms).present?
|
||||||
No Rooms!
|
.text-right
|
||||||
%small
|
- if can? :create, @program.schedules.new
|
||||||
= link_to 'Create rooms', admin_conference_venue_rooms_path
|
= link_to 'Add Schedule', admin_conference_schedules_path(@conference.short_title),
|
||||||
before creating the schedule.
|
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
|
:javascript
|
||||||
$(document).ready( function() {
|
$(document).ready( function() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue