added compose window
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<section id="task-composer" class="task-composer" aria-labelledby="task-composer-title">
|
||||
<div class="task-composer__heading">
|
||||
<h2 id="task-composer-title">Add a task</h2>
|
||||
<p>Capture it now; the details can wait.</p>
|
||||
</div>
|
||||
|
||||
{{ form_start(form, {
|
||||
action: path('app_task_new'),
|
||||
attr: {
|
||||
'class': 'task-composer__form',
|
||||
'hx-post': path('app_task_new'),
|
||||
'hx-target': '#task-composer',
|
||||
'hx-swap': 'outerHTML'
|
||||
}
|
||||
}) }}
|
||||
{{ form_errors(form) }}
|
||||
<div class="task-composer__main">
|
||||
{{ form_label(form.title) }}
|
||||
{{ form_widget(form.title, {attr: {autofocus: true}}) }}
|
||||
{{ form_errors(form.title) }}
|
||||
</div>
|
||||
<div class="task-composer__details">
|
||||
<div>{{ form_row(form.estimatedDurationMinutes) }}</div>
|
||||
<div>{{ form_row(form.priority) }}</div>
|
||||
<div>{{ form_row(form.category) }}</div>
|
||||
<div class="task-composer__checks">{{ form_row(form.isRecurring) }}{{ form_row(form.isActive) }}</div>
|
||||
</div>
|
||||
<details class="task-composer__notes">
|
||||
<summary>Add a note</summary>
|
||||
{{ form_row(form.description) }}
|
||||
</details>
|
||||
<div class="task-composer__actions">
|
||||
<button class="task-composer__submit" type="submit"><span class="material-symbols-outlined" aria-hidden="true">add</span>Add task</button>
|
||||
</div>
|
||||
{{ form_end(form) }}
|
||||
</section>
|
||||
Reference in New Issue
Block a user