Skip to content

Commit 1bb0ebb

Browse files
authored
Merge pull request #243 from luftdaten-at/225-add-edit-button-to-workshop-detail-if-logged-in
225 add edit button to workshop detail if logged in
2 parents 78215fa + e203661 commit 1bb0ebb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/templates/workshops/detail.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ <h5 class="card-title">{% trans "Air quality" %}</h5>
5252
<h2>{{ workshop.title }}</h2>
5353
<span>
5454
{% if is_owner %}
55+
<a href="{% url 'workshop-update' workshop.pk %}" class="btn btn-outline-primary">{% trans "Edit" %}</a>
5556
<a href="{% url 'workshop-management' workshop.pk %}" class="btn btn-outline-primary">{% trans "Manage" %}</a>
5657
<a href="{% url 'workshop-image-upload' workshop.pk %}" class="btn btn-outline-primary">{% trans "Upload Images" %}</a>
5758
{% endif %}

app/templates/workshops/management.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div class="container mt-5 flex-grow-1">
77
<div class="row">
88
<div class="col-12">
9-
<h2>{{ workshop.name }}</h2>
9+
<h2>{{ workshop.title }}</h2>
1010
<p><strong>{% trans "Description:" %}</strong> {{ workshop.description }}</p>
1111
</div>
1212
</div>

0 commit comments

Comments
 (0)