Portal: LinkedSet label in forms can now be toggled by clicking on the field label (Was only working on the linkedset count and chevron)

SVN:trunk[4514]
This commit is contained in:
Guillaume Lajarige
2016-12-13 10:45:34 +00:00
parent 68c180f7eb
commit c185e1fc4f
3 changed files with 7 additions and 3 deletions

View File

@@ -652,10 +652,12 @@ table .group-actions {
}
/* LinkedSet*/
.form_linkedset_toggler, .form_linkedset_toggler:hover, .form_linkedset_toggler:focus {
margin-left: 0.4em;
text-decoration: none;
color: inherit;
}
.form_linkedset_toggler > .text {
margin-left: 0.4em;
}
.form_linkedset_toggler > .text:before {
content: "(";
}

View File

@@ -692,10 +692,12 @@ table .group-actions .item-action-wrapper .panel-body > p:last-child{
.form_linkedset_toggler,
.form_linkedset_toggler:hover,
.form_linkedset_toggler:focus{
margin-left: 0.4em;
text-decoration: none;
color: inherit;
}
.form_linkedset_toggler > .text{
margin-left: 0.4em;
}
.form_linkedset_toggler > .text:before{
content: "(";
}

View File

@@ -67,8 +67,8 @@ class BsLinkedSetFieldRenderer extends FieldRenderer
if ($this->oField->GetLabel() !== '')
{
$oOutput->AddHtml('<label for="' . $this->oField->GetGlobalId() . '" class="control-label">')
->AddHtml($this->oField->GetLabel(), true)
->AddHtml('<a id="' . $sCollapseTogglerId . '" class="form_linkedset_toggler" data-toggle="collapse" href="#' . $sFieldWrapperId . '" aria-expanded="false" aria-controls="' . $sFieldWrapperId . '">')
->AddHtml($this->oField->GetLabel(), true)
->AddHtml('<span class="text">' . count($aItemIds) . '</span>')
->AddHtml('<span class="glyphicon ' . $sCollapseTogglerHiddenClass . '"></>')
->AddHtml('</a>')