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.43 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.42 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.41 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.40 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.39 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.38 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.37 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.36 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.35 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.34 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.33 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.32 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.31 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.30 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.28 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.27 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.26 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.25 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.24 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.23 app/views/renalware/research/study_participants/_form.html.slim