Initial
This commit is contained in:
7
app/base/templates/forms/widgets/date.html
Executable file
7
app/base/templates/forms/widgets/date.html
Executable file
@@ -0,0 +1,7 @@
|
||||
<div>
|
||||
{% include "django/forms/widgets/date.html" %}
|
||||
<button type="button" class="btn btn-outline-primary" onclick="dateTimeSetNow('{{ widget.attrs.id }}')" title="Aktuelles Datum setzen">Heute</button>
|
||||
{% if not widget.required %}
|
||||
<button type="button" class="btn btn-outline-secondary" onclick="dateTimeReset('{{ widget.attrs.id }}')" title="Datum zurücksetzen"><i class="far fa-trash-alt"></i></button>
|
||||
{% endif %}
|
||||
</div>
|
||||
8
app/base/templates/forms/widgets/datetime.html
Executable file
8
app/base/templates/forms/widgets/datetime.html
Executable file
@@ -0,0 +1,8 @@
|
||||
<div>
|
||||
<input type="date" id="{{ widget.attrs.id }}_day" name="{{ widget.name }}"{% if widget.value %} value="{{ widget.value|date:'Y-m-d' }}"{% endif %}>
|
||||
<input type="time" id="{{ widget.attrs.id }}_time" name="{{ widget.name }}"{% if widget.value %} value="{{ widget.value|date:'H:i' }}"{% endif %}>
|
||||
<button type="button" class="btn btn-outline-primary" onclick="dateTimeSetNow('{{ widget.attrs.id }}')" title="Aktuelles Datum setzen">Jetzt</button>
|
||||
{% if not widget.required %}
|
||||
<button type="button" class="btn btn-outline-secondary" onclick="dateTimeReset('{{ widget.attrs.id }}')" title="Datum zurücksetzen"><i class="far fa-trash-alt"></i></button>
|
||||
{% endif %}
|
||||
</div>
|
||||
3
app/base/templates/forms/widgets/textarea.html
Executable file
3
app/base/templates/forms/widgets/textarea.html
Executable file
@@ -0,0 +1,3 @@
|
||||
{% load utils %}
|
||||
<textarea name="{{ widget.name }}" rows="{{widget.value|count_lines|min:4|max:10}}"{% include "django/forms/widgets/attrs.html" %}>
|
||||
{% if widget.value %}{{ widget.value }}{% endif %}</textarea>
|
||||
Reference in New Issue
Block a user