From 99eead0695a0dfe61750466b3136083815584f18 Mon Sep 17 00:00:00 2001 From: Joost Kwakkel Date: Sat, 8 Jul 2017 18:08:19 +0200 Subject: [PATCH 1/2] Most inputs now remember their old values on a failed creation --- .../pterodactyl/admin/nodes/new.blade.php | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/resources/themes/pterodactyl/admin/nodes/new.blade.php b/resources/themes/pterodactyl/admin/nodes/new.blade.php index 98765bee0..36fb115a0 100644 --- a/resources/themes/pterodactyl/admin/nodes/new.blade.php +++ b/resources/themes/pterodactyl/admin/nodes/new.blade.php @@ -43,14 +43,18 @@
- +

Character limits: a-zA-Z0-9_.- and [Space] (min 1, max 100 characters).

@@ -58,6 +62,7 @@
+
@@ -70,7 +75,7 @@
- +

Please enter domain name (e.g node.example.com) to be used for connecting to the daemon. An IP address may be used only if you are not using SSL for this node.

@@ -119,14 +124,14 @@
- + MB
- + %
@@ -138,14 +143,14 @@
- + MB
- + %
From a1376db4fdb893edac323fd7bfc9624f655831f7 Mon Sep 17 00:00:00 2001 From: Joost Kwakkel Date: Sat, 8 Jul 2017 18:14:54 +0200 Subject: [PATCH 2/2] Redirect user to node allocation view after creation, closes #535 --- app/Http/Controllers/Admin/NodesController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Admin/NodesController.php b/app/Http/Controllers/Admin/NodesController.php index ca4836ea4..ce02febac 100644 --- a/app/Http/Controllers/Admin/NodesController.php +++ b/app/Http/Controllers/Admin/NodesController.php @@ -94,9 +94,9 @@ class NodesController extends Controller 'daemonBase', 'daemonSFTP', 'daemonListen', ]) )); - Alert::success('Successfully created new node that can be configured automatically on your remote machine by visiting the configuration tab. Before you can add any servers you need to first assign some IP addresses and ports.')->flash(); + Alert::success('Successfully created new node that can be configured automatically on your remote machine by visiting the configuration tab. Before you can add any servers you need to first assign some IP addresses and ports by adding an allocation.')->flash(); - return redirect()->route('admin.nodes.view', $node->id); + return redirect()->route('admin.nodes.view.allocation', $node->id); } catch (DisplayValidationException $e) { return redirect()->route('admin.nodes.new')->withErrors(json_decode($e->getMessage()))->withInput(); } catch (DisplayException $e) {