예제 #1
0
파일: date.php 프로젝트: cepharum/txf
 public function renderStatic(html_form $form, $name, $input, $label, model_editor $editor, model_editor_field $field)
 {
     $value = $this->formatValue($name, $input, $editor, $field);
     $classes = array($this->class, 'date', preg_replace('/\\W/', '', $this->staticFormat));
     $classes = implode(' ', array_filter($classes));
     $form->setRow($name, $label, markup::inline($value, 'static'), $this->isMandatory, null, null, $classes);
     return $this;
 }
예제 #2
0
파일: related.php 프로젝트: cepharum/txf
 public function renderStatic(html_form $form, $name, $value, $label, model_editor $editor, model_editor_field $field)
 {
     $available = $this->getSelectableOptions();
     $value = array_map(function ($selected) use($available) {
         return $available[$selected];
     }, (array) $value);
     $classes = implode(' ', array_filter(array($this->class, 'related')));
     $list = markup::bullets($value, $classes);
     $form->setRow($name, $label, $list, $this->isMandatory(), $this->hint, null, $classes);
     return $this;
 }
예제 #3
0
파일: texteditor.php 프로젝트: cepharum/txf
 public function renderStatic(html_form $form, $name, $input, $label, model_editor $editor, model_editor_field $field)
 {
     $classes = implode(' ', array_filter(array($this->class, 'texteditor')));
     $form->setRow($name, $label, markup::inline($input, 'static'), $this->isMandatory, null, null, $classes);
     return $this;
 }
예제 #4
0
파일: option.php 프로젝트: cepharum/txf
 public function renderStatic(html_form $form, $name, $input, $label, model_editor $editor, model_editor_field $field)
 {
     $classes = implode(' ', array_filter(array($this->class, 'option')));
     $form->setRow($name, $label, markup::inline($input ? \de\toxa\txf\_L('yes') : \de\toxa\txf\_L('no'), 'static'), null, null, $classes);
     return $this;
 }