Sha256: e8885363bf90013b8a07bcaac25179c43c6c33c25cf710a1c6165b6abe87176a

Contents?: true

Size: 1.42 KB

Versions: 69

Compression:

Stored size: 1.42 KB

Contents

ruby:
  url = if participant.new_record?
          research_study_participants_path(participant.study)
        else
          research_study_participant_path(participant.study, participant)
        end
.modal
  .modal__header
    h2= participant.persisted? ? "Edit Patient" : "Add Patient"
    = render "renalware/shared/modal_close_link"

  .modal__body
    = render "renalware/shared/errors", model: participant

    = simple_form_for(participant,
                      url: url,
                      remote: true,
                      html: { autocomplete: "off" },
                      wrapper: :horizontal_form) do |f|
      - if participant.persisted?
        h5= participant.patient.to_s(:long)
      - else
        = f.input :participant_id,
                      collection: [],
                      input_html: { \
                        class: "patient-id-select2 patient-ajax-search",
                        data: { "ajax--url" => search_patients_path(format: :json),
                                placeholder: "Search by patient name or hospital/NHS no." } \
                      }

      = f.input :joined_on, as: :date_picker
      = f.input :left_on, as: :date_picker

      = f.submit "Add", class: :button
      span= " or "
      = link_to "Cancel",
               "#",
               "aria-label" => "Close",
                class: "reveal-modal-close"

  .modal__footer

javascript:
  $(document).ready(Renalware.Research.init);

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
renalware-core-2.0.22 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.21 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.20 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.18 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.17 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.16 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.15 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.14 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.13 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.12 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.11 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.9 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.8 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.7 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.5 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.4 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.3 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.2 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.1 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.0 app/views/renalware/research/study_participants/_form.html.slim