help text and link for form labels #138 (#143)

* added help for timesheet duration form field - fixes #138
* added label option to link to manual chapter
* created docu chapter "timesheet" and added duration mode docu
* allow field and form option "documentation" to link to chapters in the documentation
This commit is contained in:
Kevin Papst
2018-06-21 18:25:11 +02:00
committed by GitHub
parent 8c686b0714
commit 3dc054b839
9 changed files with 101 additions and 6 deletions

View File

@@ -1,7 +1,13 @@
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">{{ title }}</h3>
<h3 class="box-title">
{{ title }}
{% if form.vars.documentation is defined and form.vars.documentation is not empty %}
<a href="{{ path('help_chapter', {'chapter': form.vars.documentation}) }}"><i class="fa fa-question-circle"></i></a>
{% endif %}
</h3>
</div>
{% form_theme form 'form/kimai-theme.html.twig' %}
{{ form_start(form) }}
<div class="box-body">
{{ form_widget(form) }}