#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