mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-18 06:48:50 +02:00
N°2313 - Markup extensibility: Add CSS classes on object details and lists in the end-users portal
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user