mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
service templates - move to blade -wip
This commit is contained in:
@@ -131,8 +131,8 @@ class ServiceTemplateController extends Controller
|
||||
'ip' => 'string',
|
||||
'desc' => 'string',
|
||||
'changed' => 'integer',
|
||||
'disabled' => 'nullable|integer',
|
||||
'ignore' => 'nullable|integer',
|
||||
'disabled' => 'integer',
|
||||
'ignore' => 'integer',
|
||||
]);
|
||||
|
||||
$serviceTemplate->fill($request->only(['name', 'device_group_id', 'type', 'param', 'ip', 'desc', 'changed', 'ignore', 'disable']));
|
||||
|
||||
@@ -19,7 +19,7 @@ class CreateServicesTemplateTable extends Migration
|
||||
$table->string('type');
|
||||
$table->text('desc');
|
||||
$table->text('param');
|
||||
$table->boolean('ignore');
|
||||
$table->boolean('ignore')->default(0);
|
||||
$table->unsignedInteger('changed')->default(0);
|
||||
$table->boolean('disabled')->default(0);
|
||||
$table->string('name');
|
||||
|
||||
+1
-1
@@ -1734,7 +1734,7 @@ service_templates:
|
||||
- { Field: type, Type: varchar(255), 'Null': false, Extra: '' }
|
||||
- { Field: desc, Type: text, 'Null': false, Extra: '' }
|
||||
- { Field: param, Type: text, 'Null': false, Extra: '' }
|
||||
- { Field: ignore, Type: tinyint, 'Null': false, Extra: '' }
|
||||
- { Field: ignore, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
|
||||
- { Field: changed, Type: 'int unsigned', 'Null': false, Extra: '', Default: '0' }
|
||||
- { Field: disabled, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
|
||||
- { Field: name, Type: varchar(255), 'Null': false, Extra: '' }
|
||||
|
||||
Reference in New Issue
Block a user