Sha256: 47290ce4d4651d684f985a395ba4568db466396366037f933dbb5dce8e7c3a9e
Contents?: true
Size: 1.91 KB
Versions: 10
Compression:
Stored size: 1.91 KB
Contents
= effective_form_with(model: [:admin, event], engine: true) do |f| = f.text_field :title, label: "Title" - categories = EffectiveEvents.categories - if categories.present? = f.select :category, categories, hint: 'optional category' = f.datetime_field :published_at, label: 'Publish date', hint: 'When should this be displayed on the website.' = f.check_box :draft, hint: 'Save this event as a draft. It will not be accessible on the website.' - if f.object.persisted? || f.object.errors.include?(:slug) - current_url = (effective_events.event_url(f.object) rescue nil) = f.text_field :slug, hint: "The slug controls this event's internet address. Be careful, changing the slug will break links that other websites may have to the old address.<br>#{('This event is currently reachable via ' + link_to(current_url.gsub(f.object.slug, '<strong>' + f.object.slug + '</strong>').html_safe, current_url)) if current_url }".html_safe = f.datetime_field :start_at, label: "Event Start" = f.datetime_field :end_at, label: "Event End" %h2 Registration Opens %p The online registration and purchase for this event will be available between: = f.datetime_field :registration_start_at, label: "Registration Start" = f.datetime_field :registration_end_at, label: "Registration End" = f.datetime_field :early_bird_end_at, label: "Early Bird End", hint: 'Event tickets can be purchased for early bird pricing before this date. Afterwards regular pricing applies.' = f.check_box :external_registration, label: "Yes, the registration for this event is handled by another website" = f.show_if(:external_registration, true) do = f.url_field :external_registration_url, hint: "The url for external event registration. Must start with http(s)://" = f.submit do = f.save 'Save' = f.save 'Save and View', class: 'btn btn-secondary' - if f.object.persisted? = f.save 'Duplicate', class: 'btn btn-info'
Version data entries
10 entries across 10 versions & 1 rubygems