This commit is contained in:
Shyukri Shyukriev 2017-05-15 07:37:49 +00:00 committed by GitHub
commit 4d90a647e7
4 changed files with 19 additions and 2 deletions

View file

@ -4,6 +4,11 @@
%h1 Event Types %h1 Event Types
%p.text-muted %p.text-muted
The character of events in your conference The character of events in your conference
- if @conference.program.event_types.size > 5
.row
.col-md-12.text-right
= link_to 'Add Event Type', new_admin_conference_program_event_type_path(@conference.short_title), class: 'btn btn-primary'
.row .row
.col-md-12 .col-md-12
%table.table.table-hover#event_types %table.table.table-hover#event_types

View file

@ -5,6 +5,10 @@
%p.text-muted %p.text-muted
Recommended some Hotels, Motels, Hostels or Campsites around your venue Recommended some Hotels, Motels, Hostels or Campsites around your venue
- if @conference.lodgings.size > 5
.row
.col-md-12.text-right
= link_to 'Add Lodging', new_admin_conference_lodging_path(@conference.short_title), class: 'btn btn-primary'
- @conference.lodgings.each_slice(3) do |slice| - @conference.lodgings.each_slice(3) do |slice|
.row .row
- slice.each do |lodging| - slice.each do |lodging|
@ -28,8 +32,6 @@
= link_to 'Edit', edit_admin_conference_lodging_path(@conference.short_title, lodging), class: 'btn btn-primary' = link_to 'Edit', edit_admin_conference_lodging_path(@conference.short_title, lodging), class: 'btn btn-primary'
= link_to 'Delete', admin_conference_lodging_path(@conference.short_title, lodging), = link_to 'Delete', admin_conference_lodging_path(@conference.short_title, lodging),
method: :delete, class: 'btn btn-danger', data: { confirm: "Do you really want to delete the lodging #{lodging.name}?" } method: :delete, class: 'btn btn-danger', data: { confirm: "Do you really want to delete the lodging #{lodging.name}?" }
.row .row
.col-md-12.text-right .col-md-12.text-right
= link_to 'Add Lodging', new_admin_conference_lodging_path(@conference.short_title), class: 'btn btn-primary' = link_to 'Add Lodging', new_admin_conference_lodging_path(@conference.short_title), class: 'btn btn-primary'

View file

@ -6,6 +6,10 @@
The rooms of your conference venue The rooms of your conference venue
- if @rooms.any? - if @rooms.any?
- if @rooms.size > 5
.row
.col-md-12.text-right
= link_to 'Add Room', new_admin_conference_venue_room_path(@conference.short_title), class: 'btn btn-primary'
.row .row
.col-md-12 .col-md-12
%table.table.table-hover#rooms %table.table.table-hover#rooms

View file

@ -4,6 +4,12 @@
%h1 Tracks %h1 Tracks
%p.text-muted %p.text-muted
Categorize events in your conference Categorize events in your conference
- if @tracks.size > 5
.row
.col-md-12.text-right
= link_to 'New Track', new_admin_conference_program_track_path(@conference.short_title), class: 'btn btn-success'
.row .row
.col-md-12 .col-md-12
%table.table.table-hover#tracks %table.table.table-hover#tracks