-
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.
Style some edit pages (audit_tom, tom)
- Loading branch information
Showing
6 changed files
with
27 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,30 @@ | ||
{% extends 'base.html.twig' %} | ||
{% trans_default_domain 'audit_tom' %} | ||
|
||
{% block title %} | ||
{{ title }} ({% trans from 'general' %}number{% endtrans %}: {{ audit.nummer }}) | ||
{% endblock %} | ||
|
||
{% block CTA %} | ||
{% if audit.activ %} | ||
<a href="{{ path('bericht_audit', {'id':audit.id}) }}"> | ||
<span>{% trans %}pdf.create{% endtrans %}</span> | ||
<a href="{{ path('bericht_audit', {'id':audit.id}) }}" class="btn"> | ||
{% trans %}pdf.create{% endtrans %} | ||
</a> | ||
<a href="{{ path('bericht_audit', {'id':audit.id, 'all':1}) }}"> | ||
<span>{% trans %}pdf.createWithHistory{% endtrans %}</span> | ||
<a href="{{ path('bericht_audit', {'id':audit.id, 'all':1}) }}" class="btn"> | ||
{% trans %}pdf.createWithHistory{% endtrans %} | ||
</a> | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block body %} | ||
<div> | ||
<div> | ||
<h2>{{ title }} ({% trans from 'general' %}number{% endtrans %}: {{ audit.nummer }})</h2> | ||
</div> | ||
<div> | ||
{{ include('assign/__assign.html.twig',{'data':audit,'path':'assign_audit'}) }} | ||
</div> | ||
</div> | ||
|
||
<div> | ||
{{ include('audit_tom/__form.html.twig') }} | ||
</div> | ||
<p>{% trans %}createdBy{% endtrans %}: {{ audit.user.email }}</p> | ||
{{ include('assign/__assign.html.twig',{'data':audit,'path':'assign_audit'}) }} | ||
{{ include('audit_tom/__form.html.twig') }} | ||
<p class="text-muted mt-5 text-sm">{% trans %}createdBy{% endtrans %}: {{ audit.user.email }}</p> | ||
{% if audit.previous %} | ||
<div> | ||
<h2>{% trans %}history{% endtrans %}</h2> | ||
{{ include('audit_tom/__history.html.twig', {'p':audit.previous}) }} | ||
</div> | ||
{% 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
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,33 +1,28 @@ | ||
{% extends 'base.html.twig' %} | ||
{% trans_default_domain 'tom' %} | ||
|
||
{% block title %} | ||
{{ tom.titel }} - {{ title }} | ||
{% endblock %} | ||
|
||
{% block CTA %} | ||
{% if tom.activ %} | ||
<a href="{{ path('bericht_tom', {'id':tom.id}) }}"> | ||
<span>{% trans from 'general' %}pdf.create{% endtrans %}</span> | ||
<a href="{{ path('bericht_tom', {'id':tom.id}) }}" class="btn"> | ||
{% trans from 'general' %}pdf.create{% endtrans %} | ||
</a> | ||
{{ include('base/__approveBtn.html.twig',{'data':tom,'dataLink':'tom_approve'}) }} | ||
{{ include('base/__disableBtn.html.twig',{'data':tom,'dataLink':'tom_disable'}) }} | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block body %} | ||
|
||
<h2>{{ tom.titel }} - {{ title }}</h2> | ||
{{ include('base/__approvedBy.html.twig', {'data':tom}) }} | ||
|
||
<div> | ||
{{ include('tom/__form.html.twig') }} | ||
</div> | ||
<p>{% trans from 'general' %}createdBy{% endtrans %}: {{ tom.user.email }}</p> | ||
{{ include('tom/__form.html.twig') }} | ||
<p class="text-muted mt-5 text-sm">{% trans from 'general' %}createdBy{% endtrans %}: {{ tom.user.email }}</p> | ||
{% if tom.previous %} | ||
<div> | ||
<h2>{% trans from 'general' %}history{% endtrans %}</h2> | ||
{{ include('tom/__history.html.twig', {'p':tom.previous}) }} | ||
</div> | ||
{% endif %} | ||
{{ include('base/__snack.html.twig') }} | ||
{% endblock %} | ||
|
||
{% block javascript %} | ||
{% endblock %} | ||
{% endblock %} |