Sha256: 4678e68ef4cd75dcdd30e1d4d2e4e6eca8824458e718d2c1c194512b51d1360b
Contents?: true
Size: 1.39 KB
Versions: 25
Compression:
Stored size: 1.39 KB
Contents
= effective_form_with(model: [:admin, event], engine: true) do |f| = f.text_field :title, label: "Title" = 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.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
25 entries across 25 versions & 1 rubygems