Skip to content
Snippets Groups Projects
Commit 70ef521f authored by Todd Dembrey's avatar Todd Dembrey
Browse files

allow anyone to edit from the frontend

parent 814e7237
No related branches found
No related tags found
No related merge requests found
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
<h6 class="heading heading--submission-meta"> <h6 class="heading heading--submission-meta">
<span>Submitted: <strong>{{ object.submit_time.date }} by {{ object.user.get_full_name }}</strong></span> <span>Submitted: <strong>{{ object.submit_time.date }} by {{ object.user.get_full_name }}</strong></span>
<span>Last edited: <strong>{{ object.last_edit.timestamp.date }} by {{ object.last_edit.user.get_full_name }}</strong></span> <span>Last edited: <strong>{{ object.last_edit.timestamp.date }} by {{ object.last_edit.user.get_full_name }}</strong></span>
{% if request.user|has_edit_perm:object and object.user == request.user %} {% if request.user|has_edit_perm:object %}
<a class="link link--edit-submission is-active" href="{% url 'funds:submissions:edit' object.id %}"> <a class="link link--edit-submission is-active" href="{% url 'funds:submissions:edit' object.id %}">
Edit Edit
<svg class="icon icon--pen"><use xlink:href="#pen"></use></svg> <svg class="icon icon--pen"><use xlink:href="#pen"></use></svg>
......
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