diff --git a/app/Models/Node.php b/app/Models/Node.php index 000370b90..fce3b335e 100644 --- a/app/Models/Node.php +++ b/app/Models/Node.php @@ -63,6 +63,7 @@ class Node extends Model implements CleansAttributes, ValidableContract 'disk_overallocate', 'upload_size', 'daemonSecret', 'daemonBase', 'daemonSFTP', 'daemonListen', + 'description', ]; /** @@ -99,6 +100,7 @@ class Node extends Model implements CleansAttributes, ValidableContract */ protected static $dataIntegrityRules = [ 'name' => 'regex:/^([\w .-]{1,100})$/', + 'description' => 'string', 'location_id' => 'exists:locations,id', 'public' => 'boolean', 'fqdn' => 'string', @@ -226,4 +228,5 @@ class Node extends Model implements CleansAttributes, ValidableContract { return $this->hasMany(Allocation::class); } -} + +} \ No newline at end of file diff --git a/database/migrations/2018_03_15_124536_add_description_to_nodes.php b/database/migrations/2018_03_15_124536_add_description_to_nodes.php new file mode 100644 index 000000000..9b92e3c39 --- /dev/null +++ b/database/migrations/2018_03_15_124536_add_description_to_nodes.php @@ -0,0 +1,33 @@ +text('description')->after('name'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('nodes', function (Blueprint $table) { + $table->dropColumn('description'); + }); + } + +} \ No newline at end of file diff --git a/resources/themes/pterodactyl/admin/nodes/new.blade.php b/resources/themes/pterodactyl/admin/nodes/new.blade.php index f766800db..0064ed899 100644 --- a/resources/themes/pterodactyl/admin/nodes/new.blade.php +++ b/resources/themes/pterodactyl/admin/nodes/new.blade.php @@ -32,15 +32,15 @@

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

+
+ + +
@@ -177,4 +177,4 @@ -@endsection +@endsection \ No newline at end of file diff --git a/resources/themes/pterodactyl/admin/nodes/view/index.blade.php b/resources/themes/pterodactyl/admin/nodes/view/index.blade.php index 8dbaa8664..76a2ca627 100644 --- a/resources/themes/pterodactyl/admin/nodes/view/index.blade.php +++ b/resources/themes/pterodactyl/admin/nodes/view/index.blade.php @@ -58,6 +58,18 @@ + @if ($node->description) +
+
+
+ Description +
+
+
{{ $node->description }}
+
+
+
+ @endif
@@ -146,4 +158,4 @@ }); })(); -@endsection +@endsection \ No newline at end of file diff --git a/resources/themes/pterodactyl/admin/nodes/view/settings.blade.php b/resources/themes/pterodactyl/admin/nodes/view/settings.blade.php index d35a80c4e..919ad958b 100644 --- a/resources/themes/pterodactyl/admin/nodes/view/settings.blade.php +++ b/resources/themes/pterodactyl/admin/nodes/view/settings.blade.php @@ -48,6 +48,12 @@

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

+
+ +
+ +
+
@@ -71,8 +77,8 @@

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

+ Why? +

@@ -222,4 +228,4 @@ }); $('select[name="location_id"]').select2(); -@endsection +@endsection \ No newline at end of file