From 75119611b961ab4ec8acfc4655630f72d5000bae Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Fri, 31 Mar 2017 21:46:40 -0400 Subject: [PATCH] Update API settings page to display checkboxes correctly. --- public/themes/pterodactyl/css/checkbox.css | 3 +- resources/lang/en/base.php | 4 + .../themes/pterodactyl/base/api/new.blade.php | 437 +++++++++--------- 3 files changed, 215 insertions(+), 229 deletions(-) diff --git a/public/themes/pterodactyl/css/checkbox.css b/public/themes/pterodactyl/css/checkbox.css index fd4a855ac..a75e63af6 100644 --- a/public/themes/pterodactyl/css/checkbox.css +++ b/public/themes/pterodactyl/css/checkbox.css @@ -37,6 +37,7 @@ width: 17px; height: 17px; left: 0; + top: 2.5px; margin-left: -20px; border: 1px solid #cccccc; border-radius: 3px; @@ -51,7 +52,7 @@ width: 16px; height: 16px; left: 0; - top: 0; + top: 2.5px; margin-left: -20px; padding-left: 3px; padding-top: 1px; diff --git a/resources/lang/en/base.php b/resources/lang/en/base.php index 52ad3f144..5d1a18cb2 100644 --- a/resources/lang/en/base.php +++ b/resources/lang/en/base.php @@ -109,6 +109,10 @@ return [ 'title' => 'Server Power', 'description' => 'Allows access to control server power status.', ], + 'command' => [ + 'title' => 'Send Command', + 'description' => 'Allows a user to send a command to a specified server.', + ], 'view' => [ 'title' => 'Show Single Server', 'description' => 'Allows viewing details about a specific server including the daemon_token as well as current process information.', diff --git a/resources/themes/pterodactyl/base/api/new.blade.php b/resources/themes/pterodactyl/base/api/new.blade.php index d2778b3c9..be972d67a 100644 --- a/resources/themes/pterodactyl/base/api/new.blade.php +++ b/resources/themes/pterodactyl/base/api/new.blade.php @@ -89,15 +89,14 @@
@lang('base.api.new.base.title')
-
- +
+
+ + +
+

@lang('base.api.new.base.information.description')

@@ -107,55 +106,50 @@
@lang('base.api.new.user_management.title')
-
- +
+
+ + +
+

@lang('base.api.new.user_management.list.description')

-
- +
+
+ + +
+

@lang('base.api.new.user_management.create.description')

-
- +
+
+ + +
+

@lang('base.api.new.user_management.view.description')

-
- +
+
+ + +
+

@lang('base.api.new.user_management.update.description')

-
- +
+
+ + +
+

@lang('base.api.new.user_management.delete.description')

@@ -164,55 +158,66 @@
@lang('base.api.new.node_management.title')
-
- +
+
+ + +
+

@lang('base.api.new.node_management.list.description')

-
- +
+
+ + +
+

@lang('base.api.new.node_management.create.description')

-
- +
+
+ + +
+

@lang('base.api.new.node_management.view.description')

-
- +
+
+ + +
+

@lang('base.api.new.node_management.allocations.description')

-
- +
+
+ + +
+

@lang('base.api.new.node_management.delete.description')

+
+
+
+
+
+
@lang('base.api.new.location_management.title')
+
+
+
+
+ + +
+

@lang('base.api.new.location_management.list.description')

@@ -224,107 +229,105 @@
@lang('base.api.new.server_management.title')
-
- +
+
+ + +
+

@lang('base.api.new.server_management.server.description')

-
- +
+
+ + +
+

@lang('base.api.new.server_management.power.description')

+
+
+
+ + +
+

@lang('base.api.new.server_management.command.description')

@if(Auth::user()->isRootAdmin()) -
- +
+
+ + +
+

@lang('base.api.new.server_management.view.description')

-
- +
+
+ + +
+

@lang('base.api.new.server_management.list.description')

-
- +
+
+ + +
+

@lang('base.api.new.server_management.create.description')

-
- +
+
+ + +
+

@lang('base.api.new.server_management.config.description')

-
- +
+
+ + +
+

@lang('base.api.new.server_management.build.description')

-
- +
+
+ + +
+

@lang('base.api.new.server_management.suspend.description')

-
- +
+
+ + +
+

@lang('base.api.new.server_management.unsuspend.description')

-
- +
+
+ + +
+

@lang('base.api.new.server_management.delete.description')

@endif
@@ -335,45 +338,23 @@
@lang('base.api.new.service_management.title')
-
- +
+
+ + +
+

@lang('base.api.new.service_management.list.description')

-
- -
-
-
-
-
-
@lang('base.api.new.location_management.title')
-
-
-
- +
+
+ + +
+

@lang('base.api.new.service_management.view.description')