feat: add description field for pet pictures

This commit is contained in:
Ryan Chen
2025-06-13 17:07:22 -04:00
parent dd9cc42271
commit 7c62dc8d08
3 changed files with 20 additions and 2 deletions

View File

@@ -31,6 +31,9 @@ endblock %} {% block content %}
<h3 class="text-lg font-semibold text-gray-800">
From: {{ picture.subscriber_name }}
</h3>
{% if picture.description %}
<p class="mt-2 text-gray-600">{{ picture.description }}</p>
{% endif %}
<p class="text-sm text-gray-600">Uploaded: {{ picture.uploaded_at }}</p>
<div class="mt-4 space-y-2">
<a

View File

@@ -25,6 +25,19 @@ Queue{% endblock %} {% block content %}
/>
</div>
<div>
<label for="description" class="block text-sm font-medium text-gray-700"
>Description (Optional)</label
>
<textarea
name="description"
id="description"
rows="3"
class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500"
placeholder="Add a description for the pet picture..."
></textarea>
</div>
<div>
<label for="picture" class="block text-sm font-medium text-gray-700"
>Pet Picture</label