X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-input-date-field.html;h=ff9855184edd777713a21ed2b9003f9cd6e45cc0;hb=8a0e102eca3b469b31d5d934fd460a7c87618dec;hp=5400fcb808cebc6a161fc2d8808882ecda1a91ce;hpb=b5c4237a34aef94976bc343c8d9e138664fc3984;p=freeside.git diff --git a/httemplate/elements/tr-input-date-field.html b/httemplate/elements/tr-input-date-field.html index 5400fcb80..ff9855184 100644 --- a/httemplate/elements/tr-input-date-field.html +++ b/httemplate/elements/tr-input-date-field.html @@ -1,3 +1,22 @@ +<%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 ) { @@ -7,9 +26,9 @@