forked from enviPath/enviPy
Fixes #97 Co-authored-by: Tim Lorsbach <tim@lorsba.ch> Reviewed-on: enviPath/enviPy#177
55 lines
2.5 KiB
HTML
55 lines
2.5 KiB
HTML
{% load static %}
|
|
<!-- Identify Missing Rules -->
|
|
<div id="identify_missing_rules_modal" class="modal" tabindex="-1">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h3 class="modal-title">Identify Missing Rules</h3>
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
</div>
|
|
<div class="modal-body">
|
|
By clicking on Download we'll search the Pathway for Reactions that are not backed by
|
|
a Rule or which can be assembled by chaining two rules.
|
|
<form id="identify-missing-rules-modal-form" accept-charset="UTF-8" action="{{ pathway.url }}"
|
|
data-remote="true" method="GET">
|
|
<label for="rule-package">Select the Rule Package</label>
|
|
<select id="rule-package" name="rule-package" data-actions-box='true' class="form-control"
|
|
data-width='100%'>
|
|
<option disabled>Reviewed Packages</option>
|
|
{% for obj in meta.readable_packages %}
|
|
{% if obj.reviewed %}
|
|
<option value="{{ obj.url }}">{{ obj.name }}</option>
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
<option disabled>Unreviewed Packages</option>
|
|
{% for obj in meta.readable_packages %}
|
|
{% if not obj.reviewed %}
|
|
<option value="{{ obj.url }}">{{ obj.name }}</option>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</select>
|
|
<input type="hidden" name="identify-missing-rules" value="true"/>
|
|
</form>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
|
<button type="button" class="btn btn-primary" id="identify-missing-rules-modal-submit">Download</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
$(function () {
|
|
|
|
$('#identify-missing-rules-modal-submit').click(function (e) {
|
|
e.preventDefault();
|
|
$('#identify-missing-rules-modal-form').submit();
|
|
$('#identify_missing_rules_modal').modal('hide');
|
|
});
|
|
|
|
})
|
|
</script>
|