N°2313 - Markup extensibility: Add CSS classes on object details and lists in the end-users portal

This commit is contained in:
Molkobain
2020-01-28 15:24:37 +01:00
parent 0d85331bca
commit a96c194676
3 changed files with 3 additions and 3 deletions

View File

@@ -3,7 +3,7 @@
{% extends 'itop-portal-base/portal/templates/bricks/browse/layout.html.twig' %}
{% block bBrowseMainContent%}
<table id="brick-content-table" class="table table-striped table-bordered responsive" cellspacing="0" width="100%">
<table id="brick-content-table" class="object-list table table-striped table-bordered responsive" cellspacing="0" width="100%">
<tbody>
</tbody>
</table>

View File

@@ -39,7 +39,7 @@
{% endif %}
</div>
<div class="panel-body">
<table id="table-{{ aAreaData.sId }}" class="table table-striped table-bordered responsive" width="100%"></table>
<table id="table-{{ aAreaData.sId }}" class="object-list table table-striped table-bordered responsive" width="100%"></table>
</div>
</div>
{% endif %}

View File

@@ -7,7 +7,7 @@
{% set sFormDisplayModeClass = (form.display_mode is defined and form.display_mode is not null) ? 'form_' ~ form.display_mode : '' %}
{% set sFormObjectStateClass = (form.object_state is defined and form.object_state is not null) ? 'form_object_state_' ~ form.object_state : '' %}
<form id="{{ sFormId }}" class="{{ sFormDisplayModeClass }} {{ sFormObjectStateClass }}" method="POST" action="{{ form.renderer.GetEndpoint()|raw }}"
<form id="{{ sFormId }}" class="object-details {{ sFormDisplayModeClass }} {{ sFormObjectStateClass }}" method="POST" action="{{ form.renderer.GetEndpoint()|raw }}"
{% if sMode is defined and sMode is not null %}data-form-mode="{{ sMode }}"{% endif %}
{% if form.object_class is defined and form.object_class is not null %}data-object-class="{{ form.object_class }}"{% endif %}
{% if form.object_id is defined and form.object_id is not null %}data-object-id="{{ form.object_id }}"{% endif %}