Browse Source

styling

main
Holly McFarland 4 months ago
parent
commit
b2323e7761
4 changed files with 10 additions and 4 deletions
  1. +1
    -1
      app/Http/Controllers/RoomsController.php
  2. +5
    -1
      public/app/resources/css/app.css
  3. +3
    -1
      resources/views/parent.blade.php
  4. +1
    -1
      resources/views/rooms.blade.php

+ 1
- 1
app/Http/Controllers/RoomsController.php View File

@ -51,7 +51,7 @@ class RoomsController extends Controller
}
public function submit(Request $request) {
$validatedData = $request->validate([
$request->validate([
'number' => 'required|numeric',
'name' => 'required',
'max_occupancy' => 'required|numeric',


+ 5
- 1
public/app/resources/css/app.css View File

@ -37,6 +37,10 @@ ul.nav li a:hover {
background-color: pink;
}
#main-container {
width: 60%;
}
/* Source: http://cssmenumaker.com/blog/stylish-css-tables-tutorial */
/* Tables */
@ -44,7 +48,7 @@ ul.nav li a:hover {
table {
color: #333;
font-family: Helvetica, Arial, sans-serif;
width: 1024px;
width: 100%;
border-collapse:
collapse; border-spacing: 0;
}


+ 3
- 1
resources/views/parent.blade.php View File

@ -14,7 +14,9 @@
<li><a href="{{ route('about') }}" class="{{ $about }}">About</a></li>
</ul>
@yield('main-content')
<div id="main-container">
@yield('main-content')
</div>
<footer class="footer">
<p>Copyright 2021</p>


+ 1
- 1
resources/views/rooms.blade.php View File

@ -54,7 +54,7 @@
@foreach ($records as $record)
<tr>
<td><a href="{{ route('editrooms', ['id' => $record->id]) }}">Edit</a></td>
<td><a href="{{ route('deleteroom', ['id' => $record->id]) }}">Delete</a></td>
<td><a href="{{ route('deleteroom', ['id' => $record->id]) }}">Delete</a></td>
<td>{{ $record->number }}</td>
<td>{{ $record->name }}</td>
<td>{{ $record->description }}</td>


Loading…
Cancel
Save