This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
Foodloop-Server/templates/admin/organisations/list.html.ep
2017-04-24 12:49:18 +01:00

52 lines
1.4 KiB
Text

% layout 'admin';
% title 'Organisations';
% content_for javascript => begin
% end
% if ( my $error = flash 'error' ) {
<div class="alert alert-danger" role="alert">
<strong>Error!</strong> <%= $error %>
</div>
% } elsif ( my $success = flash 'success' ) {
<div class="alert alert-success" role="alert">
<strong>Success!</strong> <%= $success %>
</div>
% }
<div class="row">
<div class="col">
<div class="card">
<h3 class="card-header">
Valid Organisations
</h3>
<div class="list-group list-group-flush">
% for my $valid_org ($valid_orgs_rs->all) {
<a href="<%= url_for . '/valid/' . $valid_org->id %>" class="list-group-item list-group-item-action">
<div>
%= $valid_org->name
</div>
</a>
% }
</div>
</div>
</div>
<div class="col">
<div class="card">
<h3 class="card-header">
Pending Organisations
</h3>
<div class="list-group list-group-flush">
% if ( $pending_orgs_rs->count == 0 ) {
<div class="list-group-item">
No Pending Organisations!
</div>
% } else {
% for my $pending_org ($pending_orgs_rs->all) {
<a href="<%= url_for . '/pending/' . $pending_org->id %>" class="list-group-item list-group-item-action">
<div>
%= $pending_org->name
</div>
</a>
% }}
</div>
</div>
</div>
</div>