app/views/annual_general_meetings/new.html.haml
- content_for(:head) do
= javascript_include_tag :general_meetings
%h2 Convene an Annual General Meeting
.section
= form_for(@annual_general_meeting) do |annual_general_meeting_form|
%h3 Date & Time of Meeting
%p= annual_general_meeting_form.label :happened_on, "Date of meeting"
%p.date_select= annual_general_meeting_form.date_select :happened_on, {}, :class => 'inline datepicker'
%p= annual_general_meeting_form.label :start_time_proxy, "Start time"
%p= annual_general_meeting_form.time_select(:start_time_proxy, {:minute_step => 15}, {:class => 'inline'})
%h3 Venue
%p= annual_general_meeting_form.text_area :venue
%h3 Agenda
%ol#agenda_items.agenda_items
= annual_general_meeting_form.fields_for(:agenda_items) do |agenda_item_fields|
= render(:partial => 'agenda_item', :locals => {:agenda_item_fields => agenda_item_fields})
%p
%a{:id => 'add_agenda_item', 'data-association' => 'agenda_items', 'data-container' => 'agenda_items', :href => '#'} Add
= new_child_fields_template(annual_general_meeting_form, :agenda_items)
%h3 Resolutions to be considered at the meeting:
.resolutions
= annual_general_meeting_form.fields_for :existing_resolutions, @draft_resolutions do |resolution_fields|
= content_tag_for(:p, resolution_fields.object) do
= resolution_fields.check_box :attached
= resolution_fields.label :attached, resolution_fields.object.title
%h3 Election of Directors
%p At this AGM, the following Directors will retire
%ul.directors
- @directors_retiring.each do |director|
= content_tag_for(:li, director) do
= director.name
%p
= annual_general_meeting_form.check_box :electronic_nominations
= annual_general_meeting_form.label :electronic_nominations, "Allow nominations of new Directors to be made electronically."
#nominations_closing_date_fields{:style => "display: none;"}
%p
= annual_general_meeting_form.label :nominations_closing_date, "Closing date for nominations"
%p.date_select
= annual_general_meeting_form.date_select :nominations_closing_date, {:include_blank => true}, :class => 'inline datepicker'
%p
= annual_general_meeting_form.check_box :electronic_voting
= annual_general_meeting_form.label :electronic_voting, "Allow voting on the nominees to be done electronically."
#voting_closing_date_fields{:style => "display: none;"}
%p
= annual_general_meeting_form.label :voting_closing_date, "Closing date for voting"
%p.date_select
= annual_general_meeting_form.date_select :voting_closing_date, {:include_blank => true}, :class => 'inline datepicker'
%p When you confirm these details, notice of the meeting will be sent to all Members.
%p
= annual_general_meeting_form.submit "Confirm and convene the meeting"