v0.10.13a - Fixed feedback so date can be seen - Fixed about page

This commit is contained in:
Anders 2020-08-24 09:55:20 +02:00
parent 7719b4b77b
commit 0655611a77
2 changed files with 7 additions and 5 deletions

View File

@ -133,8 +133,9 @@ class FeedbackController extends Controller
public function search(Request $request){ public function search(Request $request){
if($request->ajax()){ if($request->ajax()){
$output = "<tr>". $output = "<tr>".
"<th style='width: 6em;'>Dato</th>".
"<th>Feedback Besked</th>". "<th>Feedback Besked</th>".
"<th>Ris el. Ros</th>". "<th style='width: 5em;'>Ris el. Ros</th>".
"<th style=\"width: 1em;\"><img class=\"w-100\" src=\"http://127.0.0.1:8000/images/icons/trashcan.svg\" alt=\"Delete\"></th>". "<th style=\"width: 1em;\"><img class=\"w-100\" src=\"http://127.0.0.1:8000/images/icons/trashcan.svg\" alt=\"Delete\"></th>".
"</tr>"; "</tr>";
@ -149,6 +150,7 @@ class FeedbackController extends Controller
if(count($feedbacks) !== 0){ if(count($feedbacks) !== 0){
foreach ($feedbacks as $key => $feedback){ foreach ($feedbacks as $key => $feedback){
$output.='<tr>'. $output.='<tr>'.
'<td>' . date('d-m-Y', strtotime($feedback->created_at)) . '</td>'.
'<td>' . $feedback->message . '</td>'. '<td>' . $feedback->message . '</td>'.
'<td>' . $feedback->suggestion_form . '</td>'. '<td>' . $feedback->suggestion_form . '</td>'.
'<td><form method="post" action="' .route("feedbacks.destroy", [ "feedback" => $feedback ]). '" class="w-100 nostyle">'. '<td><form method="post" action="' .route("feedbacks.destroy", [ "feedback" => $feedback ]). '" class="w-100 nostyle">'.

View File

@ -12,9 +12,9 @@
<p>Denne app er udviklet til Odense erhvervskollegie.</p> <p>Denne app er udviklet til Odense erhvervskollegie.</p>
<h4 class="mb-1 mt-1">{{__("msg.programmedby")}}:</h4> <h4 class="mb-1 mt-1">{{__("msg.programmedby")}}:</h4>
<span style="margin-bottom: 0.2rem;"><span style="float: left;">Anders Rasmussen,</span><span style="float: right;">anders164a@gmail.com</span></span> <span style="margin-bottom: 0.2rem;"><span style="float: left;">Anders Rasmussen,</span><span style="float: right;">anders164a@gmail.com</span></span>
<span style="margin-bottom: 0.2rem;">Frederik Milling Pytlick, frederikpyt@gmail.com</span> <span style="margin-bottom: 0.2rem;">Frederik Milling Pytlick,<span style="float: right;">frederikpyt@gmail.com</span></span>
<span style="margin-bottom: 0.2rem;">Vedran Zelen, vedr0021@gmail.com</span> <span style="margin-bottom: 0.2rem;">Vedran Zelen,<span style="float: right;">vedr0021@gmail.com</span></span>
<span style="margin-bottom: 0.2rem;">Victor Neerholt, victorneerholt@gmail.com</span> <span style="margin-bottom: 0.2rem;">Victor Neerholt,<span style="float: right;">victorneerholt@gmail.com</span></span>
<span style="margin-bottom: 0.2rem;">Sebastian Davaris, seba4928@edu.sde.dk</span> <span style="margin-bottom: 0.2rem;">Sebastian Davaris,<span style="float: right;">seba4928@edu.sde.dk</span></span>
</main> </main>
@endsection @endsection