Commit 9e15704d authored by Ryan Herbert's avatar Ryan Herbert

prevent enter on whole form

parent 229c2dc3
Pipeline #19922 passed with stages
in 43 seconds
{{extend 'db_layout.html'}}
<form id="upload_form" action="DB_ADDRESS/file/submit" enctype="multipart/form-data" method="post">
<form id="upload_form" action="DB_ADDRESS/file/submit" enctype="multipart/form-data" method="post" onkeypress="return event.keyCode != 13;">
{{ if isEditing: }}
<h3>Add samples</h3>
......
......@@ -6,7 +6,7 @@
<h3>Add patients, runs, or sets</h3>
{{ pass }}
<form id="object_form" action="DB_ADDRESS/sample_set/submit" enctype="multipart/form-data" method="post">
<form id="object_form" action="DB_ADDRESS/sample_set/submit" enctype="multipart/form-data" method="post" onkeypress="return event.keyCode != 13;">
<div {{ if len(groups) <= 1: }} class="hiddenCheckBox" {{pass}}>
<label for="group_select" id="patient_group__label">Owner Group: </label>
{{= SELECT(*[OPTION(g['name'], _value=g['id']) for g in groups], _id="group_select", _name="group", _value=master_group, value=master_group) }}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment