N°635 Portal: Forms now have 3 differents layout (display_mode), see online documentation (when released) for more information.

SVN:trunk[4736]
This commit is contained in:
Guillaume Lajarige
2017-05-15 15:50:12 +00:00
parent 50970810d2
commit b213f2baea
9 changed files with 206 additions and 101 deletions

View File

@@ -1,6 +1,6 @@
<?php
// Copyright (C) 2010-2016 Combodo SARL
// Copyright (C) 2010-2017 Combodo SARL
//
// This file is part of iTop.
//
@@ -47,6 +47,8 @@ class BsLinkedSetFieldRenderer extends FieldRenderer
public function Render()
{
$oOutput = new RenderingOutput();
$oOutput->AddCssClass('form_field_' . $this->oField->GetDisplayMode());
$sFieldMandatoryClass = ($this->oField->GetMandatory()) ? 'form_mandatory' : '';
// Vars to build the table
$sAttributesToDisplayAsJson = json_encode($this->oField->GetAttributesToDisplay());