Commit 6187623c authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

file/form.html, sample_set/form.html: isEditing

parent 7153b710
Pipeline #19907 passed with stages
in 41 seconds
{{extend 'db_layout.html'}} {{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">
<h3>Add sample(s)</h3> {{ if isEditing: }}
<h3>Add samples</h3>
{{ else: }}
<h3>Edit sample</h3>
{{ pass }}
{{ if source_module_active: }} {{ if source_module_active: }}
<span>file source: </span> <span>file source: </span>
...@@ -66,7 +70,9 @@ ...@@ -66,7 +70,9 @@
</div> </div>
</div> </div>
<div class="clear"></div> <div class="clear"></div>
{{ if isEditing: }}
{{ else: }}
<div> <div>
<h3>Sample list</h3> <h3>Sample list</h3>
</div> </div>
...@@ -78,6 +84,7 @@ ...@@ -78,6 +84,7 @@
data-index="{{=len(files)}}">add other sample</span> data-index="{{=len(files)}}">add other sample</span>
to add at once more than one sample. to add at once more than one sample.
</div> </div>
{{ pass }}
<div class="clear"></div> <div class="clear"></div>
<div id="fieldset_container"> <div id="fieldset_container">
{{ for i, file in enumerate(files): }} {{ for i, file in enumerate(files): }}
......
{{extend 'db_layout.html'}} {{extend 'db_layout.html'}}
{{ if isEditing: }}
<h3>Edit patient, run, or set</h3>
{{ else: }}
<h3>Add patients, runs, or sets</h3> <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">
<div {{ if len(groups) <= 1: }} class="hiddenCheckBox" {{pass}}> <div {{ if len(groups) <= 1: }} class="hiddenCheckBox" {{pass}}>
<label for="group_select" id="patient_group__label">Owner Group: </label> <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) }} {{= SELECT(*[OPTION(g['name'], _value=g['id']) for g in groups], _id="group_select", _name="group", _value=master_group, value=master_group) }}
</div> </div>
{{ if isEditing: }}
{{ else: }}
<div class="buttons_add_elements"> <div class="buttons_add_elements">
Patients, runs and sets are different ways to group samples. Patients, runs and sets are different ways to group samples.
You can create at once several of these sets: You can create at once several of these sets:
...@@ -23,6 +30,7 @@ ...@@ -23,6 +30,7 @@
data-index="{{=len(sets[defs.SET_TYPE_GENERIC])}}">add set</span> data-index="{{=len(sets[defs.SET_TYPE_GENERIC])}}">add set</span>
<div class="clear"></div> <div class="clear"></div>
</div> </div>
{{ pass }}
<div id="fieldset_container"> <div id="fieldset_container">
{{ for set_type in sets: }} {{ for set_type in sets: }}
{{ for i, set in enumerate(sets[set_type]): }} {{ for i, set in enumerate(sets[set_type]): }}
......
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