Prints a single input template.
Description
See also
Source
File: src/db-objects/elements/element-types/choices-field.php
protected function print_single_input_template() { ?> <span class="torro-element-choice-move" aria-hidden="true"> <?php torro()->assets()->render_icon( 'torro-icon-move' ); ?> </span> <input type="<?php echo esc_attr( $this->type ); ?>"{{{ _.attrs( data.inputAttrs ) }}} value="{{ data.currentValue }}"> <input type="hidden" name="{{ data.inputAttrs.name.replace( '[value]', '[element_id]' ) }}" value="{{ data.element_id }}"> <input type="hidden" name="{{ data.inputAttrs.name.replace( '[value]', '[field]' ) }}" value="{{ data.field }}"> <input type="hidden" name="{{ data.inputAttrs.name.replace( '[value]', '[sort]' ) }}" value="{{ data.sort }}"> <?php $this->print_repeatable_remove_button_template(); }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |