Changeset 3725:b47f38c701ee for admin/post.php
- Timestamp:
- 03/02/18 15:55:06 (7 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/post.php
r3710 r3725 556 556 '<p><label for="post_dt">' . __('Publication date and hour') . '</label>' . 557 557 form::field('post_dt', 16, 16, $post_dt, ($bad_dt ? 'invalid' : '')) . 558 /* 559 Previous line will be replaced by this one as soon as every browser will support datetime-local input type 560 Dont forget to remove call to datepicker in post.js 561 562 form::datetime('post_dt', array( 563 'default' => html::escapeHTML(dt::str('%Y-%m-%dT%H:%M', strtotime($post_dt))), 564 'class' => ($bad_dt ? 'invalid' : '') 565 )) . 566 */ 558 567 '</p>', 559 568 'post_lang' => … … 587 596 '<h5 id="create_cat">' . __('Add a new category') . '</h5>' . 588 597 '<p><label for="new_cat_title">' . __('Title:') . ' ' . 589 form::field('new_cat_title', 30, 255, '', 'maximal') . '</label></p>' .598 form::field('new_cat_title', 30, 255, array('class' => 'maximal')) . '</label></p>' . 590 599 '<p><label for="new_cat_parent">' . __('Parent:') . ' ' . 591 600 form::combo('new_cat_parent', $categories_combo, '', 'maximal') . … … 638 647 '<p class="col">' . 639 648 '<label class="required no-margin bold" for="post_title"><abbr title="' . __('Required field') . '">*</abbr> ' . __('Title:') . '</label>' . 640 form::field('post_title', 20, 255, html::escapeHTML($post_title), 'maximal', '', false, 'required placeholder="' . __('Title') . '"') . 649 form::field('post_title', 20, 255, array( 650 'default' => html::escapeHTML($post_title), 651 'class' => 'maximal', 652 'extra_html' => 'required placeholder="' . __('Title') . '"' 653 )) . 641 654 '</p>', 642 655 … … 780 793 '<div class="constrained">' . 781 794 '<p><label for="comment_author" class="required"><abbr title="' . __('Required field') . '">*</abbr> ' . __('Name:') . '</label>' . 782 form::field('comment_author', 30, 255, html::escapeHTML($core->auth->getInfo('user_cn')), 783 '', '', false, 'required placeholder="' . __('Author') . '"') . 795 form::field('comment_author', 30, 255, array( 796 'default' => html::escapeHTML($core->auth->getInfo('user_cn')), 797 'extra_html' => 'required placeholder="' . __('Author') . '"' 798 )) . 784 799 '</p>' . 785 800 786 801 '<p><label for="comment_email">' . __('Email:') . '</label>' . 787 form:: field('comment_email', 30, 255, html::escapeHTML($core->auth->getInfo('user_email'))) .802 form::email('comment_email', 30, 255, html::escapeHTML($core->auth->getInfo('user_email'))) . 788 803 '</p>' . 789 804 790 805 '<p><label for="comment_site">' . __('Web site:') . '</label>' . 791 form:: field('comment_site', 30, 255, html::escapeHTML($core->auth->getInfo('user_url'))) .806 form::url('comment_site', 30, 255, html::escapeHTML($core->auth->getInfo('user_url'))) . 792 807 '</p>' . 793 808
Note: See TracChangeset
for help on using the changeset viewer.