service templates - move to blade -wip

This commit is contained in:
Anthony F McInerney
2020-10-16 17:10:07 +01:00
parent ad4b6ab543
commit 2df17699e4
3 changed files with 4 additions and 4 deletions
@@ -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
View File
@@ -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: '' }