Skip to content

Commit

Permalink
making only draft protocols can be deleted for investigators , #330
Browse files Browse the repository at this point in the history
  • Loading branch information
moacirmoda committed Feb 7, 2017
1 parent 6a9abce commit 033c123
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@
<td>
<a href='{{ path("protocol_show_protocol", {protocol_id: protocol.id}) }}' class='btn btn-default btn-xs' data-toggle="tooltip" data-placement="top" title="{% trans %}See protocol{% endtrans %}"><i class='glyphicon glyphicon-eye-open'></i></a>
<a href='{{ path("submission_new_second_step", {submission_id: protocol.mainSubmission.id}) }}' class='btn btn-default btn-xs {% if protocol.status not in ["R","D"] %}disabled{% endif %}' data-toggle="tooltip" data-placement="top" title="{% trans %}Edit submission{% endtrans %}"><i class='glyphicon glyphicon-pencil'></i></a>
<span data-toggle="tooltip" data-placement="top" title="{% trans %}Delete this protocol.{% endtrans %}"><a href='{{ path("protocol_delete", {protocol_id: protocol.id} ) }}' class='btn btn-danger btn-xs' data-toggle='modal' data-target='#modalBaseAjax'><i class='glyphicon glyphicon-trash'></i></a></span>
{% if protocol.status in ['D', 'A'] %}
<span data-toggle="tooltip" data-placement="top" title="{% trans %}Delete this protocol.{% endtrans %}"><a href='{{ path("protocol_delete", {protocol_id: protocol.id} ) }}' class='btn btn-danger btn-xs' data-toggle='modal' data-target='#modalBaseAjax'><i class='glyphicon glyphicon-trash'></i></a></span>
{% endif %}
<span data-toggle="tooltip" data-placement="top" title="{% trans %}Add a monitoring action{% endtrans %}">
<a href='{{ path("protocol_new_monitoring", {protocol_id: protocol.id}) }}' data-toggle='modal' data-target="#modalBaseAjax" class='btn btn-primary btn-xs {% if protocol.status not in ["A"] %}disabled{% endif %}'><i class='glyphicon glyphicon-record'></i></a>
</span>
Expand Down

0 comments on commit 033c123

Please sign in to comment.