Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/resources/views/admin/api/new.blade.php
7460 views
1
@extends('layouts.admin')
2
3
@section('title')
4
Application API
5
@endsection
6
7
@section('content-header')
8
<h1>Application API<small>Create a new application API key.</small></h1>
9
<ol class="breadcrumb">
10
<li><a href="{{ route('admin.index') }}">Admin</a></li>
11
<li><a href="{{ route('admin.api.index') }}">Application API</a></li>
12
<li class="active">New Credentials</li>
13
</ol>
14
@endsection
15
16
@section('content')
17
<div class="row">
18
<form method="POST" action="{{ route('admin.api.new') }}">
19
<div class="col-sm-8 col-xs-12">
20
<div class="box box-primary">
21
<div class="box-header with-border">
22
<h3 class="box-title">Select Permissions</h3>
23
</div>
24
<div class="box-body table-responsive no-padding">
25
<table class="table table-hover">
26
@foreach($resources as $resource)
27
<tr>
28
<td class="col-sm-3 strong">{{ str_replace('_', ' ', title_case($resource)) }}</td>
29
<td class="col-sm-3 radio radio-primary text-center">
30
<input type="radio" id="r_{{ $resource }}" name="r_{{ $resource }}" value="{{ $permissions['r'] }}">
31
<label for="r_{{ $resource }}">Read</label>
32
</td>
33
<td class="col-sm-3 radio radio-primary text-center">
34
<input type="radio" id="rw_{{ $resource }}" name="r_{{ $resource }}" value="{{ $permissions['rw'] }}">
35
<label for="rw_{{ $resource }}">Read &amp; Write</label>
36
</td>
37
<td class="col-sm-3 radio text-center">
38
<input type="radio" id="n_{{ $resource }}" name="r_{{ $resource }}" value="{{ $permissions['n'] }}" checked>
39
<label for="n_{{ $resource }}">None</label>
40
</td>
41
</tr>
42
@endforeach
43
</table>
44
</div>
45
</div>
46
</div>
47
<div class="col-sm-4 col-xs-12">
48
<div class="box box-primary">
49
<div class="box-body">
50
<div class="form-group">
51
<label class="control-label" for="memoField">Description <span class="field-required"></span></label>
52
<input id="memoField" type="text" name="memo" class="form-control">
53
</div>
54
<p class="text-muted">Once you have assigned permissions and created this set of credentials you will be unable to come back and edit it. If you need to make changes down the road you will need to create a new set of credentials.</p>
55
</div>
56
<div class="box-footer">
57
{{ csrf_field() }}
58
<button type="submit" class="btn btn-success btn-sm pull-right">Create Credentials</button>
59
</div>
60
</div>
61
</div>
62
</form>
63
</div>
64
@endsection
65
66
@section('footer-scripts')
67
@parent
68
<script>
69
</script>
70
@endsection
71
72