Skip to content
Snippets Groups Projects
Commit 93a03c12 authored by Carlos Vega's avatar Carlos Vega
Browse files

added buttons to delete subject and study subject

parent 95a1d87b
No related branches found
No related tags found
1 merge request!277Resolve "possibility to remove subject"
Pipeline #34408 passed
......@@ -61,9 +61,21 @@
{% endif %}
</div>
{% endfor %}
</div>
{% if "delete_subject" in permissions %}
<div class="col-md-9"></div>
<div class="col-md-2">
<a href="{% url 'web.views.subject_delete' study_subject.subject.id %}"
class="btn btn-block btn-danger">Delete Subject</a>
</div>
<div class="col-md-1"></div>
{% endif %}
</div><!-- /.box-body -->
<div class="box-footer">
</div>
<div class="box-header with-border">
<h3>Subject's study details</h3>
</div>
......@@ -84,11 +96,30 @@
{% endif %}
</div>
{% endfor %}
</div>
</div><!-- /.box-body -->
{% if "delete_studysubject" in permissions %}
<div class="box-footer">
<div class="col-sm-3">
<button type="submit" class="btn btn-block btn-success">Save</button>
</div>
<div class="col-sm-3">
<button id="save-and-continue" type="button" class="btn btn-block btn-success">Save and
Continue
</button>
</div>
<div class="col-sm-3">
<a href="{% url 'web.views.subjects' %}" class="btn btn-block btn-default"
onclick="history.back()">Cancel</a>
</div>
<div class="col-md-3">
<a href="{% url 'web.views.study_subject_delete' study_subject.id %}"
class="btn btn-block btn-danger">Delete Study Subject</a>
</div>
</div><!-- /.box-footer -->
{% else %}
<div class="box-footer">
<div class="col-sm-4">
......@@ -103,7 +134,9 @@
<a href="{% url 'web.views.subjects' %}" class="btn btn-block btn-default"
onclick="history.back()">Cancel</a>
</div>
</div><!-- /.box-footer -->
{% endif %}
</form>
</div><!-- /.box -->
</div><!-- /.col-md-12 -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment