diff --git a/src/classes/field-types/date/class-tainacan-date.php b/src/classes/field-types/date/class-tainacan-date.php index 98059c274..739527213 100644 --- a/src/classes/field-types/date/class-tainacan-date.php +++ b/src/classes/field-types/date/class-tainacan-date.php @@ -4,6 +4,7 @@ namespace Tainacan\Field_Types; defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); +use Tainacan\Helpers; /** * Class TainacanFieldType */ @@ -23,4 +24,22 @@ class Date extends Field_Type { public function render( $metadata ){ return ''; } + + /** + * generate the fields for this field type + */ + public function form(){ + $approx_date = ( $this->options['approximate_date'] ) ? $this->options['approximate_date'] : ''; + ?> + + +
+ + + + + + +
+ - + options['repeated'] ) ) ? $this->options['repeated'] : 'yes', 'field_type_relationship[repeated]' ) ?> options['collection_id'] ) ): ?> diff --git a/src/classes/field-types/textarea/class-tainacan-textarea.php b/src/classes/field-types/textarea/class-tainacan-textarea.php index e2ba06c69..8755c2852 100644 --- a/src/classes/field-types/textarea/class-tainacan-textarea.php +++ b/src/classes/field-types/textarea/class-tainacan-textarea.php @@ -23,4 +23,11 @@ class Textarea extends Field_Type { public function render( $metadata ){ return ''; } + + /** + * generate the fields for this field type + */ + public function form(){ + + } } \ No newline at end of file diff --git a/src/helpers/class-tainacan-helpers-html.php b/src/helpers/class-tainacan-helpers-html.php index a75337c67..6c4a06fd3 100644 --- a/src/helpers/class-tainacan-helpers-html.php +++ b/src/helpers/class-tainacan-helpers-html.php @@ -56,7 +56,7 @@ use Tainacan\Entities; $metadata = $Tainacan_Metadatas->fetch_by_collection( $collection, $args, 'OBJECT'); ?> style="width: 15px;"> + +
+