Changes between Version 4 and Version 5 of CalendarPopUpPlugin


Ignore:
Timestamp:
Jun 10, 2009, 6:02:22 PM (6 years ago)
Author:
jjbig
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CalendarPopUpPlugin

    v4 v5  
    2121You can check out CalendarPopUpPlugin from [http://trac-hacks.org/svn/calendarpopupplugin here] using Subversion, or [source:calendarpopupplugin browse the source] with Trac.
    2222
    23 == Example ==
     23== Howto ==
    2424
    25 For e.g. in the ticketsystem, you have an field called YYYY/mm/dd, if you now click on that field an small div-pop-up is coming, showing you a calendar to easy select the date you wish for.
     25First you have to identify all the html-ids of the input fields, where you want the pop up to appear, as well as the html filenames.
     26
     27Take for example the html file ''milestone_edit.html'' and !add it like it is added below.
     28Then you take a look at the html code to find the input filds, where the popup shoud appear. That's the fild {{id="duedate"}}.
     29
     30That leaves us with the following settings, that go into the ''trac.ini''
     31{{{
     32[calendarpopup]
     33ids=duedate=MM/dd/yy
     34files=milestone_edit.html
     35}}}
     36
     37And in a bigger context:
    2638
    2739{{{
    2840[calendarpopup]
    29 ids=field-due_assign=dd.MM.yyyy,field-due_close=dd.MM.yyyy
     41ids=field-due_assign,field-due_close,duedate=MM/dd/yy
     42files=milestone_edit.html,ticket.html
    3043}}}
     44
     45__Remark:__ The default (yyy/MM/dd) date format is taken, if not defined by ''=''.
    3146
    3247== Recent Changes ==