diff --git a/Gruntfile.js b/Gruntfile.js
index 679fc20..86006a9 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -54,6 +54,7 @@ module.exports = function(grunt) {
src: [
'app/controllers/controller.js',
'app/controllers/config.controller.js',
+ 'app/controllers/config.dialog.controller.js',
'app/directives/archetypeproperty.js',
'app/directives/archetypesubmitwatcher.js',
'app/directives/archetypecustomview.js',
@@ -73,7 +74,7 @@ module.exports = function(grunt) {
copy: {
html: {
cwd: 'app/views/',
- src: ['archetype.html', 'archetype.default.html', 'archetype.config.html'],
+ src: ['archetype.html', 'archetype.default.html', 'archetype.config.html', 'archetype.config.fieldset.dialog.html', 'archetype.config.stylescript.dialog.html', 'archetype.config.developer.dialog.html'],
dest: '<%= basePath %>/views',
expand: true
},
diff --git a/app/controllers/config.controller.js b/app/controllers/config.controller.js
index 00d5826..24af51e 100644
--- a/app/controllers/config.controller.js
+++ b/app/controllers/config.controller.js
@@ -309,6 +309,19 @@ angular.module("umbraco").controller("Imulus.ArchetypeConfigController", functio
$scope.model.value.fieldsets = fieldsets;
}
+ $scope.showOptions = function ($event, template) {
+ $event.preventDefault();
+
+ dialogService.open({
+ template: template,
+ show: true,
+ callback: function(data) {
+ $scope.archetypeConfigRenderModel = data;
+ },
+ dialogData: $scope.archetypeConfigRenderModel
+ });
+ }
+
//archetype css
assetsService.loadCss("../App_Plugins/Archetype/css/archetype.css");
});
diff --git a/app/controllers/config.dialog.controller.js b/app/controllers/config.dialog.controller.js
new file mode 100644
index 0000000..cf3009d
--- /dev/null
+++ b/app/controllers/config.dialog.controller.js
@@ -0,0 +1,3 @@
+angular.module('umbraco').controller('ArchetypeConfigOptionsController', function ($scope) {
+ $scope.model = $scope.dialogData;
+});
\ No newline at end of file
diff --git a/app/less/archetype.less b/app/less/archetype.less
index 0835a78..c04ba9f 100644
--- a/app/less/archetype.less
+++ b/app/less/archetype.less
@@ -387,16 +387,24 @@
}
.archetypeAdvancedOptions {
- margin-top: 15px;
- div {
- margin-bottom: 10px;
- }
label {
- width: 400px;
+ width: 100%;
}
+
+ input[type=checkbox] {
+ margin-top: 0;
+ margin-right: 2px;
+ }
+
+ small {
+ color: #b3b3b3;
+ }
+
+
.archetypeFieldsetGroups {
padding: 0 10px;
margin-bottom: 20px;
+
ul {
padding: 0;
margin: 0;
@@ -447,3 +455,7 @@
visibility: visible !important;
background-color: #d0e7f1 !important;
}
+
+.archetype-dialog {
+ margin: 10px;
+}
\ No newline at end of file
diff --git a/app/views/archetype.config.developer.dialog.html b/app/views/archetype.config.developer.dialog.html
new file mode 100644
index 0000000..b5623fd
--- /dev/null
+++ b/app/views/archetype.config.developer.dialog.html
@@ -0,0 +1,21 @@
+
+
+
+
Enable Deep Datatype Requests? Allows for easier datatype interception at the cost of caching performance.
+
+
+
+
Enable Developer Mode? Toggle Developer Mode
+
+
+
+
Override Default Property Value Converter? Check this if you wish to use your own custom property value converter.
+
+
+
+
+
Config Model Be careful editing the text below, it controls the schema for this archetype.
+
+
+
+
\ No newline at end of file
diff --git a/app/views/archetype.config.fieldset.dialog.html b/app/views/archetype.config.fieldset.dialog.html
new file mode 100644
index 0000000..3ceca39
--- /dev/null
+++ b/app/views/archetype.config.fieldset.dialog.html
@@ -0,0 +1,51 @@
+
+
+
+
+
+
+
+
Max Fieldsets How many Fieldsets are allowed? Entering '1' will disable the controls. Default is unlimited.
+
+
+
+
+
+
+
+
+
+
+
Fieldset groups
+
If you have a lot of fieldsets to choose from, you may want to consider grouping them in the fieldset picker. Once you have created your groups here, a group picker will be displayed in the fieldset editor and you can assign your fieldsets to their respective groups.
+
+ Add group
+
+
+
+
\ No newline at end of file
diff --git a/app/views/archetype.config.html b/app/views/archetype.config.html
index fb5f05b..8ff552f 100644
--- a/app/views/archetype.config.html
+++ b/app/views/archetype.config.html
@@ -83,95 +83,9 @@
-
Toggle Advanced Options Show advanced options.
-
-
-
-
-
-
-
Fieldset groups
-
If you have a lot of fieldsets to choose from, you may want to consider grouping them in the fieldset picker. Once you have created your groups here, a group picker will be displayed in the fieldset editor and you can assign your fieldsets to their respective groups.
-
-
Add group
-
-
-
-
Start With Add Button? Empty property shows an add button instead of providing a default fieldset.
-
-
-
-
Hide Fieldset Controls? Hides the fieldset add/remove/sort controls.
-
-
-
-
Hide Property Labels? Hides the property labels.
-
-
-
-
Max Fieldsets How many Fieldsets are allowed? Entering '1' will disable the controls. Default is unlimited.
-
-
-
-
Enable Multiple Fieldsets? Allows multiple types of fieldsets within this archetype.
-
-
-
-
Enable Collapsing? Enable fieldset collapsing.
-
-
-
-
Enable Cloning? Enable fieldset cloning.
-
-
-
-
Enable Fieldset Disabling? Allows fieldsets to be individually enabled/disabled.
-
-
-
-
Hide Fieldset Toolbar? Hides the fieldset toolbar that appears when more than one fieldset model appears.
-
-
-
-
Custom Wrapper Class (Optional) Enter a custom CSS class that will be applied to the wrapper div.
-
-
-
-
CSS File (Optional) Enter a path for a custom CSS file to be included on the page.
-
-
-
-
JS File (Optional) Enter a path for a custom JS file to be included on the page.
-
-
-
-
View File (Optional) Enter a path for a custom view file to be used to render this Archetype.
-
-
-
-
Enable Deep Datatype Requests? Allows for easier datatype interception at the cost of caching performance.
-
-
-
-
Enable Developer Mode? Toggle Developer Mode
-
-
-
-
Override Default Property Value Converter? Check this if you wish to use your own custom property value converter.
-
-
-
-
Config Model Be careful editing the text below, it controls the schema for this archetype.
-
+
Fieldset Options
+
Custom Style/Script Options
+
Developer Options
diff --git a/app/views/archetype.config.stylescript.dialog.html b/app/views/archetype.config.stylescript.dialog.html
new file mode 100644
index 0000000..481a1f7
--- /dev/null
+++ b/app/views/archetype.config.stylescript.dialog.html
@@ -0,0 +1,20 @@
+
+
+
+
Custom Wrapper Class (Optional) Enter a custom CSS class that will be applied to the wrapper div.
+
+
+
+
CSS File (Optional) Enter a path for a custom CSS file to be included on the page.
+
+
+
+
JS File (Optional) Enter a path for a custom JS file to be included on the page.
+
+
+
+
View File (Optional) Enter a path for a custom view file to be used to render this Archetype.
+
+
+
+
\ No newline at end of file