Feedback HTML views added and fixes made
This commit is contained in:
parent
baea01e8b5
commit
09f9cf9d48
6 changed files with 110 additions and 5 deletions
25
templates/admin/feedback/index.html.ep
Normal file
25
templates/admin/feedback/index.html.ep
Normal file
|
@ -0,0 +1,25 @@
|
|||
% 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>
|
||||
% }
|
||||
<div class="list-group">
|
||||
% for my $feedback (@$feedbacks) {
|
||||
<a href="<%= url_for . '/' . $feedback->id %>" class="list-group-item list-group-item-action">
|
||||
<div>
|
||||
%= $feedback->user->email
|
||||
</div>
|
||||
<div>
|
||||
%= $feedback->submitted_at
|
||||
</div>
|
||||
</a>
|
||||
% }
|
||||
</div>
|
Reference in a new issue