Made pages edit better and added messages
This commit is contained in:
30
views/editmessage.html.twig
Normal file
30
views/editmessage.html.twig
Normal file
@@ -0,0 +1,30 @@
|
||||
{% extends '@novaconium/master.html.twig' %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Edit Message - {{ title }}</h2>
|
||||
|
||||
<p><a href="/novaconium/messages/delete/{{ themessage.id }}">Delete</a></p>
|
||||
|
||||
<form method="post" action="/novaconium/message_save">
|
||||
<input type="hidden" name="id" value="{{ themessage.id }}">
|
||||
<input type="hidden" name="token" value="{{ token }}">
|
||||
|
||||
<label for="name">Name:</label>
|
||||
<input type="text" id="name" name="name" value="{{ themessage.name }}" required>
|
||||
|
||||
<label for="email">Email:</label>
|
||||
<input type="email" id="email" name="email" value="{{ themessage.email }}" required>
|
||||
|
||||
<label for="message">Message:</label>
|
||||
<textarea id="message" name="message" rows="10" required>{{ themessage.message }}</textarea>
|
||||
|
||||
<label for="unread">
|
||||
<input type="checkbox" id="unread" name="unread" value="1" {% if themessage.unread %}checked{% endif %}>
|
||||
Unread
|
||||
</label>
|
||||
|
||||
<p><strong>Created:</strong> {{ themessage.created|date("Y-m-d H:i:s") }}</p>
|
||||
|
||||
<button type="submit">Save Changes</button>
|
||||
</form>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user