Sha256: 588e7b8f4103318ac8d9192ad734941b55fe80204920f706b90b6810ce4983e2

Contents?: true

Size: 1.69 KB

Versions: 8

Compression:

Stored size: 1.69 KB

Contents

p Input a Study ID and Assessment Timestamps to allow users to take 6 and/or 12 Month Assessments.

= form_for assessments, url: admin_assessments_path do |form|
  fieldset.start-fields
    .select-fields
      .field.study-field
        = form.label :study_id_study, "Study"
        = form.select :study_id_study, form.object.study_options, {}, class: "study"

      .field.site-field
        = form.label :study_id_site, "Site"
        = form.text_field :study_id_site, class: "site", maxlength: 3, placeholder: "XXX"

      .field.id-field
        = form.label :study_id_id, "ID"
        = form.text_field :study_id_id, class: "id", maxlength: 4, placeholder: "####"
    .visit-fields
      - events.each.with_index do |event, index|
        .field
          = label_tag "study_engine_assessment_event_datetimes_#{event.underscore}", "#{event.titleize} Assessment Timestamp"
          = text_field_tag "study_engine_assessment[event_datetimes][]", form.object.event_datetimes[index], placeholder: "yyyy-mm-dd hh:mm", id: "study_engine_assessment_event_datetimes_#{event.parameterize.underscore}"

    label Method
    .method-fields
      .field
        label.method-label
          = form.radio_button :method_applied, "Paper form"
          .custom-symbol.paper-form
          span Paper form
      .field
        label.method-label
          = form.radio_button :method_applied, "By mail"
          .custom-symbol.by-mail
          span By mail
      .field
        label.method-label
          = form.radio_button :method_applied, "Missing"
          .custom-symbol.missing
          span Missing

    hr

    .actions
      input.save type="submit" value="Save Assessment"
      = link_to "Cancel", :back, class: "cancel"

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
study_engine-0.3.1 app/views/study_engine/admin/assessments/new.html.slim
study_engine-0.3.0 app/views/study_engine/admin/assessments/new.html.slim
study_engine-0.2.2 app/views/study_engine/admin/assessments/new.html.slim
study_engine-0.2.1 app/views/study_engine/admin/assessments/new.html.slim
study_engine-0.2.0 app/views/study_engine/admin/assessments/new.html.slim
study_engine-0.1.1 app/views/study_engine/admin/assessments/new.html.slim
study_engine-0.1.0 app/views/study_engine/admin/assessments/new.html.slim
study_engine-0.0.2 app/views/study_engine/admin/assessments/new.html.slim