mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00

* moved news.add to twig template * now twig templates will be loaded directly from template dir f.e. templates/kathrine/news.html.twig
26 lines
911 B
Twig
26 lines
911 B
Twig
<form method="post" action="{{ link }}">
|
|
{% if action == 'edit' %}
|
|
<input type="hidden" name="id" value="{{ id }}" />
|
|
{% endif %}
|
|
<table width="100%" border="0" cellspacing="1" cellpadding="4">
|
|
<tr>
|
|
<td bgcolor="{{ vdarkborder }}" class="white"><b>{% if action == 'edit' %}Edit{% else %}Add{% endif %} command</b></td>
|
|
</tr>
|
|
<tr>
|
|
<td bgcolor="{{ darkborder }}">
|
|
<table border="0" cellpadding="1">
|
|
<tr>
|
|
<td>Words:</td>
|
|
<td><input name="words" value="{% if words is not null %}{{ words }}{% endif %}" size="29" maxlength="29"/></td>
|
|
<tr>
|
|
<td>Description:</td>
|
|
<td><textarea name="description" maxlength="300" cols="50" rows="5">{% if description is not null %}{{ description }}{% endif %}</textarea></td>
|
|
<tr/>
|
|
<tr>
|
|
<td colspan="2" align="center"><input type="submit" value="Submit"/>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form> |