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

83 lines
2.6 KiB
Text
Raw Permalink 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 16:03:26 +00:00
<div class="row">
<div class="col-md-6 mb-3 col-sm-12">
2017-09-28 16:03:26 +00:00
<div class="card">
<h4 class="card-header">
User Info
</h4>
<ul class="list-group list-group-flush">
<li class="list-group-item d-flex justify-content-between">
<span>Feedback ID:</span>
<span><%= $feedback->id %></span>
</li>
<li class="list-group-item d-flex justify-content-between">
2017-09-28 16:03:26 +00:00
<span>Email Address:</span>
<span><%= $feedback->user->email %></span>
</li>
<li class="list-group-item d-flex justify-content-between">
2017-09-28 16:03:26 +00:00
<span>Submitted At:</span>
<span><%= format_human_datetime $feedback->submitted_at %></span>
2017-09-28 16:03:26 +00:00
</li>
<li class="list-group-item d-flex justify-content-between">
<span>Actioned:</span>
<span>
<%= $feedback->actioned ? 'Done' : 'Needs Action' %>
<a class="btn btn-sm btn-success" href="<%= url_for . '/actioned' %>">
Toggle
</a>
</span>
</li>
2017-09-28 16:03:26 +00:00
</ul>
</div>
</div>
<div class="col-md-6 mb-3 col-sm-12">
2017-09-28 16:03:26 +00:00
<div class="card">
<h4 class="card-header">
Feedback Message
</h4>
<div class="card-body">
<div class="card-text">
2017-10-23 14:02:18 +00:00
<pre class="feedback-text"><%= $feedback->feedbacktext %></pre>
</div>
2017-09-28 16:03:26 +00:00
</div>
</div>
</div>
<div class="col-md-6 mb-3 col-sm-12">
2017-09-28 16:03:26 +00:00
<div class="card">
<h4 class="card-header">
Debug Info
</h4>
<ul class="list-group list-group-flush">
<li class="list-group-item d-flex justify-content-between">
2017-09-28 16:03:26 +00:00
<span>App Name:</span>
<span><%= $feedback->app_name %></span>
</li>
<li class="list-group-item d-flex justify-content-between">
2017-09-28 16:03:26 +00:00
<span>Package Name:</span>
<span><%= $feedback->package_name %></span>
</li>
<li class="list-group-item d-flex justify-content-between">
2017-09-28 16:03:26 +00:00
<span>Version Code:</span>
<span><%= $feedback->version_code %></span>
</li>
<li class="list-group-item d-flex justify-content-between">
2017-09-28 16:03:26 +00:00
<span>Version Number:</span>
<span><%= $feedback->version_number %></span>
</li>
</ul>
</div>
</div>
2017-09-28 16:03:26 +00:00
</div>