first commit

This commit is contained in:
nahakubuilde
2025-06-21 23:21:18 +01:00
commit e3e775a693
9 changed files with 940 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
{% extends 'base.html' %}
{% block title %}Edit {{ title }} - Flask Blog{% endblock %}
{% block content %}
<form method="post">
<div class="mb-3">
<label for="content" class="form-label">Content</label>
<textarea id="content" name="content" class="form-control" rows="12">{{ content }}</textarea>
</div>
<button type="submit" class="btn btn-primary">Save</button>
<a href="{{ url_for('note', note_path=current_note) }}" class="btn btn-secondary">Cancel</a>
</form>
{% endblock %}
{% block scripts %}
<script src="https://cdn.jsdelivr.net/npm/easymde/dist/easymde.min.js"></script>
<script>
const easyMDE = new EasyMDE({
element: document.getElementById('content')
});
</script>
{% endblock %}