| | |
| | | <?php |
| | | echo Form::render( |
| | | 'new_' . $this->dataType, |
| | | null, |
| | | '', |
| | | $this->uploaderConfig |
| | | ); |
| | | ?> |
| | |
| | | $config['autocomplete'] = true; |
| | | } |
| | | |
| | | echo Form::render($name, null, $config); |
| | | echo Form::render($name, '', $config); |
| | | echo $makeThisDetailed ? '</details>' : ''; |
| | | } else { |
| | | echo '<p></p>'; |
| | |
| | | $config['autocomplete'] = true; |
| | | } |
| | | ?> |
| | | <?= Form::render($name, null, $config); ?> |
| | | <?= Form::render($name, '', $config); ?> |
| | | <?= $makeThisDetailed ? '</details>' : '' ?> |
| | | </td> |
| | | <?php |
| | |
| | | ?> |
| | | <td class="field show-<?= esc_attr($name) ?>" data-field="<?= esc_attr($name) ?>" data-field-type="<?=$config['type']?>"<?=(in_array($name, $this->stuck)) ? ' data-stuck':''?>> |
| | | <?= $makeThisDetailed ? '<details><summary class="row btw">See Value</summary>' : '' ?> |
| | | <?= Form::render($name, null, $config); ?> |
| | | <?= Form::render($name, '', $config); ?> |
| | | <?= $makeThisDetailed ? '</details>' : '' ?> |
| | | </td> |
| | | <?php |
| | |
| | | foreach ($first as $f) { |
| | | if (array_key_exists($f, $fields)) { |
| | | if ($tabs) { |
| | | $tabs['basic']['content'] .= Form::render($f, null, $fields[$f]); |
| | | $tabs['basic']['content'] .= Form::render($f, '', $fields[$f]); |
| | | } else { |
| | | Form::render($f, null, $fields[$f]); |
| | | Form::render($f, '', $fields[$f]); |
| | | } |
| | | |
| | | unset($fields[$f]); |
| | |
| | | return in_array($field, $this->timelineUniqueFields); |
| | | }, ARRAY_FILTER_USE_KEY); |
| | | $config = [ |
| | | 'type' => 'gallery', |
| | | 'type' => 'upload', |
| | | 'subtype' => 'timeline', |
| | | 'data' => 'timeline', |
| | | 'label' => 'Progression', |
| | |
| | | if (in_array($field['type'], ['taxonomy', 'selector'])) { |
| | | $field = array_merge($field, $this->taxConfig($field['taxonomy'], $field['label'])); |
| | | } |
| | | $content .= Form::render($slug, null, $field); |
| | | $content .= Form::render($slug, '', $field); |
| | | } |
| | | } |
| | | |
| | | |
| | | $content .= Form::render('timeline', null, $config); |
| | | $content .= Form::render('timeline', '', $config); |
| | | |
| | | $tabs['progression']['content'] = $content; |
| | | $fields = $this->nonTimelineFields; |
| | |
| | | foreach ($fields as $n => $config) { |
| | | if ($tabs) { |
| | | $section = (array_key_exists('section', $config)) ? $config['section'] : 'basic'; |
| | | $tabs[$section]['content'] .= Form::render($n,null, $config); |
| | | $tabs[$section]['content'] .= Form::render($n,'', $config); |
| | | } else { |
| | | if (in_array($config['type'], ['taxonomy', 'selector'])) { |
| | | $config = array_merge($config, $this->taxConfig($config['taxonomy'], $config['label'])); |
| | | } |
| | | Form::render($n, null, $config); |
| | | Form::render($n, '', $config); |
| | | } |
| | | } |
| | | |
| | |
| | | return array_key_exists('bulkEdit', $field); |
| | | }); |
| | | foreach ($fields as $fieldName => $config) { |
| | | echo Form::render($fieldName, null, $config); |
| | | echo Form::render($fieldName, '', $config); |
| | | } |
| | | ?> |
| | | </div> |