We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73e0fc5 commit ebadd56Copy full SHA for ebadd56
Resources/views/Form/week_widget.html.php
@@ -0,0 +1,14 @@
1
+<?php if ($widget == 'single_text'): ?>
2
+ <?php echo $view['form']->block($form, 'form_widget_simple'); ?>
3
+<?php else: ?>
4
+ <?php $vars = $widget == 'text' ? ['attr' => ['size' => 1]] : [] ?>
5
+ <div <?php echo $view['form']->block($form, 'widget_container_attributes') ?>>
6
+ <?php
7
+ // There should be no spaces between the colons and the widgets, that's why
8
+ // this block is written in a single PHP tag
9
+ echo $view['form']->widget($form['year'], $vars);
10
+ echo '-';
11
+ echo $view['form']->widget($form['week'], $vars);
12
+ ?>
13
+ </div>
14
+<?php endif ?>
0 commit comments