Sha256: 6dcd775387f0e3e8b9ac4f65c1188d96f92d2e1340850efaf35e064da2f4ef88
Contents?: true
Size: 1.84 KB
Versions: 3
Compression:
Stored size: 1.84 KB
Contents
#calendar_form.form-area = render_region :form_top = error_messages_for :calendar - render_region :form do |form| - form.edit_name do .title %p.calendar_title = f.label :name = f.text_field :name, :class => "textbox" %p.calendar_category = f.label :category = f.text_field :category, :class => "textbox" %p.calendar_slug = f.label :slug = f.text_field :slug, :class => "textbox" %p.note The category and slug are used create a url in the form /[calendar page]/category/slug showing only the events of this calendar. .description %p.description = f.label :description, "Description" = f.text_area 'description', :size => '40x6', :class => "textarea" - @calendar.build_ical unless @calendar.ical - form.edit_ical do - f.fields_for :ical do |ical_f| .ical %p.url = ical_f.label :url, "Subscription url (optional)" = ical_f.text_field :url, :class => "textbox" = ical_f.check_box :refresh_interval = ical_f.label :refresh_interval, 'Refresh automatically?', :class => 'minor' %p.username = ical_f.label :username = ical_f.text_field :username, :class => "textbox" %p.password = ical_f.label :password = ical_f.text_field :password, :class => "textbox" %p.note The url should be a complete http(s) address that works in your browser. - render_region :form_bottom do |form_bottom| - form_bottom.edit_timestamp do = updated_stamp @calendar - form_bottom.edit_buttons do %p.buttons = save_model_button @calendar = save_model_and_continue_editing_button @calendar or = link_to "Cancel", admin_calendars_url
Version data entries
3 entries across 3 versions & 1 rubygems