Simplifying view/edit logic

svn: r13855
This commit is contained in:
Doug Blank 2009-12-20 02:34:04 +00:00
parent f76d9c9aad
commit f90175e10c

View File

@ -23,6 +23,7 @@
{% endfor %} {% endfor %}
<form method="post"> <form method="post">
{% endifequal %} {% endifequal %}
{% endif %}
<tr> <tr>
<td class="ColumnAttribute">{{form.surname.label}}:</td> <td class="ColumnAttribute">{{form.surname.label}}:</td>
<td class="ColumnValue" id="data">{{form.surname|render:action}}</td> <td class="ColumnValue" id="data">{{form.surname|render:action}}</td>
@ -55,37 +56,9 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
{% else %}
<tr>
<td class="ColumnAttribute">{{form.surname.label}}:</td>
<td class="ColumnValue" id="data">{{form.surname}}</td>
<td class="ColumnAttribute">{{form.prefix.label}}:</td>
<td class="ColumnValue" id="data">[Private]</td>
<tr>
<td class="ColumnAttribute">{{form.given.label}}:</td>
<td class="ColumnValue" id="data">[Private]</td>
<td class="ColumnAttribute">{{form.call.label}}:</td>
<td class="ColumnValue" id="data">[Private]</td>
</tr>
</tr>
<td class="ColumnAttribute">{{form.title.label}}:</td>
<td class="ColumnValue" id="data">[Private]</td>
<td class="ColumnAttribute">{{form.suffix.label}}:</td>
<td class="ColumnValue" id="data">[Private]</td>
<tr>
<td class="ColumnAttribute">{{form.patronymic.label}}:</td>
<td class="ColumnValue" id="data">[Private]</td>
<td class="ColumnAttribute">{{form.name_type.label}}:</td>
<td class="ColumnValue" id="data">{{form.name_type}}</td>
</tr>
</tbody>
</table>
{% endif %}
</div> </div>
</div> </div>
<!-- Tabs --> <!-- Tabs -->
<h2 class="demoHeaders">Tabs</h2> <h2 class="demoHeaders">Tabs</h2>