33 lines
1.3 KiB
Twig
33 lines
1.3 KiB
Twig
{% extends '@novaconium/master.html.twig' %}
|
|
|
|
{% block content %}
|
|
<h2>Edit Page - {{ title }}</h2>
|
|
|
|
<form method="post" action="/novaconium/savePage">
|
|
<input type="hidden" name="id" value="{{ rows.id }}">
|
|
<input type="hidden" name="token" value="{{ token }}">
|
|
|
|
<label for="title">Title:</label>
|
|
<input type="text" id="title" name="title" value="{{ rows.title }}" required>
|
|
|
|
<label for="slug">Slug: (<a href="/page/{{ rows.slug }}" target="_new">/page/{{ rows.slug }}</a>)</label>
|
|
<input type="text" id="slug" name="slug" value="{{ rows.slug }}" required>
|
|
|
|
<label for="body">Body:</label>
|
|
<textarea id="body" name="body" rows="10" required>{{ rows.body }}</textarea>
|
|
|
|
<label for="intro">Intro:</label>
|
|
<textarea id="intro" name="intro" rows="10" required>{{ rows.intro }}</textarea>
|
|
|
|
<label for="draft">
|
|
<input type="checkbox" id="draft" name="draft" value="1" {% if rows.draft %}checked{% endif %}>
|
|
Save as Draft
|
|
</label>
|
|
|
|
<p><strong>Created:</strong> {{ rows.created|date("Y-m-d H:i:s") }}</p>
|
|
<p><strong>Last Updated:</strong> {{ rows.updated|date("Y-m-d H:i:s") }}</p>
|
|
|
|
<button type="submit">Save Changes</button>
|
|
</form>
|
|
{% endblock %}
|