<%def name="user_row(tab_index, havecreds, user)">
<tr>
<%self.lib:td_label>Username</%self.lib:td_label>
- <td>
% if havecreds:
- <span id="user_id">${user}</span>
+ <td><span id="user_id">${user}</span></td>
% else:
- <input name="user"
- tabindex="${tab_index.val}"
- id="user_id"
- type="text"
- size="30"
- value=""
- />
+ <%self.lib:td_input tab_index="${tab_index}">
+ <input name="user"
+ tabindex="${tab_index.val}"
+ id="user_id"
+ type="text"
+ size="30"
+ value=""
+ />
+ </%self.lib:td_input>
% endif
- <% tab_index.inc() %>
- </td>
</tr>
</%def>
% if not havecreds:
<tr>
<%self.lib:td_label>Password</%self.lib:td_label>
- <td>
+ <%self.lib:td_input tab_index="${tab_index}">
<input name="password"
tabindex="${tab_index.val}"
id="password_id"
type="password"
size="30"
/>
- </td>
+ </%self.lib:td_input>
</tr>
- <% tab_index.inc() %>
% endif
</%def>
<%def name="database_row(tab_index)">
<tr>
<%self.lib:td_label>Database</%self.lib:td_label>
- <td>
+ <%self.lib:td_input tab_index="${tab_index}">
<input name="db"
tabindex="${tab_index.val}"
id="db_id"
size="30"
value="${db}"
/>
- </td>
+ </%self.lib:td_input>
</tr>
- <% tab_index.inc() %>
</%def>
<%def name="table_rows(tab_index)">