diff options
author | Frankie B <git@diskfloppy.me> | 2023-07-26 00:08:58 +0100 |
---|---|---|
committer | Frankie B <frankieraybrown@gmail.com> | 2023-07-29 18:10:50 +0100 |
commit | 8e81858470c2b09e22b383e14ee5439cfc4e6e53 (patch) | |
tree | 32d64a1709d301f5bfdb1eb12db436013135f76a /resources/views/pages/guestbook.blade.php | |
parent | 5a39e2a7962d88fb0fbad0c0dfdc54a1f6c2eddb (diff) |
Update
Diffstat (limited to 'resources/views/pages/guestbook.blade.php')
-rw-r--r-- | resources/views/pages/guestbook.blade.php | 112 |
1 files changed, 64 insertions, 48 deletions
diff --git a/resources/views/pages/guestbook.blade.php b/resources/views/pages/guestbook.blade.php index 4a6fdca..a0112c1 100644 --- a/resources/views/pages/guestbook.blade.php +++ b/resources/views/pages/guestbook.blade.php @@ -1,47 +1,58 @@ @extends('layouts.default') -@section('title', 'guestbook') +@section('title', 'Guestbook') @section('content') - <br/> - <form method="POST" action="/guestbook"> - @csrf - <x-honeypot /> - <table class="gb_entryform"> - <tr> - <td> - <label for="name">Name:</label> - </td> - <td> - <input name="name" type="text" id="name" placeholder="John Doe"> - </td> - <td> - <span class="text-danger">{{ $errors->first('name') }}</span> - </td> - </tr> - <tr> - <td> - <label for="message">Message:</label> - </td> - <td> - <textarea name="message" id="message" rows="3"></textarea> - </td> - <td> - <span class="text-danger">{{ $errors->first('message') }}</span> - </td> - </tr> - <tr> - <td colspan="2"> - <button type="submit">Submit</button> - </td> - </tr> - </table> - </form> - <p>A few things to note:</p> - <ul> - <li>You can submit an entry <u>once every hour</u>.</li> - <li>Your IP address <u>will</u> be logged but <u>will not</u> be publically displayed.</li> - <li>Any entries that appear to be spam <u>will</u> be removed.</li> - </ul> - <hr/> + <br> + <table class="gb_entryform_container"> + <tr> + <td> + <form method="POST" action="/guestbook"> + @csrf + <x-honeypot /> + <table class="gb_entryform"> + <tr> + <td> + <label for="name"><strong>Name:</strong></label> + </td> + <td> + <input name="name" type="text" id="name" placeholder="John Doe"> + </td> + <td> + <span class="text-danger">{{ $errors->first('name') }}</span> + </td> + </tr> + <tr> + <td> + <label for="message"><strong>Message:</strong></label> + </td> + <td> + <textarea name="message" id="message" rows="3"></textarea> + </td> + <td> + <span class="text-danger">{{ $errors->first('message') }}</span> + </td> + </tr> + <tr> + <td></td> + <td> + <button type="submit">Submit</button> + </td> + </tr> + </table> + </form> + </td> + <td> + <p>A few things to note:</p> + <ul> + <li>You can submit an entry <u>once every hour</u>.</li> + <li>Your IP address is logged but <u>not</u> publically displayed.</li> + <li>Any entries that appear to be spam <u>will</u> be removed.</li> + </ul> + </td> + </tr> + </table> + + + <hr> @php $entries = DB::select(' SELECT name, timestamp, message @@ -51,11 +62,16 @@ @endphp <h1>Entries <small>({{ count($entries) }} total)</small></h1> @foreach ($entries as $entry) - <table class="gb_entry"><tr><td> - Name: {{ $entry->name }}<br/> - Date: {{ gmdate("H:i:s - Y-m-d", $entry->timestamp) }}<br/><br/> - {{ $entry->message }} - </td></tr></table> + <table class="gb_entry"> + <tr> + <td> + Submitted by <strong>{{ $entry->name }}</strong> + on <strong>{{ gmdate('H:i:s - Y-m-d', $entry->timestamp) }}</strong> + <hr> + {{ $entry->message }} + </td> + </tr> + </table> + <br> @endforeach @stop - |