\n\n \n
\n\n \n
\n
\n
\n
\n \n
\n
\n \n
\n
0\">\n \n \n
\n
\n
\n\n
\n\n
\n
\n\n
\n\n
\n \n \n \n \n
\n
{{rulesErrorMessage}}
\n\n
\n\n
\n\n\n\n" + popoverButtons
});
$builderProvider.registerComponent('date', {
group: 'Basic',
@@ -26,7 +32,7 @@
disableWeekends: false,
readOnly: false,
template: "
\n
",
- popoverTemplate: "
"
+ popoverTemplate: "" + popoverCloseX + "\n
\n" + popoverButtons
});
$builderProvider.registerComponent('text', {
group: 'Basic',
@@ -52,7 +58,7 @@
}
],
template: "
\n
",
- popoverTemplate: "
"
+ popoverTemplate: "" + popoverCloseX + "\n
\n" + popoverButtons
});
$builderProvider.registerComponent('area', {
group: 'Basic',
@@ -62,7 +68,7 @@
required: false,
readOnly: false,
template: "
\n
",
- popoverTemplate: "
"
+ popoverTemplate: "" + popoverCloseX + "\n
\n" + popoverButtons
});
$builderProvider.registerComponent('checkbox', {
group: 'Choice',
@@ -74,7 +80,7 @@
arrayToText: true,
readOnly: false,
template: "
\n
",
- popoverTemplate: "
"
+ popoverTemplate: "" + popoverCloseX + "\n
\n" + popoverButtons
});
$builderProvider.registerComponent('radio', {
group: 'Choice',
@@ -85,7 +91,7 @@
readOnly: false,
options: ['value one', 'value two'],
template: "
\n
",
- popoverTemplate: "
"
+ popoverTemplate: "" + popoverCloseX + "\n
\n" + popoverButtons
});
return $builderProvider.registerComponent('select', {
group: 'Choice',
@@ -97,7 +103,7 @@
readOnly: false,
options: ['value one', 'value two'],
template: "
\n
",
- popoverTemplate: "
"
+ popoverTemplate: "" + popoverCloseX + "\n
\n" + popoverButtons
}, $builderProvider.registerComponent('address', {
group: 'Advanced',
label: 'Address Field',
@@ -106,7 +112,7 @@
readOnly: false,
options: [],
template: "
\n
",
- popoverTemplate: "
"
+ popoverTemplate: "" + popoverCloseX + "\n
\n" + popoverButtons
}, $builderProvider.registerComponent('signature', {
group: 'Advanced',
label: 'Signature Pad',
@@ -114,7 +120,7 @@
required: false,
readOnly: false,
template: "
\n
",
- popoverTemplate: "
"
+ popoverTemplate: "" + popoverCloseX + "\n
\n" + popoverButtons
})));
}
]);
diff --git a/dist/angular-form-builder.css b/dist/angular-form-builder.css
index 1e31c3b..57e6dea 100644
--- a/dist/angular-form-builder.css
+++ b/dist/angular-form-builder.css
@@ -1 +1 @@
-.fb-component{padding:10px;cursor:move}.fb-component input{cursor:move}.fb-component label{cursor:move}.fb-component select{cursor:move}.fb-component textarea{cursor:move}.fb-form-object-editable{padding:10px}.fb-form-object-editable.fb-draggable{cursor:move}.fb-form-object-editable.fb-draggable input{cursor:move}.fb-form-object-editable.fb-draggable label{cursor:pointer}.fb-form-object-editable.fb-draggable select{cursor:move}.fb-form-object-editable.fb-draggable textarea{cursor:move}.fb-form-object-editable.empty{cursor:default;margin:6px;height:80px;border:dashed 1px #aaa;background-color:#eee}.fb-draggable.dragging{background-color:#ffffff;position:absolute;z-index:800;-moz-box-shadow:#666 0 0 20px;-webkit-box-shadow:#666 0 0 20px;box-shadow:#666 0 0 20px}.fb-required:after{color:#b94a48;content:' *'}.fb-builder{min-height:250px}.popover{max-width:500px}.popover .control-label{text-align:left}.popover form{width:auto;max-width:500px}
+.fb-component{padding:10px;cursor:move}.fb-component input{cursor:move}.fb-component label{cursor:move}.fb-component select{cursor:move}.fb-component textarea{cursor:move}.fb-form-object-editable{padding:10px}.fb-form-object-editable.fb-draggable{cursor:move}.fb-form-object-editable.fb-draggable input{cursor:move}.fb-form-object-editable.fb-draggable label{cursor:pointer}.fb-form-object-editable.fb-draggable select{cursor:move}.fb-form-object-editable.fb-draggable textarea{cursor:move}.fb-form-object-editable.empty{cursor:default;margin:6px;height:80px;border:dashed 1px #aaa;background-color:#eee}.fb-draggable.dragging{background-color:#ffffff;position:absolute;z-index:800;-moz-box-shadow:#666 0 0 20px;-webkit-box-shadow:#666 0 0 20px;box-shadow:#666 0 0 20px}.fb-required:after{color:#b94a48;content:' *'}.fb-builder{min-height:250px}.popover{max-width:500px}.popover .control-label{text-align:left}.popover form{width:auto;max-width:500px}.popover .close{position:absolute;top:5px;right:10px}.popover .last{margin-bottom:5px}.popover .last hr{margin:10px 0}.popover .last button{margin-right:10px}.popover .tab-content{margin-top:10px;min-height:250px}
diff --git a/index.html b/index.html
index 398a5cb..4253528 100644
--- a/index.html
+++ b/index.html
@@ -4,7 +4,7 @@
angular-form-builder
-
+
@@ -12,13 +12,13 @@
-
-
-
+
+
+
-
-
+
+
diff --git a/src/angular-form-builder.scss b/src/angular-form-builder.scss
index 1b4c79d..fd023b4 100644
--- a/src/angular-form-builder.scss
+++ b/src/angular-form-builder.scss
@@ -47,6 +47,7 @@
.popover {
max-width: 500px;
+
.control-label {
text-align: left;
}
@@ -54,4 +55,23 @@
width: auto;
max-width: 500px;
}
+ .close {
+ position: absolute;
+ top: 5px;
+ right: 10px;
+ }
+ .last {
+ margin-bottom: 5px;
+
+ hr {
+ margin: 10px 0;
+ }
+ button {
+ margin-right: 10px;
+ }
+ }
+ .tab-content {
+ margin-top: 10px;
+ min-height: 250px;
+ }
}