Sha256: baf2d25e3485cd28b7aa3bec2853c1c65d8635fb2d42d4d46f77d0a2503f4a1e
Contents?: true
Size: 1.42 KB
Versions: 1
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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
renalware-core-2.0.0.pre.beta12 | app/views/renalware/research/study_participants/_form.html.slim |