duration field in timesheet edit dialog (#1180)

This commit is contained in:
Kevin Papst
2019-10-24 23:46:22 +02:00
committed by GitHub
parent b0f83291ee
commit 1114538f41
11 changed files with 259 additions and 25 deletions

View File

@@ -18,4 +18,17 @@
{{ block('form_widget_simple') }}
</div>
{% endblock daterange_widget %}
{% endblock daterange_widget %}
{% block datetime_widget -%}
{%- if widget == 'single_text' -%}
<div class="input-group">
<div class="input-group-addon">
<a href="#" onclick="$('#{{ id }}').val(moment().format('{{ attr['data-format'] }}')).trigger('change')"><i class="fa fa-calendar-alt"></i></a>
</div>
{{ block('form_widget_simple') }}
</div>
{%- else -%}
{{ block('form_widget_simple') }}
{%- endif -%}
{%- endblock datetime_widget %}