N°2798 - Fix unable to submit portal forms (Regression from dba6e8ce)

This commit is contained in:
Molkobain
2020-02-24 09:24:23 +01:00
parent 98304e2bda
commit 1ce5ec73ea
3 changed files with 25 additions and 8 deletions

View File

@@ -1,4 +1,21 @@
/*
/*!
* Copyright (C) 2013-2020 Combodo SARL
*
* This file is part of iTop.
*
* iTop is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* iTop is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
*/
/*!
* Copyright (C) 2013-2020 Combodo SARL
*
* This file is part of iTop.
@@ -15,7 +32,6 @@
*
* You should have received a copy of the GNU Affero General Public License
*/
/*!
* Combodo portal template v1.0.0
*/
@@ -1035,6 +1051,11 @@ table .group-actions {
color: #EA7D1E;
font-size: 0.9em;
}
/* Note: We don't put the .form_field selector as it must work for read-only */
.form-control-static img {
max-width: 100% !important;
height: initial !important;
}
/* ExternalKey */
.selectobject .input-group-addon {
cursor: pointer;
@@ -1249,10 +1270,6 @@ table .group-actions {
.form_fields .file_open_link {
margin-left: 10px;
}
.form_field .form-control-static img {
max-width: 100% !important;
height: initial !important;
}
.form_buttons {
padding-top: 20px;
text-align: center;

View File

@@ -1116,7 +1116,8 @@ table .group-actions .item-action-wrapper .panel-body > p:last-child{
color: $brand-primary;
font-size: 0.9em;
}
.form_field .form-control-static img{
/* Note: We don't put the .form_field selector as it must work for read-only */
.form-control-static img{
max-width: 100% !important;
height: initial !important;
}

View File

@@ -39,7 +39,6 @@ class BsFieldRenderer extends FieldRenderer
public function Render()
{
$oOutput = parent::Render();
$oOutput->AddCssClass('form_field');
$oOutput->AddCssClass('form_field_'.$this->oField->GetDisplayMode());
return $oOutput;