.
This commit is contained in:
@@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
function add_differential_input_form() {
|
function add_differential_input_form() {
|
||||||
var form_idx = $('#id_Case_casedifferential-TOTAL_FORMS').val();
|
var form_idx = $('#id_Case_casedifferential-TOTAL_FORMS').val();
|
||||||
$('#case_differential_formset').append($('#empty_form').html().replace(/__prefix__/g, form_idx));
|
$('#casedifferential_formset').append($('#empty_form').html().replace(/__prefix__/g, form_idx));
|
||||||
$('#id_Case_casedifferential-TOTAL_FORMS').val(parseInt(form_idx) + 1);
|
$('#id_Case_casedifferential-TOTAL_FORMS').val(parseInt(form_idx) + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -73,16 +73,16 @@ Use this form to create a atlas case. Existing associated image sets can be adde
|
|||||||
<h3>Differenetial:</h3>
|
<h3>Differenetial:</h3>
|
||||||
Add differential here.
|
Add differential here.
|
||||||
<input type="button" value="Add More Series" id="add_more_differential">
|
<input type="button" value="Add More Series" id="add_more_differential">
|
||||||
<div id="case_differential_formset">
|
<div id="casedifferential_formset">
|
||||||
{% for form in case_differential_formset %}
|
{% for form in casedifferential_formset %}
|
||||||
<ul class="no-error case_differential_formset">
|
<ul class="no-error casedifferential_formset">
|
||||||
{{form.non_field_errors}}
|
{{form.non_field_errors}}
|
||||||
{{form.errors}}
|
{{form.errors}}
|
||||||
{{ form.as_ul }}
|
{{ form.as_ul }}
|
||||||
</ul>
|
</ul>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{{ case_differential_formset.management_form }}
|
{{ casedifferential_formset.management_form }}
|
||||||
<input type="submit" class="submit-button" value="Submit" name="submit">
|
<input type="submit" class="submit-button" value="Submit" name="submit">
|
||||||
</form>
|
</form>
|
||||||
<div id="empty_form" style="display:none">
|
<div id="empty_form" style="display:none">
|
||||||
@@ -91,8 +91,8 @@ Use this form to create a atlas case. Existing associated image sets can be adde
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div id="empty_form" style="display:none">
|
<div id="empty_form" style="display:none">
|
||||||
<ul class='no_error case_differential_formset'>
|
<ul class='no_error casedifferential_formset'>
|
||||||
{{ case_differential_formset.empty_form.as_ul }}
|
{{ casedifferential_formset.empty_form.as_ul }}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
Reference in New Issue
Block a user