|
@@ -269,6 +269,21 @@ EOF
|
|
|
$oOutput->AddHtml('</div>');
|
|
|
break;
|
|
|
|
|
|
+ case 'Combodo\\iTop\\Form\\Field\\DurationField':
|
|
|
+ $oOutput->AddHtml('<div class="form-group">');
|
|
|
+ // Showing label / value only if read-only but not hidden
|
|
|
+ if (!$this->oField->GetHidden())
|
|
|
+ {
|
|
|
+ if ($this->oField->GetLabel() !== '')
|
|
|
+ {
|
|
|
+ $oOutput->AddHtml('<label for="' . $this->oField->GetGlobalId() . '" class="control-label">')->AddHtml($this->oField->GetLabel(), true)->AddHtml('</label>');
|
|
|
+ }
|
|
|
+ $oOutput->AddHtml('<div class="form-control-static">')->AddHtml($this->oField->GetDisplayValue(), true)->AddHtml('</div>');
|
|
|
+ }
|
|
|
+ $oOutput->AddHtml('<input type="hidden" id="' . $this->oField->GetGlobalId() . '" name="' . $this->oField->GetId() . '" value="')->AddHtml($this->oField->GetCurrentValue(), true)->AddHtml('" class="form-control" />');
|
|
|
+ $oOutput->AddHtml('</div>');
|
|
|
+ break;
|
|
|
+
|
|
|
case 'Combodo\\iTop\\Form\\Field\\RadioField':
|
|
|
case 'Combodo\\iTop\\Form\\Field\\SelectField':
|
|
|
case 'Combodo\\iTop\\Form\\Field\\MultipleSelectField':
|