-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
212 additions
and
361 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,25 @@ | ||
{% trans_default_domain 'forms' %} | ||
{{ form_start(form) }} | ||
<div> | ||
<div> | ||
<div> | ||
{{ form_label(form.title) }} | ||
{{ form_widget(form.title) }} | ||
</div> | ||
<div> | ||
{{ form_label(form.version) }} | ||
{{ form_widget(form.version) }} | ||
</div> | ||
<div> | ||
{{ form_label(form.description) }} | ||
{{ form_widget(form.description) }} | ||
</div> | ||
<div> | ||
<div> | ||
<div> | ||
{{ form_label(form.products) }} | ||
{{ form_widget(form.products) }} | ||
</div> | ||
</div> | ||
<div> | ||
<div> | ||
{{ form_label(form.departments) }} | ||
{{ form_widget(form.departments) }} | ||
</div> | ||
</div> | ||
</div> | ||
<div> | ||
{{ form_label(form.status) }} | ||
{{ form_widget(form.status) }} | ||
</div> | ||
|
||
</div> | ||
|
||
<div> | ||
<div> | ||
{{ form_label(form.uploadFile) }} | ||
{{ form_widget(form.uploadFile) }} | ||
</div> | ||
{% if daten.upload %} | ||
<a href="{{ path('forms_download_file', {'id':daten.id}) }}" download>{{ daten.title }} | ||
{% trans %}download{% endtrans %}</a> | ||
{% endif %} | ||
</div> | ||
</div> | ||
|
||
|
||
{{ form_label(form.save) }} | ||
{% if not activ or daten.approved %} | ||
{{ form_widget(form.save, { 'disabled':'disabled' }) }} | ||
{% else %} | ||
{{ form_widget(form.save) }} | ||
{% set disabled = not activ or daten.approved %} | ||
{{ form_start(form, {'attr': {'disabled': disabled }}) }} | ||
<fieldset> | ||
{{ form_row(form.title) }} | ||
{{ form_row(form.version) }} | ||
{{ form_row(form.description) }} | ||
</fieldset> | ||
<fieldset> | ||
{{ form_row(form.products) }} | ||
{{ form_row(form.departments) }} | ||
{{ form_row(form.status) }} | ||
</fieldset> | ||
<fieldset> | ||
{{ form_label(form.uploadFile) }} | ||
{{ form_widget(form.uploadFile) }} | ||
{% if daten.upload %} | ||
<a href="{{ path('forms_download_file', {'id':daten.id}) }}"> | ||
{% trans %}download{% endtrans %} | ||
</a> | ||
{% endif %} | ||
|
||
{{ form_end(form) }} | ||
</fieldset> | ||
{{ form_row(form.save, { row_attr: {class: 'form-buttons'}, attr: {'disabled': disabled} }) }} | ||
{{ form_rest(form) }} | ||
{{ form_end(form) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
{% trans_default_domain 'forms' %} | ||
<a href="{{ path('forms_edit',{'id':p.id}) }}">id: {{ p.id }} -- {{ p.createdAt|date('d.m.Y H:i') }} | ||
-- {{ p.user.email }} -- {% trans %}version{% endtrans %}: {{ p.version }} {{ p.approved?'approved' | trans }}</a> | ||
<li> | ||
<a href="{{ path('forms_edit',{'id':p.id}) }}">id: {{ p.id }} -- {{ p.createdAt|date('d.m.Y H:i') }} | ||
-- {{ p.user.email }} -- {% trans %}version{% endtrans %}: {{ p.version }} {{ p.approved?'approved' | trans }}</a> | ||
</li> | ||
{% if p.previous %} | ||
{{ include('forms/__history.html.twig', {'p':p.previous}) }} | ||
{% endif %} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,25 @@ | ||
{% extends 'base.html.twig' %} | ||
{% trans_default_domain 'forms' %} | ||
|
||
{% block title %} | ||
{{ title }} | ||
{% endblock %} | ||
|
||
{% block CTA %} | ||
{{ include('base/__approveBtn.html.twig',{'data':daten,'dataLink':'forms_approve'}) }} | ||
{{ include('base/__disableBtn.html.twig',{'data':daten,'dataLink':'forms_disable'}) }} | ||
{{ include('base/__approvedBy.html.twig', {'data':daten}) }} | ||
{{ include('assign/__assign.html.twig',{'data':daten,'path':'assign_form'}) }} | ||
{% endblock %} | ||
|
||
{% block body %} | ||
<div> | ||
<div> | ||
<h2>{{ title }}</h2> | ||
{{ include('base/__approvedBy.html.twig', {'data':daten}) }} | ||
</div> | ||
<div> | ||
{{ include('assign/__assign.html.twig',{'data':daten,'path':'assign_form'}) }} | ||
</div> | ||
</div> | ||
|
||
<div> | ||
{{ include('forms/__form.html.twig') }} | ||
</div> | ||
<p>{% trans from 'general' %}createdBy{% endtrans %}: {{ daten.user.email }}</p> | ||
{{ include('forms/__form.html.twig') }} | ||
<p class="created-by">{% trans from 'general' %}createdBy{% endtrans %}: {{ daten.user.email }}</p> | ||
{% if daten.previous %} | ||
<div> | ||
<h2>{% trans from 'general' %}history{% endtrans %}</h2> | ||
<h3 class="mt-10">{% trans from 'general' %}history{% endtrans %}</h3> | ||
<ol class="item-history" reversed> | ||
{{ include('forms/__history.html.twig', {'p':daten.previous}) }} | ||
</div> | ||
</ol> | ||
{% endif %} | ||
{{ include('base/__snack.html.twig') }} | ||
{% endblock %} | ||
|
||
{% block javascript %} | ||
{% endblock %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,10 @@ | ||
{% extends 'base.html.twig' %} | ||
{% trans_default_domain 'forms' %} | ||
{% block CTA %} | ||
{% endblock %} | ||
|
||
{% block body %} | ||
|
||
<h2>{{ title }}</h2> | ||
<div> | ||
{{ include('forms/__form.html.twig') }} | ||
</div> | ||
<p>{% trans from 'general' %}createdBy{% endtrans %}: {{ daten.user.email }}</p> | ||
{% if daten.previous %} | ||
<div> | ||
<h2>{% trans from 'general' %}history{% endtrans %}</h2> | ||
{{ include('forms/__history.html.twig', {'p':daten.previous}) }} | ||
</div> | ||
{% endif %} | ||
{% block title %} | ||
{{ title }} | ||
{% endblock %} | ||
|
||
{% block javascript %} | ||
{% endblock %} | ||
{% block body %} | ||
{{ include('forms/__form.html.twig') }} | ||
{% endblock %} |
Oops, something went wrong.