X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-input-date-field.html;h=ff9855184edd777713a21ed2b9003f9cd6e45cc0;hb=8a0e102eca3b469b31d5d934fd460a7c87618dec;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..ff9855184 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 ) { +% }