{# File: plugins/plant/templates/plant/edit.html #} {% extends 'core/base.html' %} {% block title %}Edit {{ plant.name }} – Nature In Pots{% endblock %} {% block content %}

Edit {{ plant.name }}

{# ——— Plant Edit Form ——— #}
{{ form.hidden_tag() }}
{{ form.plant_type.label(class="form-label") }} {{ form.plant_type(class="form-select") }}
{{ form.common_name.label(class="form-label") }} {{ form.common_name(class="form-select") }}
{{ form.scientific_name.label(class="form-label") }} {{ form.scientific_name(class="form-select") }}
{{ form.mother_uuid.label(class="form-label") }} {{ form.mother_uuid(class="form-select") }}
{{ form.custom_slug.label(class="form-label") }} {{ form.custom_slug(class="form-control") }}
{{ form.vendor_name.label(class="form-label") }} {{ form.vendor_name(class="form-control") }}
{{ form.price.label(class="form-label") }} {{ form.price(class="form-control") }}
{{ form.notes.label(class="form-label") }} {{ form.notes(class="form-control", rows=4) }}
{{ form.data_verified(class="form-check-input") }} {{ form.data_verified.label(class="form-check-label") }}
{{ form.is_active(class="form-check-input") }} {{ form.is_active.label(class="form-check-label") }}

{# ——— Upload New Image ——— #}

Upload Image


{# ——— Existing Images & Featured Toggle ——— #}

Existing Images

{% for m in plant.media_items %}
Plant Image
{# — featured toggle — #}
{# — rotate button — #} {# — delete checkbox — #}
{% endfor %}
{# use JS-onclick to guarantee confirmation and submission #}
{% endblock %}