Add Call for Booths

This commit is contained in:
nasia 2017-07-07 16:13:35 +03:00 committed by nasia-sam
parent 4615505fcd
commit b86472ac3c
8 changed files with 92 additions and 13 deletions

View file

@ -1,7 +1,7 @@
# cannot delete program if there are events submitted
class Cfp < ActiveRecord::Base
TYPES = %w(events).freeze
TYPES = %w(events booths).freeze
scope :for_events, (-> { find_by(cfp_type: 'events') })

View file

@ -0,0 +1,12 @@
%dt
Start Date
%dd
= @cfp.start_date.strftime('%A, %B %e. %Y')
%dt
End Date
%dd
= @cfp.end_date.strftime('%A, %B %e. %Y')
%dt
Days Left
%dd
= pluralize(@cfp.remaining_days, 'day')