Skip to content

Commit

Permalink
Create toggle for full width layout and apply for data tables
Browse files Browse the repository at this point in the history
  • Loading branch information
Rayvented committed Dec 4, 2023
1 parent a25d50f commit 81fe413
Show file tree
Hide file tree
Showing 13 changed files with 25 additions and 1 deletion.
2 changes: 2 additions & 0 deletions templates/akademie/index.html.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{% extends 'base.html.twig' %}
{% trans_default_domain 'academy' %}

{% set fullWidthLayout = true %}

{% block title %}
{% trans %}academyCourses{% endtrans %}
{% endblock %}
Expand Down
2 changes: 2 additions & 0 deletions templates/assign/index.html.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{% extends 'base.html.twig' %}
{% trans_default_domain 'assign' %}

{% set fullWidthLayout = true %}

{% block title %}{% trans %}myAssignments{% endtrans %}{% endblock %}

{% block body %}
Expand Down
2 changes: 2 additions & 0 deletions templates/audit_tom/index.html.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{% extends 'base.html.twig' %}
{% trans_default_domain 'audit_tom' %}

{% set fullWidthLayout = true %}

{% block title %}
{% trans %}allTomAuditQuestions{% endtrans %}
{% endblock %}
Expand Down
2 changes: 1 addition & 1 deletion templates/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{{ include('base/__teamToggle.html.twig') }}
{{ include('base/__topnav.html.twig') }}
</div>
<div class="container mx-auto max-w-5xl">
<div class="container {{ fullWidthLayout is defined and fullWidthLayout ? 'max-w-full' : 'mx-auto max-w-5xl' }}">
{% apply spaceless %}
<div id="bock-cta" class="flex flex-row flex-wrap rounded flex gap-2 items-center justify-start">
{% block CTA %}{% endblock %}
Expand Down
2 changes: 2 additions & 0 deletions templates/client_request/indexInternal.html.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{% extends 'base.html.twig' %}
{% trans_default_domain 'client_request' %}

{% set fullWidthLayout = true %}

{% block title %}
{% trans %}request.all{% endtrans %}
{% endblock %}
Expand Down
2 changes: 2 additions & 0 deletions templates/datenweitergabe/index.html.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{% extends 'base.html.twig' %}
{% trans_default_domain 'datenweitergabe' %}

{% set fullWidthLayout = true %}

{% block title %}{{ titel }}{% endblock %}

{% block CTA %}
Expand Down
2 changes: 2 additions & 0 deletions templates/datenweitergabe/indexAuftragsverarbeitung.html.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{% extends 'base.html.twig' %}
{% trans_default_domain 'datenweitergabe' %}

{% set fullWidthLayout = true %}

{% block title %}{{ titel }}{% endblock %}

{% block CTA %}
Expand Down
2 changes: 2 additions & 0 deletions templates/forms/index.html.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{% extends 'base.html.twig' %}
{% trans_default_domain 'forms' %}

{% set fullWidthLayout = true %}

{% block title %}
{{ titel }}
{% endblock %}
Expand Down
2 changes: 2 additions & 0 deletions templates/forms/indexAuftragsverarbeitung.html.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{% extends 'base.html.twig' %}
{% trans_default_domain 'forms' %}

{% set fullWidthLayout = true %}

{% block title %}
{{ titel }}
{% endblock %}
Expand Down
2 changes: 2 additions & 0 deletions templates/kontakt/index.html.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{% extends 'base.html.twig' %}
{% trans_default_domain 'kontakt' %}

{% set fullWidthLayout = true %}

{% block title %}{{ title }}{% endblock %}

{% block CTA %}
Expand Down
2 changes: 2 additions & 0 deletions templates/kurs/index.html.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{% extends 'base.html.twig' %}
{% trans_default_domain 'kurs' %}

{% set fullWidthLayout = true %}

{% block CTA %}
<a href="{{ path('akademie_kurs_new') }}">
<span>{% trans %}addCourse{% endtrans %}</span>
Expand Down
2 changes: 2 additions & 0 deletions templates/task/index.html.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{% extends 'base.html.twig' %}
{% trans_default_domain 'task' %}

{% set fullWidthLayout = true %}

{% block title %}{% trans %}task.overview{% endtrans %}{% endblock %}

{% block CTA %}
Expand Down
2 changes: 2 additions & 0 deletions templates/tom/index.html.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{% extends 'base.html.twig' %}
{% trans_default_domain 'tom' %}

{% set fullWidthLayout = true %}

{% block title %}
{% trans %}tom.overview{% endtrans %}
{% endblock %}
Expand Down

0 comments on commit 81fe413

Please sign in to comment.