peliprint/resources/views/blueprint/admin/template.blade.php

79 lines
No EOL
4.4 KiB
PHP

@section("extension.header")
<img src="{{ $EXTENSION_ICON }}" alt="logo" style="float:left;width:30px;height:30px;border-radius:3px;margin-right:5px;"/>
<button class="btn btn-gray-alt pull-right" style="padding: 5px 10px; margin-left: 7px" data-toggle="modal" data-target="#extensionConfigModal">
<i class="bx bx-slider"></i>
</button>
@if($EXTENSION_WEBSITE != "[website]")
<a href="{{ $EXTENSION_WEBSITE }}" target="_blank">
<button class="btn btn-gray-alt pull-right" style="padding: 5px 10px">
<i class="{{ $EXTENSION_WEBICON }}"></i>
</button>
</a>
@endif
<h1 ext-title>{{ $EXTENSION_NAME }}<tag mg-left blue>{{ $EXTENSION_VERSION }}</tag></h1>
@endsection
@section("extension.description")
<p>{{ $EXTENSION_DESCRIPTION }}</p>
@endsection
@section("extension.config")
<div class="modal fade" id="extensionConfigModal" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content" style="background-color:transparent">
<form action="/admin/extensions/blueprint/config" method="POST" autocomplete="off">
<div class="modal-header" style="border-color:transparent; border-radius:7px; margin-bottom: 15px">
<button type="button" class="close" data-dismiss="modal" aria-label="Close" style="color:#fff;box-shadow:none"><span aria-hidden="true"><i class="bi bi-x"></i></span></button>
<h3 class="modal-title">
<img src="{{ $EXTENSION_ICON }}" alt="logo" height="34" width="34" class="pull-left" style="border-radius:3px;margin-right:10px"/>
Configure <b>{{ $EXTENSION_NAME }}</b>
</h3>
</div>
<div class="modal-body" style="border-color:transparent; border-radius:7px; margin-bottom: 15px">
<h4><b>Permissions</b></h4>
<p class="text-muted text-left">Configure what sections this extension can edit or can't extend on your Pterodactyl panel.</p><br>
<div class="row">
<div class="col-xs-6">
<label class="control-label">Admin layouts</label>
<select class="form-control" name="{{ $EXTENSION_ID }}_adminlayouts" style="border-radius:6px">
<option value="1" @if($blueprint->dbGet('blueprint', 'extensionconfig_'.$EXTENSION_ID.'_adminlayouts') != "0") selected @endif>Allowed</option>
<option value="0" @if($blueprint->dbGet('blueprint', 'extensionconfig_'.$EXTENSION_ID.'_adminlayouts') == "0") selected @endif>Blocked</option>
</select>
<?php echo($blueprint->dbGet('blueprint', 'extensionconfig_'.$EXTENSION_ID.'_adminlayouts')) ?>
<p class="text-muted small">Allow this extension to extend the admin panel layouts.</p>
</div>
<div class="col-xs-6">
<label class="control-label">Dashboard wrapper</label>
<select class="form-control" name="{{ $EXTENSION_ID }}_dashboardwrapper" style="border-radius:6px">
<option value="1" @if($blueprint->dbGet('blueprint', 'extensionconfig_'.$EXTENSION_ID.'_dashboardwrapper') != "0") selected @endif>Allowed</option>
<option value="0" @if($blueprint->dbGet('blueprint', 'extensionconfig_'.$EXTENSION_ID.'_dashboardwrapper') == "0") selected @endif>Blocked</option>
</select>
<?php echo($blueprint->dbGet('blueprint', 'extensionconfig_'.$EXTENSION_ID.'_dashboardwrapper')) ?>
<p class="text-muted small">Allow this extension to extend the dashboard's blade wrapper.</p>
</div>
</div>
</div>
<div class="modal-footer" style="border-color:transparent; border-radius:7px">
{{ csrf_field() }}
<input type="hidden" name="_identifier" value="{{ $EXTENSION_ID }}">
<input type="hidden" name="_method" value="PATCH">
<div class="row">
<div class="col-sm-10">
<p class="text-muted small text-left">This settings dialog was automatically generated by Blueprint. Unsaved changes will be lost when updating this extension's configuration.</p>
</div>
<div class="col-sm-2">
<button type="submit" class="btn btn-primary btn-sm" style="width:100%; margin-top:10px; margin-bottom:10px; border-radius:6px">Save</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
@endsection