Sha256: f24faf66ca2364628e0d49347fed4f684dc462844c85a8a1093c698af097aeb4

Contents?: true

Size: 1.63 KB

Versions: 3

Compression:

Stored size: 1.63 KB

Contents

- include_stylesheet "admin/event_calendar"
- include_javascript "admin/event_calendar"
- if defined? TinyMceFilter
  - include_javascript "tiny_mce/tiny_mce"
  - include_javascript "tiny_mce/tiny_mce_settings"
  - include_javascript "tiny_mce/application"

- or_choose ||= false
- event_venue ||= EventVenue.new

.title
  %p.venue_title
    = f.label :title, "Venue or location title"
    = f.text_field :title, :class => 'textbox'
    - if or_choose && @venues.any?
      = link_to "choose an existing place", '#', :class => 'swapper', :rel => 'toggle[venue,new_venue]'

%p.note
  - if or_choose && @venues.any?
    If you've used this place before, please 
    = link_to "choose it from the list", '#', :class => 'swapper', :rel => 'toggle[venue,new_venue]'
    so that you can update it globally
  - else
    Next time you add an event you'll be able to choose this venue from a list

%p.url
  = f.label :url, "Venue website"
  = f.text_field :url, :class => 'textbox'

%p.venue_location
  = f.label :address, "Address or location"
  = f.text_area :address, :class => 'textarea'

%p.venue_postcode
  = f.label :postcode, "Postcode or grid reference"
  = f.text_field :postcode, :class => 'textbox place'
  %span.note
    This is only required if your address is unusual or you want these events to show on a map in a particular place.

%p.venue_description
  - if defined? TinyMceFilter
    = link_to image('mce', :alt=> 'toolbar icon'), '#', :class => 'toggleMCE', :rel => "toggle[event_venue_#{event_venue.id}_description]"
  = f.label :description, "Description"
  = f.text_area :description, :class => 'textarea', :id => "event_venue_#{event_venue.id}_description"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
radiant-event_calendar-extension-1.0.2 app/views/admin/event_venues/_form.html.haml
radiant-event_calendar-extension-1.0.1 app/views/admin/event_venues/_form.html.haml
radiant-event_calendar-extension-1.0.0 app/views/admin/event_venues/_form.html.haml