{% extends "base.html" %}

{% block title %}Edit Project{% endblock %}

{% block content %}
<form method="POST" enctype="multipart/form-data">
    <label>Title:</label>
    <input type="text" name="title" value="{{ projectpost.title }}" required>

    <label>Content:</label>
    <textarea name="content">{{ projectpost.content|replace('<br>', '\n') }}</textarea>

    <label>Category:</label>
    <input type="text" name="category" value="{{ projectpost.category }}">

    <label>Tags:</label>
    <input type="text" name="tags" value="{{ projectpost.tags }}">


    <label>Upload New Images:</label>
    <input type="file" name="images" multiple>

    <button type="submit">Save Changes</button>
</form>

{% endblock %}
