If there are no existing cities in Administration -> Cities and Towns,
the message saying so should be in the standard message dialog.
Another minor change: Edit the message to say "There are no cities
defined," which I think reads better in English.
To test you must have no cities and towns defined.
Apply this patch and go to Administration -> Cities and Towns. You
should see a message displayed in a standard "message" style dialog.
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Better view, no errors
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
Searching: [% searchfield %]
[% END %]
- [% IF cities %]
+ [% IF cities.count %]
<table id="table_cities">
<thead>
<th>City ID</th>
</tbody>
</table>
[% ELSE %]
- There is no city defined. <a href="/cgi-bin/koha/admin/cities.pl?op=add_form">Create a new city</a>.
+ <div class="dialog message">
+ There are no cities defined. <a href="/cgi-bin/koha/admin/cities.pl?op=add_form">Create a new city</a>.
+ </div>
[% END %]
[% END %]