|
3 | 3 |
|
4 | 4 | {{-- This software is licensed under the terms of the MIT license. --}} |
5 | 5 | {{-- https://opensource.org/licenses/MIT --}} |
| 6 | + |
6 | 7 | @extends('layouts.admin') |
7 | 8 |
|
8 | 9 | @section('title') |
|
25 | 26 | <h3 class="box-title">Mount List</h3> |
26 | 27 |
|
27 | 28 | <div class="box-tools"> |
28 | | - <button class="btn btn-sm btn-primary" data-toggle="modal" data-target="#newLocationModal">Create New</button> |
| 29 | + <button class="btn btn-sm btn-primary" data-toggle="modal" data-target="#newMountModal">Create New</button> |
29 | 30 | </div> |
30 | 31 | </div> |
31 | 32 |
|
|
34 | 35 | <tbody> |
35 | 36 | <tr> |
36 | 37 | <th>ID</th> |
37 | | - <th>Short Code</th> |
38 | | - <th>Description</th> |
| 38 | + <th>Name</th> |
| 39 | + <th>Source</th> |
| 40 | + <th>Target</th> |
| 41 | + <th class="text-center">Eggs</th> |
39 | 42 | <th class="text-center">Nodes</th> |
40 | 43 | <th class="text-center">Servers</th> |
41 | 44 | </tr> |
42 | 45 |
|
43 | | - @foreach ($locations as $location) |
| 46 | + @foreach ($mounts as $mount) |
44 | 47 | <tr> |
45 | | - <td><code>{{ $location->id }}</code></td> |
46 | | - <td><a href="{{ route('admin.locations.view', $location->id) }}">{{ $location->short }}</a></td> |
47 | | - <td>{{ $location->long }}</td> |
48 | | - <td class="text-center">{{ $location->nodes_count }}</td> |
49 | | - <td class="text-center">{{ $location->servers_count }}</td> |
| 48 | + <td><code>{{ $mount->id }}</code></td> |
| 49 | + <td><a href="{{ route('admin.locations.view', $mount->id) }}">{{ $mount->name }}</a></td> |
| 50 | + <td>{{ $mount->source }}</td> |
| 51 | + <td>{{ $mount->target }}</td> |
| 52 | + <td class="text-center">{{ $mount->eggs_count }}</td> |
| 53 | + <td class="text-center">{{ $mount->nodes_count }}</td> |
| 54 | + <td class="text-center">{{ $mount->servers_count }}</td> |
50 | 55 | </tr> |
51 | 56 | @endforeach |
52 | 57 | </tbody> |
|
56 | 61 | </div> |
57 | 62 | </div> |
58 | 63 |
|
59 | | - <div class="modal fade" id="newLocationModal" tabindex="-1" role="dialog"> |
| 64 | + <div class="modal fade" id="newMountModal" tabindex="-1" role="dialog"> |
60 | 65 | <div class="modal-dialog" role="document"> |
61 | 66 | <div class="modal-content"> |
62 | | - <form action="{{ route('admin.locations') }}" method="POST"> |
| 67 | + <form action="{{ route('admin.mounts') }}" method="POST"> |
63 | 68 | <div class="modal-header"> |
64 | | - <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> |
65 | | - <h4 class="modal-title">Create Location</h4> |
| 69 | + <button type="button" class="close" data-dismiss="modal" aria-label="Close"> |
| 70 | + <span aria-hidden="true" style="color: #FFFFFF">×</span> |
| 71 | + </button> |
| 72 | + |
| 73 | + <h4 class="modal-title">Create Mount</h4> |
66 | 74 | </div> |
67 | 75 |
|
68 | 76 | <div class="modal-body"> |
69 | 77 | <div class="row"> |
70 | 78 | <div class="col-md-12"> |
71 | | - <label for="pShortModal" class="form-label">Short Code</label> |
72 | | - <input type="text" name="short" id="pShortModal" class="form-control" /> |
73 | | - <p class="text-muted small">A short identifier used to distinguish this location from others. Must be between 1 and 60 characters, for example, <code>us.nyc.lvl3</code>.</p> |
| 79 | + <label for="pName" class="form-label">Name</label> |
| 80 | + <input type="text" id="pName" name="name" class="form-control" /> |
| 81 | + <p class="text-muted small">Thiccc boi name used to separate this mount from another!</p> |
74 | 82 | </div> |
75 | 83 |
|
76 | 84 | <div class="col-md-12"> |
77 | | - <label for="pLongModal" class="form-label">Description</label> |
78 | | - <textarea name="long" id="pLongModal" class="form-control" rows="4"></textarea> |
79 | | - <p class="text-muted small">A longer description of this location. Must be less than 255 characters.</p> |
| 85 | + <label for="pDescription" class="form-label">Description</label> |
| 86 | + <textarea id="pDescription" name="description" class="form-control" rows="4"></textarea> |
| 87 | + <p class="text-muted small">A longer description of this mount. Must be less than 255 characters.</p> |
80 | 88 | </div> |
81 | 89 | </div> |
82 | 90 | </div> |
|
0 commit comments