Skip to content

Commit

Permalink
datepicker を使用するよう修正
Browse files Browse the repository at this point in the history
  • Loading branch information
nanasess committed Jul 19, 2022
1 parent 7f12991 commit c2b3cfe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Eccube/Form/Type/Admin/NewsType.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add('publish_date', DateTimeType::class, [
'date_widget' => 'choice',
'widget' => 'single_text',
'input' => 'datetime',
'years' => range($this->eccubeConfig['eccube_news_start_year'], date('Y') + 3),
'constraints' => [
Expand Down
2 changes: 2 additions & 0 deletions src/Eccube/Form/Type/Admin/ShippingType.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ public function buildForm(FormBuilderInterface $builder, array $options)
->add('shipping_delivery_date', DateType::class, [
'placeholder' => '',
'required' => false,
'input' => 'datetime',
'widget' => 'single_text',
])
->add('tracking_number', TextType::class, [
'required' => false,
Expand Down
2 changes: 1 addition & 1 deletion src/Eccube/Form/Type/Admin/TaxRuleType.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)
'required' => true,
])
->add('apply_date', DateTimeType::class, [
'date_widget' => 'choice',
'widget' => 'single_text',
'input' => 'datetime',
'years' => range(date('Y'), date('Y') + 10),
'placeholder' => [
Expand Down

0 comments on commit c2b3cfe

Please sign in to comment.