delivery step actions
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
if ( ! class_exists( 'GFForms' ) ) {
|
||||
die();
|
||||
}
|
||||
|
||||
|
||||
class Wiaas_Dates_List_Field extends GF_Field_List {
|
||||
|
||||
public $type = 'wiaas_date_list';
|
||||
|
||||
|
||||
public function get_form_editor_field_title() {
|
||||
return esc_attr__( 'Date List', 'wiaas' );
|
||||
}
|
||||
|
||||
public function sanitize_settings() {
|
||||
|
||||
parent::sanitize_settings();
|
||||
|
||||
//$this->inputType = 'date';
|
||||
}
|
||||
|
||||
public function get_list_input($has_columns, $column, $value, $form_id) {
|
||||
|
||||
$tabindex = $this->get_tabindex();
|
||||
$disabled = $this->is_form_editor() ? 'disabled' : '';
|
||||
|
||||
return "<input type='date' name='input_{$this->id}[]' value='" . esc_attr( $value ) . "' {$tabindex} {$disabled}/>";
|
||||
}
|
||||
|
||||
public function get_value_entry_list( $value, $entry, $field_id, $columns, $form ) {
|
||||
|
||||
return $this->get_value_entry_detail($value, '', false, 'html', 'screen' );
|
||||
}
|
||||
}
|
||||
|
||||
GF_Fields::register( new Wiaas_Dates_List_Field() );
|
||||
Reference in New Issue
Block a user