[MKDoc-dev] Events Component, pull down menus

Chris Croome chris at webarchitects.co.uk
Thu Oct 21 11:37:52 BST 2004


Hi

On Wed 20-Oct-2004 at 11:44:10AM -0400, Sam Tregar wrote:
> On Wed, 20 Oct 2004, Chris Croome wrote:
> 
> > Also I want to add a <label> elements for each for for input element
> > (as accessibility standards require this) -- is it OK to do this now
> > or should I wait a while? I'm happy with you just doing basic
> > functional templates and then me doing more work on the appearance
> > etc...
> 
> Feel free to go ahead and do this. 

OK, this is what I'm going to do for now:

      <label
        for="timerange_from_month"
      >Month</label>
      <select 
        id="timerange_from_month"
        name="timerange_from_month"
        title="Select the start month."
        petal:attributes="name name_from_month; id name_from_month"
      >
        <div 
          petal:repeat="month self/month_select --from"
          petal:omit-tag=""
        >
          <option 
            selected="selected"
            petal:attributes="value    month/value;
                              title    month/value"
            petal:content="month/label"
            petal:condition="true: month/is_selected"
          ></option>
          <option 
            petal:attributes="value    month/value;
                              title    month/value"
            petal:content="month/label"
            petal:condition="false: month/is_selected"
          ></option>
        </div>
      </select>

> I'm basically done with the editor templates, modulo any work getting
> the months names into the templates.

How about doing this like this:

      <label
        for="timerange_from_month"
      >Month</label>
      <select 
        id="timerange_from_month"
        name="timerange_from_month"
        title="Select the start month."
        petal:attributes="name name_from_month; id name_from_month"
      >
        <option 
          selected="selected"
          value="01"
          title="01"
          petal:condition="true: from_month --01"
        >January</option>
        <option 
          value="01"
          title="01"
          petal:condition="false: from_month --01"
        >January</option>
        <option 
          selected="selected"
          value="01"
          title="01"
          petal:condition="true: from_month --02"
        >Feburary</option>
        <option 
          value="01"
          title="01"
          petal:condition="false: from_month --02"
        >Feburary</option>

        ...

      </select>

Chris

-- 
Chris Croome                               <chris at webarchitects.co.uk>
web design                             http://www.webarchitects.co.uk/ 
web content management                               http://mkdoc.com/   


More information about the MKDoc-dev mailing list