% endif
</%def>
+<%def name="table_rows(tab_index)">
+ <%
+ self.user_row(tab_index, havecreds, user)
+ self.password_row(tab_index, havecreds)
+ caller.body(tab_index)
+ %>
+</%def>
+
<%def name="main_form(tab_index)">
<form action="" enctype="multipart/form-data" method="post">
<div>
</div>
<table>
- <%
- if hasattr(caller, 'database_row'):
- caller.database_row(tab_index)
- self.user_row(tab_index, havecreds, user)
- self.password_row(tab_index, havecreds)
-
- caller.body(tab_index)
-
- %>
+ <%self:table_rows tab_index="${tab_index}" args="tab_index"/>
</table>
<p>
table.
</%doc>
-<%def name="main_form(tab_index)">
- <%parent:main_form tab_index="${tab_index}" args="tab_index">
- <%def name="database_row(tab_index)">
- <tr>
- <td class="label">
- <label for="db_id">Database:</label>
- </td>
- <td>
- <input name="db"
- tabindex="${tab_index.val}"
- id="db_id"
- type="text"
- size="30"
- value="${db}"
- />
- </td>
- </tr>
- <% tab_index.inc() %>
- </%def>
+<%def name="database_row(tab_index)">
+ <tr>
+ <td class="label">
+ <label for="db_id">Database:</label>
+ </td>
+ <td>
+ <input name="db"
+ tabindex="${tab_index.val}"
+ id="db_id"
+ type="text"
+ size="30"
+ value="${db}"
+ />
+ </td>
+ </tr>
+ <% tab_index.inc() %>
+</%def>
+<%def name="table_rows(tab_index)">
+ ${self.database_row(tab_index)}
+ <%parent:table_rows tab_index="${tab_index}" args="tab_index">
<% caller.body(tab_index) %>
- </%parent:main_form>
+ </%parent:table_rows>
</%def>