Ejemplo n.º 1
0
 public function renderField()
 {
     if (!$this->is_display) {
         return '';
     }
     $format = $this->format ? $this->format : $this->name_form . '[' . $this->name . ']';
     $id = $this->id ? $this->id : $this->name_form . '_' . $this->name;
     return \Kodazzi\Helper\FormHtml::input($format, $this->value, $this->max_length, array('id' => $id, 'class' => $this->getClassCss(), 'disabled' => $this->isDisabled(), 'readonly' => $this->isReadonly(), 'placeholder' => $this->getPlaceholder()));
 }
Ejemplo n.º 2
0
 public function renderField()
 {
     if (!$this->is_display) {
         return '';
     }
     $format = $this->format ? $this->format : $this->name_form . '[' . $this->name . ']';
     $id = $this->id ? $this->id : $this->name_form . '_' . $this->name;
     $value = $this->value ? number_format(str_replace(',', '.', $this->value), $this->scale, '.', '') : '';
     return \Kodazzi\Helper\FormHtml::input($format, $value, $this->max_length, array('id' => $id, 'class' => $this->getClassCss(), 'disabled' => $this->isDisabled(), 'readonly' => $this->isReadonly(), 'placeholder' => $this->getPlaceholder()), $this->other_attributes);
 }