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/feedback/index.html.ep

41 lines
1.2 KiB
Text
Raw Normal View History

% layout 'admin';
% title 'Feedback';
% 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>
% }
2017-09-28 15:39:03 +00:00
<div class="row">
% for my $feedback ( $feedback_rs->all ) {
<div class="col col-md-4 mb-3">
<div class="card">
2017-09-28 16:10:13 +00:00
<div class="card-header">
%= $feedback->user->email;
</div>
2017-09-28 15:39:03 +00:00
<div class="card-block">
<h6 class="card-title">
%= format_human_datetime $feedback->submitted_at;
</h6>
<pre class="card-text"><%= truncate_text $feedback->feedbacktext => 50; %></pre>
2017-09-28 16:10:13 +00:00
</div>
<div class="card-footer text-right">
2017-09-28 15:39:03 +00:00
<a href="<%= url_for . '/' . $feedback->id %>" class="card-link">
More info
</a>
</div>
</div>
2017-09-28 15:39:03 +00:00
</div>
% }
</div>
2017-09-28 15:39:03 +00:00
<div class="row">
<div class="col">
%= bootstrap_pagination( $c->param('page') || 1, $feedback_rs->pager->last_page, { class => 'justify-content-center' } );
</div>
</div>