|
510 | 510 | Form::Url("Url", "url"); |
511 | 511 | ?> |
512 | 512 | <h2>Date Elements</h2> |
513 | | -<p></p> |
| 513 | +<p>Please note, that usage of date element can lead to a different behavoir in different browsers. </p> |
514 | 514 | <div class="highlight"> |
515 | 515 | <pre><code class="language-php"> |
516 | 516 | <?php echo htmlspecialchars ('<?php |
517 | | - Form::Date("Date", "date", $attributes = null); |
| 517 | + Form::Date("US Date", "date", $attributes = null); |
| 518 | + Form::Date("EU Date", "date", array ("pattern" => "\d{2}.\d{2}.\d{4}", |
| 519 | + "placeholder" => "DD.MM.YYYY")); |
518 | 520 | Form::DateTime("DateTime", "datetime", $attributes = null); |
519 | 521 | Form::DateTimeLocal("DateTime Local", "DateTimeLocal", $attributes = null); |
520 | 522 | Form::Month("Month", "month", $attributes = null); |
|
524 | 526 | </code></pre> |
525 | 527 | </div> |
526 | 528 | <?php |
527 | | - Form::Date("Date", "date"); |
| 529 | + Form::Date("US Date", "date"); |
| 530 | + Form::Date("EU Date", "date", array ("pattern" => "\d{2}.\d{2}.\d{4}", "placeholder" => "DD.MM.YYYY")); |
528 | 531 | Form::DateTime("DateTime", "datetime"); |
529 | 532 | Form::DateTimeLocal("DateTime Local", "DateTimeLocal", array ('placeholder' => 'DateTime-Local')); |
530 | 533 | Form::Month("Month", "month"); |
|
0 commit comments