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.67 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.64 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.63 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.62 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.61 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.60 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.58 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.57 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.56 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.55 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.54 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.53 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.52 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.51 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.50 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.48 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.47 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.46 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.45 app/views/renalware/research/study_participants/_form.html.slim
renalware-core-2.0.44 app/views/renalware/research/study_participants/_form.html.slim