X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-input-date-field.html;h=40162f0fda342e2df64f15cbee2cd238c1792860;hb=3c6c53b4e50d076300544a0d8e2267d8119f0f7d;hp=0618fc965bd507dcdf0aff8a27f5e8be2ec6de06;hpb=f2d53ad396415b5aaba1d6483c75cb605364b644;p=freeside.git diff --git a/httemplate/elements/tr-input-date-field.html b/httemplate/elements/tr-input-date-field.html index 0618fc965..40162f0fd 100644 --- a/httemplate/elements/tr-input-date-field.html +++ b/httemplate/elements/tr-input-date-field.html @@ -1,14 +1,34 @@ +<%doc> - - - - +Example: + + <& /elements/tr-input_date-field, + { + 'name' => 'field_name', + 'value' => $current_value, + 'label' => 'Label', + + #optional + 'format' => '%m/%d/%Y', #overrides date_format config + 'usedatetime' => 1, #use DateTime->strftime to format the date + # instead of Date::Format->time2str + 'noinit' => 1, #first one on the page is enough + }, + &> + +%doc> +% unless ( $noinit ) { + + + + +% }