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
2017-09-29 15:52:34 +01:00

69 lines
2 KiB
Text

% 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="row">
<div class="col col-md-6 mb-3">
<div class="card">
<h4 class="card-header">
User Info
</h4>
<ul class="list-group list-group-flush">
<li class="list-group-item justify-content-between">
<span>Email Address:</span>
<span><%= $feedback->user->email %></span>
</li>
<li class="list-group-item justify-content-between">
<span>Submitted At:</span>
<span><%= format_human_datetime $feedback->submitted_at %></span>
</li>
</ul>
</div>
</div>
<div class="col col-md-6 mb-3">
<div class="card">
<h4 class="card-header">
Feedback Message
</h4>
<div class="card-body">
<div class="card-text">
<pre><%= $feedback->feedbacktext %></pre>
</div>
</div>
</div>
</div>
<div class="col col-md-6 mb-3">
<div class="card">
<h4 class="card-header">
Debug Info
</h4>
<ul class="list-group list-group-flush">
<li class="list-group-item justify-content-between">
<span>App Name:</span>
<span><%= $feedback->app_name %></span>
</li>
<li class="list-group-item justify-content-between">
<span>Package Name:</span>
<span><%= $feedback->package_name %></span>
</li>
<li class="list-group-item justify-content-between">
<span>Version Code:</span>
<span><%= $feedback->version_code %></span>
</li>
<li class="list-group-item justify-content-between">
<span>Version Number:</span>
<span><%= $feedback->version_number %></span>
</li>
</ul>
</div>
</div>
</div>