Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #view.haml
- = render "shared/errors_block", object: @review_cycle
- = simple_form_for(@review_cycle) do |f|
- .basic-info
- .row.control-group
- = f.label :title, class: "control-label span3", required: false
- = f.text_field :title, class: "span5"
- .row.control-group
- = label_tag t('review_cycle.period'), t('review_cycle.period'), class: "control-label span3"
- %span.input-append.date
- = f.text_field :start_date, class: "datepicker span2 hasDatepicker"
- %span.add-on
- %i.icon-calendar
- %span.input-append.date
- = f.text_field :end_date, class: "datepicker span2 hasDatepicker"
- %span.add-on
- %i.icon-calendar
- .row.control-group
- = f.label :description, class: "control-label span3"
- = f.text_area :description, class: "span7", rows: 7
- .row.control-group
- %label.control-label.span3= t('review_cycle.viewable_answers')
- .controls
- %label.checkbox.span5
- %input{ name: "review_cycle[viewable_manager_answers]", type: :checkbox, :checked => @review_cycle.viewable_manager_answers }
- %span.metro-checkbox
- .questionnaire
- %h2= t('review_cycle.questionnaire')
- %p
- = t('review_cycle.questionnaire_info')
- .topics
- = f.fields_for :review_questions do |q_builder|
- = render "review_question_fields", :f => q_builder, i: 0
- .form-actions
- = link_to_add_association f, :review_questions, class: "btn btn-success" do
- %i.icon-add-topic
- = t('review_cycle.add_topic')
- .form-actions
- = link_to t('common.cancel'), review_cycles_path, class: "btn"
- = f.submit button_text, class: 'btn btn-primary'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement