N°3523 Adjust buttons and links colors to make application more accessible

This commit is contained in:
Stephen Abello
2021-11-23 11:26:16 +01:00
parent cff2105908
commit b1de8683f0
2 changed files with 6 additions and 3 deletions

View File

@@ -28,6 +28,7 @@ use Combodo\iTop\Application\UI\Base\Component\Button\Button;
use Combodo\iTop\Application\UI\Base\Component\Button\ButtonUIBlockFactory;
use Combodo\iTop\Application\UI\Base\Component\DataTable\DataTableUIBlockFactory;
use Combodo\iTop\Application\UI\Base\Component\Input\FileSelect\FileSelectUIBlockFactory;
use Combodo\iTop\Application\UI\Base\Component\Panel\PanelUIBlockFactory;
use Combodo\iTop\Renderer\BlockRenderer;
define('ATTACHMENT_DOWNLOAD_URL', 'pages/ajax.document.php?operation=download_document&class=Attachment&field=contents&id=');
@@ -448,10 +449,13 @@ class TableDetailsAttachmentsRenderer extends AbstractAttachmentsRenderer
if ($bWithDeleteButton) {
$aAttribs['delete'] = array('label' => '', 'description' => '');
}
$oPanel = PanelUIBlockFactory::MakeNeutral('');
$oPanel->AddCSSClass('ibo-datatable-panel');
$oAttachmentTableBlock = DataTableUIBlockFactory::MakeForStaticData('', $aAttribs, $aData);
$oAttachmentTableBlock->AddCSSClass('ibo-attachment--datatable');
$this->oPage->AddUiBlock($oAttachmentTableBlock);
$oPanel->AddSubBlock($oAttachmentTableBlock);
$this->oPage->AddUiBlock($oPanel);
$sTableId = $oAttachmentTableBlock->GetId();

View File

@@ -35,7 +35,6 @@ var oTable{{ sListIDForVarSuffix }} = $('#{{ oUIBlock.GetId() }}').DataTable({
{% endif %}
scrollCollapse: true,
order: [],
autoWidth: false,
rowId: "id",
filter: false,
{% if oUIBlock.GetOption("pageLength") is not empty %}