Remove Edit and Cancel buttons from review templates for cleaner UI

This commit is contained in:
Ross
2025-10-22 21:56:11 +01:00
parent 9efec6b79b
commit e819645278
3 changed files with 32 additions and 17 deletions
@@ -8,8 +8,5 @@
<div class="text-muted small ms-2">by {{ review.get_author_str }} on {{ review.created_on }}</div>
</div>
</div>
<div>
<button class="btn btn-sm btn-outline-secondary" hx-get="{% url app_name|add:':question_set_review' question.pk %}?edit=1" hx-target="#question-review-block" hx-swap="innerHTML">Edit</button>
</div>
</div>
</div>
@@ -15,6 +15,5 @@
<input type="text" name="comment" class="form-control form-control-sm" placeholder="Comment (optional)" value="{% if latest %}{{ latest.comment }}{% endif %}">
<div>
<button class="btn btn-sm btn-primary" type="submit">Save</button>
<button class="btn btn-sm btn-outline-secondary" type="button" hx-get="{{ request.path }}" hx-target="#question-review-block" hx-swap="innerHTML">Cancel</button>
</div>
</form>