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