2024-03-16 08:54:13 -04:00
@ section ( " extension.header " )
2024-03-16 09:42:29 -04:00
< img src = " { { $EXTENSION_ICON }} " alt = " logo " style = " float:left;width:30px;height:30px;border-radius:3px;margin-right:5px; " />
2024-03-16 08:54:13 -04:00
< 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 " >
2024-03-19 10:43:08 -04:00
< div class = " modal-dialog " role = " document " >
2024-03-19 11:07:10 -04:00
< div class = " modal-content " style = " background-color:transparent " >
2024-03-19 10:43:08 -04:00
< form action = " /admin/extensions/blueprint/config " method = " POST " autocomplete = " off " >
2024-03-19 11:07:10 -04:00
< div class = " modal-header " style = " border-color:transparent; border-radius:7px; margin-bottom: 15px " >
2024-03-19 10:43:08 -04:00
< 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 >
2024-03-16 08:54:13 -04:00
</ div >
2024-03-19 11:07:10 -04:00
< div class = " modal-body " style = " border-color:transparent; border-radius:7px; margin-bottom: 15px " >
< h4 >< b > Permissions </ b ></ h4 >
2024-03-19 15:04:01 -04:00
< p class = " text-muted text-left " > Configure what elements this extension can or can ' t edit / extend on your Pterodactyl panel .</ p >< br >
2024-03-19 11:07:10 -04:00
< div class = " row " >
< div class = " col-xs-6 " >
< label class = " control-label " > Admin layouts </ label >
2024-03-19 12:34:45 -04:00
< 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 >
2024-03-19 11:07:10 -04:00
</ select >
< 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 >
2024-03-19 12:34:45 -04:00
< 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 >
2024-03-19 11:07:10 -04:00
</ select >
< p class = " text-muted small " > Allow this extension to extend the dashboard ' s blade wrapper .</ p >
</ div >
</ div >
2024-04-08 07:17:29 -04:00
< div class = " row " >
< div class = " col-xs-12 " >
< label class = " control-label " > Route eggs </ label >
< select multiple class = " pOptions form-control " name = " { { $EXTENSION_ID }}_eggs[] " >
< option value = " -1 " @ if ( in_array ( '-1' , json_decode ( $blueprint -> dbGet ( 'blueprint' , 'extensionconfig_' . $EXTENSION_ID . '_eggs' ) ? : '["-1"]' ))) selected @ endif > Show on all eggs </ option >
@ foreach ( $eggs as $egg )
< option value = " { { $egg->id }} " @ if ( in_array ( strval ( $egg -> id ), json_decode ( $blueprint -> dbGet ( 'blueprint' , 'extensionconfig_' . $EXTENSION_ID . '_eggs' ) ? : '["-1"]' ))) selected @ endif > {{ $egg -> name }} </ option >
@ endforeach
</ select >
2024-04-09 14:54:23 -04:00
< p class = " text-muted small " > Choose on which Pterodactyl eggs this extension should be able to add new pages on .</ p >
2024-04-08 07:17:29 -04:00
</ div >
</ div >
2024-03-16 08:54:13 -04:00
</ div >
2024-03-19 11:07:10 -04:00
< div class = " modal-footer " style = " border-color:transparent; border-radius:7px " >
2024-03-19 10:10:30 -04:00
{{ csrf_field () }}
2024-03-16 08:54:13 -04:00
< input type = " hidden " name = " _identifier " value = " { { $EXTENSION_ID }} " >
< input type = " hidden " name = " _method " value = " PATCH " >
2024-03-19 10:43:08 -04:00
< 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 " >
2024-03-19 12:34:45 -04:00
< button type = " submit " class = " btn btn-primary btn-sm " style = " width:100%; margin-top:10px; margin-bottom:10px; border-radius:6px " > Save </ button >
2024-03-19 10:43:08 -04:00
</ div >
</ div >
2024-03-16 08:54:13 -04:00
</ div >
2024-03-19 10:43:08 -04:00
</ form >
2024-03-16 08:54:13 -04:00
</ div >
2024-03-19 10:43:08 -04:00
</ div >
2024-03-16 08:54:13 -04:00
</ div >
2024-04-08 07:17:29 -04:00
@ endsection
@ section ( 'footer-scripts' )
@ parent
< script >
$ ( '.pOptions' ) . select2 ();
</ script >
< style >
. select2 - selection {
border - radius : 6 px ! important ;
}
. select2 - container -- open . select2 - selection {
border - bottom - left - radius : 0 px ! important ;
border - bottom - right - radius : 0 px ! important ;
}
</ style >
@ endsection