mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
Portal: Added CSS classes to <body> tag regarding the current page / brick so we can apply CSS style more precisely.
SVN:trunk[4565]
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
{# Browse brick base layout #}
|
||||
{% extends 'itop-portal-base/portal/src/views/bricks/layout.html.twig' %}
|
||||
|
||||
{% block pPageBodyClass %}{{ parent() }} page_browse_brick page_browse_brick_as_{{ sBrowseMode }}{% endblock %}
|
||||
|
||||
{% block pMainHeaderTitle %}
|
||||
{{ oBrick.GetTitle()|dict_s }}
|
||||
{% endblock %}
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block pPageBodyClass %}{{ parent() }} page_brick_of_id_{{ oBrick.GetId() }}{% endblock %}
|
||||
|
||||
{% block pMainHeader %}
|
||||
<div class="col-xs-12">
|
||||
<div id="main-header-title">
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
{# Manage brick base layout #}
|
||||
{% extends 'itop-portal-base/portal/src/views/bricks/layout.html.twig' %}
|
||||
|
||||
{% block pPageBodyClass %}{{ parent() }} page_manage_brick{% endblock %}
|
||||
|
||||
{% block pMainHeaderTitle %}
|
||||
{{ oBrick.GetTitle()|dict_s }}
|
||||
{% endblock %}
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
{# Object brick base layout #}
|
||||
{% extends 'itop-portal-base/portal/src/views/bricks/layout.html.twig' %}
|
||||
|
||||
{% block pPageBodyClass %}{{ parent() }} page_object_brick page_object_brick_as_{{ sMode }}{% endblock %}
|
||||
|
||||
{% block pMainHeader %}
|
||||
<div class="col-xs-12" id="main-header-title">
|
||||
{% if form.title is defined %}
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
{# itop-portal-base/portal/src/views/bricks/browse/layout.html.twig #}
|
||||
{# Browse brick base layout #}
|
||||
{# itop-portal-base/portal/src/views/bricks/user-profile/layout.html.twig #}
|
||||
{# User profile brick base layout #}
|
||||
{% extends 'itop-portal-base/portal/src/views/bricks/layout.html.twig' %}
|
||||
|
||||
{% set oContactForm = forms.contact %}
|
||||
{% set oPreferencesForm = forms.preferences %}
|
||||
{% set oPasswordForm = forms.password %}
|
||||
|
||||
{% block pPageBodyClass %}{{ parent() }} page_user-profile_brick{% endblock %}
|
||||
|
||||
{% block pMainHeaderTitle %}
|
||||
{{ oBrick.GetTitle()|dict_s }}
|
||||
{% endblock %}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
{# Home layout #}
|
||||
{% extends app['combodo.portal.instance.conf'].properties.templates.layout %}
|
||||
|
||||
{% block pPageBodyClass %}home{% endblock %}
|
||||
{% block pPageBodyClass %}page_home{% endblock %}
|
||||
|
||||
{# Showing only bricks that are not visible on the main content as well as a welcome message #}
|
||||
{#{% block pNavigationSideMenu %}
|
||||
|
||||
Reference in New Issue
Block a user