37 lines
1.3 KiB
HTML
37 lines
1.3 KiB
HTML
<c-layouts.add>
|
|
<c-slot name="form_content">
|
|
<form method="post" enctype="multipart/form-data">
|
|
<table class="mx-auto">
|
|
{% csrf_token %}
|
|
{% for field in form %}
|
|
<tr>
|
|
<th>{{ field.label_tag }}</th>
|
|
{% if field.name == "note" %}
|
|
<td>{{ field }}</td>
|
|
{% else %}
|
|
<td>{{ field }}</td>
|
|
{% endif %}
|
|
{% if field.name == "timestamp_start" or field.name == "timestamp_end" %}
|
|
<td>
|
|
<div class="basic-button-container" hx-boost="false">
|
|
<button class="basic-button" data-target="{{ field.name }}" data-type="now">Set to now</button>
|
|
<button class="basic-button"
|
|
data-target="{{ field.name }}"
|
|
data-type="toggle">Toggle text</button>
|
|
<button class="basic-button" data-target="{{ field.name }}" data-type="copy">Copy</button>
|
|
</div>
|
|
</td>
|
|
{% endif %}
|
|
</tr>
|
|
{% endfor %}
|
|
<tr>
|
|
<td></td>
|
|
<td>
|
|
<input type="submit" value="Submit" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</c-slot>
|
|
</c-layouts.add>
|