Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/resources/views/admin/locations/index.blade.php
7461 views
1
@extends('layouts.admin')
2
3
@section('title')
4
Locations
5
@endsection
6
7
@section('content-header')
8
<h1>Locations<small>All locations that nodes can be assigned to for easier categorization.</small></h1>
9
<ol class="breadcrumb">
10
<li><a href="{{ route('admin.index') }}">Admin</a></li>
11
<li class="active">Locations</li>
12
</ol>
13
@endsection
14
15
@section('content')
16
<div class="row">
17
<div class="col-xs-12">
18
<div class="box box-primary">
19
<div class="box-header with-border">
20
<h3 class="box-title">Location List</h3>
21
<div class="box-tools">
22
<button class="btn btn-sm btn-primary" data-toggle="modal" data-target="#newLocationModal">Create New</button>
23
</div>
24
</div>
25
<div class="box-body table-responsive no-padding">
26
<table class="table table-hover">
27
<tbody>
28
<tr>
29
<th>ID</th>
30
<th>Short Code</th>
31
<th>Description</th>
32
<th class="text-center">Nodes</th>
33
<th class="text-center">Servers</th>
34
</tr>
35
@foreach ($locations as $location)
36
<tr>
37
<td><code>{{ $location->id }}</code></td>
38
<td><a href="{{ route('admin.locations.view', $location->id) }}">{{ $location->short }}</a></td>
39
<td>{{ $location->long }}</td>
40
<td class="text-center">{{ $location->nodes_count }}</td>
41
<td class="text-center">{{ $location->servers_count }}</td>
42
</tr>
43
@endforeach
44
</tbody>
45
</table>
46
</div>
47
</div>
48
</div>
49
</div>
50
<div class="modal fade" id="newLocationModal" tabindex="-1" role="dialog">
51
<div class="modal-dialog" role="document">
52
<div class="modal-content">
53
<form action="{{ route('admin.locations') }}" method="POST">
54
<div class="modal-header">
55
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
56
<h4 class="modal-title">Create Location</h4>
57
</div>
58
<div class="modal-body">
59
<div class="row">
60
<div class="col-md-12">
61
<label for="pShortModal" class="form-label">Short Code</label>
62
<input type="text" name="short" id="pShortModal" class="form-control" />
63
<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>
64
</div>
65
<div class="col-md-12">
66
<label for="pLongModal" class="form-label">Description</label>
67
<textarea name="long" id="pLongModal" class="form-control" rows="4"></textarea>
68
<p class="text-muted small">A longer description of this location. Must be less than 191 characters.</p>
69
</div>
70
</div>
71
</div>
72
<div class="modal-footer">
73
{!! csrf_field() !!}
74
<button type="button" class="btn btn-default btn-sm pull-left" data-dismiss="modal">Cancel</button>
75
<button type="submit" class="btn btn-success btn-sm">Create</button>
76
</div>
77
</form>
78
</div>
79
</div>
80
</div>
81
@endsection
82
83