+++ /dev/null
-[% USE HTML %][% USE T8 %][% USE L %][% USE LxERP %]
-<h1>[% FORM.title %]</h1>
-
-[%- INCLUDE 'common/flash.html' %]
-
- <form method="post" action="controller.pl">
- [% IF !DEPARTMENTS.size %]
- <p>
- [%- 'No department has been created yet.' | $T8 %]
- </p>
-
- [%- ELSE %]
- <table id="department_list" width="100%">
- <thead>
- <tr class="listheading">
- <th width="100%">[%- 'Description' | $T8 %]</th>
- </tr>
- </thead>
-
- <tbody>
- [%- FOREACH department = DEPARTMENTS %]
- <tr class="listrow[% loop.count % 2 %]" id="department_id_[% department.id %]">
- <td>
- <a href="[% SELF.url_for(action => 'edit', id => department.id) %]">
- [%- HTML.escape(department.description) %]
- </a>
- </td>
- </tr>
- [%- END %]
- </tbody>
- </table>
- [%- END %]
-
- <hr size="3" noshade>
-
- <p>
- <a href="[% SELF.url_for(action => 'new') %]">[%- 'Create new department' | $T8 %]</a>
- </p>
- </form>