Updater Skeleton

From Rhypedigital

Jump to: navigation, search

The repeater is the same as 'Test.skel'. The form has two hidden fields:

The hidden fields make reference to teh controller and the method to use when the form is submitted.

The %{insert:_} is a placeholder to take the rendered component.



<html>
  <body>
    <table>
      #repeat test
        <tr>
          <td>%{test_id:report}</td>
          <td>%{test_name:report}</td>
          <td>%{test_date:report}</td>
        </tr>
      #endrepeat test
    </table>
    <form>
      <input type='hidden' name='script' value='Updater'>
      <input type='hidden' name='action' value='insert'>
      %{insert:_}
      <br/>
      <input type='submit' value='Insert'/>
     </form>
  </body>
</html>