add admin_template ServiceControllerResource
diff --git a/xos/core/models/service.py b/xos/core/models/service.py
index dc8e5ae..9f7c8e6 100644
--- a/xos/core/models/service.py
+++ b/xos/core/models/service.py
@@ -83,6 +83,7 @@
class ServiceControllerResource(PlCoreBase):
KIND_CHOICES = (('models', 'Models'),
('admin', 'Admin'),
+ ('admin_template', 'Admin Template'),
('django_library', 'Django Library'),
('synchronizer', 'Synchronizer'),
('rest_service', 'REST API (service)'),
diff --git a/xos/onboard/volt/volt-onboard.yaml b/xos/onboard/volt/volt-onboard.yaml
index cd991f6..2393cd8 100644
--- a/xos/onboard/volt/volt-onboard.yaml
+++ b/xos/onboard/volt/volt-onboard.yaml
@@ -15,6 +15,7 @@
# base_url is non-null.
models: models.py
admin: admin.py
+ admin_template: templates/voltadmin.html
synchronizer: synchronizer/manifest
#tosca_custom_types: exampleservice.yaml
tosca_resource: tosca/resources/voltdevice.py, tosca/resources/voltservice.py, tosca/resources/CORDSubscriber.py, tosca/resources/CORDUser.py, tosca/resources/VOLTTenant.py
diff --git a/xos/onboard/vsg/vsg-onboard.yaml b/xos/onboard/vsg/vsg-onboard.yaml
index b49914e..cac45bf 100644
--- a/xos/onboard/vsg/vsg-onboard.yaml
+++ b/xos/onboard/vsg/vsg-onboard.yaml
@@ -15,6 +15,7 @@
# base_url is non-null.
models: models.py
admin: admin.py
+ admin_template: templates/vcpeadmin.html
synchronizer: synchronizer/manifest
#tosca_custom_types: exampleservice.yaml
tosca_resource: tosca/resources/vcpeservice.py
diff --git a/xos/synchronizers/onboarding/xosbuilder.py b/xos/synchronizers/onboarding/xosbuilder.py
index 4fa05f2..56019ce 100644
--- a/xos/synchronizers/onboarding/xosbuilder.py
+++ b/xos/synchronizers/onboarding/xosbuilder.py
@@ -30,6 +30,7 @@
service_name = scr.service_controller.name
base_dirs = {"models": "%s/services/%s/" % (xos_base, service_name),
"admin": "%s/services/%s/" % (xos_base, service_name),
+ "admin_template": "%s/services/%s/templates/" % (xos_base, service_name),
"django_library": "%s/services/%s/" % (xos_base, service_name),
"synchronizer": "%s/synchronizers/%s/" % (xos_base, service_name),
"tosca_custom_types": "%s/tosca/custom_types/" % (xos_base),
diff --git a/xos/tosca/custom_types/xos.m4 b/xos/tosca/custom_types/xos.m4
index 9e6cb41..20b7381 100644
--- a/xos/tosca/custom_types/xos.m4
+++ b/xos/tosca/custom_types/xos.m4
@@ -72,6 +72,10 @@
type: string
required: false
description: url of admin.py
+ admin_template:
+ type: string
+ required: false
+ description: url of admin html template
synchronizer:
type: string
required: false
diff --git a/xos/tosca/custom_types/xos.yaml b/xos/tosca/custom_types/xos.yaml
index 0888c53..cc541ae 100644
--- a/xos/tosca/custom_types/xos.yaml
+++ b/xos/tosca/custom_types/xos.yaml
@@ -180,6 +180,10 @@
type: string
required: false
description: url of admin.py
+ admin_template:
+ type: string
+ required: false
+ description: url of admin html template
synchronizer:
type: string
required: false