Changeset 1421

Show
Ignore:
Timestamp:
17/12/09 15:53:19 (3 months ago)
Author:
bruno
Message:

With the newest Kauri, the hidden inputs are not hidden anymore. Would be nice if Kauri-form-from-HTML building picked this up though. Solved by using a kauri-control reference.
A very strange thing though is that when I remove the no-longer necessary type="hidden" attributes, or replace them by type="text, that somehow things break. So I've left them in for now.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tupper/trunk/tupper-site/src/main/kauri/pages/{user}/time..xml

    r1321 r1421  
    3333            base:'string', 
    3434            "user-format": "noTask" 
     35        } 
     36    }, 
     37    "controlTypes": { 
     38        "input-hidden": { 
     39          "base" : "input-control", 
     40          "initial": { 
     41              "show": false 
     42          } 
    3543        } 
    3644    }, 
     
    144152                                    </tr> 
    145153                                    <tr kauri-role="layout"> 
    146                                         <input type="hidden" class="task_id" kauri-idref="taskid" 
    147                                                                                        kauri-type="integer" /> 
     154                                        <input type="hidden" class="task_id" kauri-idref="taskid" kauri-type="integer" 
     155                                               kauri-control="input-hidden"/> 
    148156                                        <input type="hidden" class="performance_empl" kauri-idref="employee" 
    149                                             kauri-type="string"/> 
     157                                            kauri-type="string" kauri-control="input-hidden"/> 
    150158                                        <input type="hidden" class="week" kauri-idref="week" 
    151                                             kauri-type="string" /> 
     159                                            kauri-type="string" kauri-control="input-hidden"/> 
    152160                                        <td> 
    153161                                            <a href="#" class="new_performance_button">--</a> 
    154                                             <input class="hidden" type="hidden" kauri-idref="customer
    155                                                                                                kauri-type="string" /> 
     162                                            <input type="hidden" kauri-idref="customer" kauri-type="string
     163                                                   kauri-control="input-hidden"/> 
    156164                                        </td> 
    157165                                        <td> 
    158166                                            <a href="#" class="new_performance_button">--</a> 
    159                                             <input class="hidden" type="hidden" kauri-idref="project
    160                                                                                                kauri-type="string" /> 
     167                                            <input type="hidden" kauri-idref="project" kauri-type="string
     168                                                   kauri-control="input-hidden"/> 
    161169                                        </td> 
    162170                                        <td> 
    163171                                            <a href="#" class="new_performance_button">--</a> 
    164                                             <input class="hidden" type="hidden" kauri-idref="task
    165                                                                                                kauri-type="string" /> 
     172                                            <input type="hidden" kauri-idref="task" kauri-type="string
     173                                                   kauri-control="input-hidden"/> 
    166174                                        </td> 
    167175                                        <td class="table_input_time">