12 lines
459 B
Twig
12 lines
459 B
Twig
|
{% if entry.isRunning %}
|
||
|
<form action="{{ path('stopRunningEntry') }}" method="POST">
|
||
|
<input name="title" type="input" value="{{ entry.title }}">
|
||
|
<button type="submit">Stop</button>
|
||
|
</form>
|
||
|
{% else %}
|
||
|
<form action="{{ path('startNewEntry') }}" method="POST">
|
||
|
<input name="title" type="input" placeholder="Start new with title" value="{{ entry.title }}">
|
||
|
<button type="submit">Start</button>
|
||
|
</form>
|
||
|
{% endif %}
|