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

42 lines
1.3 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">
<div class="card-header<%= $feedback->actioned ? '' : ' text-white bg-danger' %>">
<span class="font-bold"><%= $feedback->id %></span>
2017-09-28 16:10:13 +00:00
%= $feedback->user->email;
</div>
<div class="card-body">
2017-09-28 15:39:03 +00:00
<h6 class="card-title">
%= format_human_datetime $feedback->submitted_at;
</h6>
2017-10-23 14:02:18 +00:00
<pre class="card-text feedback-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>