- @calendar.build_ical unless @calendar.ical #calendar_form.form-area = render_region :form_top = error_messages_for :calendar .main - render_region :form do |form| - form.edit_name do .title %p.title = f.label :name = f.text_field :name, :class => "textbox" - form.edit_ical do - f.fields_for :ical do |ical_f| %p.url = ical_f.label :url, "Subscription url (optional)" = ical_f.text_field :url, :class => "textbox" .drawer .drawer_contents#subscription %div.username = ical_f.label :username, 'Username', :class => 'minor' = ical_f.text_field :username, :class => "textbox" %div.password = ical_f.label :password, 'Password', :class => 'minor' = ical_f.text_field :password, :class => "textbox" %div.refreshment = ical_f.check_box :refresh_interval = ical_f.label :refresh_interval, 'Refresh automatically?', :class => 'minor' .drawer_handle %a.toggle{:href=>'#subscription', :rel=>"toggle[subscription]", :class=>"more"} more - form.edit_filing do .filing %p.calendar_category = f.label :category = f.text_field :category, :class => "textbox" %p.calendar_slug = f.label :slug = f.text_field :slug, :class => "textbox" - form.edit_description do .description %p.description = f.label :description, "Description" = f.text_area 'description', :size => '40x6', :class => "textarea" - render_region :form_bottom do |form_bottom| - form_bottom.edit_metadata do .metadata %p.keywords = f.label :keywords = f.text_field :keywords, :class => "textbox" - 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