X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-input-date-field.html;h=40162f0fda342e2df64f15cbee2cd238c1792860;hb=d54644e17fc84f3853ca020ae68605e7900855fb;hp=2a731e1e8133e558b1bb408a5f0a20f97e77f986;hpb=c183de0b7e942672cafdc1c14a203e389ffd2c43;p=freeside.git diff --git a/httemplate/elements/tr-input-date-field.html b/httemplate/elements/tr-input-date-field.html index 2a731e1e8..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 ) { +% }