Added toggling of actioned on feedback, and view change for lists

This commit is contained in:
Tom Bloor 2017-10-23 16:09:20 +01:00
parent 0302a3d299
commit de90fe1f77
6 changed files with 50 additions and 5 deletions

View file

@ -30,6 +30,15 @@
<span>Submitted At:</span>
<span><%= format_human_datetime $feedback->submitted_at %></span>
</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>
</ul>
</div>
</div>