{% load custom_tags_and_filters %}
<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-label="Modal close button">&times;</button>
    <h4 id="modal-description-label" class="modal-title">Would you like to end your staff charge?</h4>
</div>
<div class="modal-body">
    {% with user.get_staff_charge as staff_charge %}
        You are charging staff time to {{ staff_charge.customer }} for the project named
        {{ staff_charge.project }} since {{ staff_charge.start }}.
        Now that you have finished using the {{ tool.name_or_child_in_use_name }} on this person's behalf, would you
        also like to stop charging staff time to this user?
    {% endwith %}
</div>
<div class="modal-footer">
    {% button type="save" submit=False dismiss="modal" value="Continue charging staff time" icon="glyphicon-time" %}
    {% button type="delete" submit=False dismiss="modal" value="Stop charging staff time" icon="glyphicon-stop" onclick="$('#dialog').one('hidden.bs.modal', end_staff_charge);" %}
</div>
