Skip to content
Snippets Groups Projects

appointment can be removed, but only when not atached to visit and with SCHEDULED status

Merged Piotr Gawron requested to merge 150-possibility-to-remove-appointment into master
4 files
+ 41
5
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -89,18 +89,26 @@
</fieldset>
{% endif %}
<div class="box-footer">
<div class="col-sm-4">
<div class="col-sm-3">
<button type="submit" class="btn btn-block btn-success">Save</button>
</div>
<div class="col-sm-4">
<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-4">
<div class="col-sm-3">
<a href="{% url 'web.views.appointments' %}" class="btn btn-block btn-default"
onclick="history.back()">Cancel</a>
</div>
{% if not appointment.visit %}
{% ifequal appointment.status "SCHEDULED" %}
<div class="col-sm-3">
<a href="{% url 'web.views.appointment_delete' appointment.id %}"
class="btn btn-block btn-danger">Delete</a>
</div>
{% endifequal %}
{% endif %}
</div><!-- /.box-footer -->
</form>
</div>
@@ -111,8 +119,6 @@
{% endblock %}
{% endblock maincontent %}
{% block scripts %}
Loading