diff --git a/hserver/api/fileobject.py b/hserver/api/FileObject.py
similarity index 100%
rename from hserver/api/fileobject.py
rename to hserver/api/FileObject.py
diff --git a/hserver/api/simpleobject.py b/hserver/api/SimpleObject.py
similarity index 100%
rename from hserver/api/simpleobject.py
rename to hserver/api/SimpleObject.py
diff --git a/hserver/api/webobject.py b/hserver/api/WebObject.py
similarity index 100%
rename from hserver/api/webobject.py
rename to hserver/api/WebObject.py
diff --git a/hserver/manage/api.js b/hserver/manage/api.js
index 1b07484..ad5efba 100644
--- a/hserver/manage/api.js
+++ b/hserver/manage/api.js
@@ -53,13 +53,48 @@ function treeRefresh(objPath){
editorLoad(objPath);
}
+
+
+function editorClear(){
+ window.editor_fields = {}
+}
+
+function editorDeclareControl(ctl, field = null){
+ if (field == null){
+ field = ctl.getAttribute("name");
+ }
+
+ window.editor_fields[ field ] = ctl;
+}
+
+
function editorLoad(objPath){
var editor = $("editor");
var url = objPath + "/_hm_edit";
var treesource = callURL(url);
+
+ editorClear();
loadHTML(editor, treesource);
}
+function editorApply(objPath){
+
+ var formData = FormData();
+
+ for (var field in window.editor_fields){
+ if (window.editor_fields.hasOwnProperty( field )){
+
+ }
+ }
+
+ formData.append( )
+
+}
+
+function editorSave(){
+ alert("Submit");
+ return false;
+}
diff --git a/hserver/manage/edit.html b/hserver/manage/edit.html
index 4ec6056..557ffca 100644
--- a/hserver/manage/edit.html
+++ b/hserver/manage/edit.html
@@ -1,6 +1,20 @@
<%=self._aq_name%>
<%=self.__class__.__name__%>
+
+
diff --git a/hserver/manage/style.css b/hserver/manage/style.css
index 40c4aa5..9ce671c 100644
--- a/hserver/manage/style.css
+++ b/hserver/manage/style.css
@@ -14,6 +14,11 @@ h1,h2,h3,h4,h5 {
display: inline-block;
}
+textarea {
+ min-width: 50%;
+ min-height: 400px;
+}
+
.popup {
position: absolute;
left: 75%;
@@ -23,7 +28,7 @@ h1,h2,h3,h4,h5 {
border: 1px solid #202040;
background-color: #C0C0FF;
border-radius: 5px;
- padding: 5px;
+ padding: 15px;
}
* > .popup {
@@ -55,16 +60,35 @@ div:hover > .pulldown {
z-index: 1;
}
+.section {
+ display: block;
+ border: 1px dotted silver;
+}
+
+.section > .section-title {
+ border-bottom: 1px solid black;
+ margin-bottom: 5px;
+}
-.button {
+.button, input{
position: relative;
display: inline-block;
+ border: 1px solid #202040;
+ background-color: #E0E0FF;
+ border-radius: 3px;
+}
+.button.small {
width: 14px;
height: 14px;
- border: 1px solid #202040;
- background-color: #A0A0FF;
- border-radius: 5px;
+}
+
+input {
+ padding: 3px;
+ min-width: 400px;
+}
+input.small {
+ min-width: 200px;
}
.right {
@@ -72,6 +96,16 @@ div:hover > .pulldown {
display: block;
}
+.section > div {
+ border: 1px dotted silver;
+ height: 28px;
+ text-
+}
+
+.section > div > input {
+ //left: 10%;
+ right: -20%;
+}
@@ -82,6 +116,33 @@ div:hover > .pulldown {
margin-bottom: 40px;
}
+#tree {
+ display: inline-block;
+ width: 15%;
+ min-height: 95%;
+ position: absolute;
+ float: left;
+ padding-right: 1%;
+
+ border-right: 1px solid black;
+}
+
+#editor {
+ display: block;
+ position: absolute;
+ left: 17%;
+
+ width: 85%;
+}
+
+
+
+
+
+
+
+
+
#menu>a {
display: inline;
}
@@ -91,17 +152,7 @@ div:hover > .pulldown {
display: inline-block;
}
-#tree {
- display: block;
- width: 15%;
- min-height: 80%;
- position: relative;
- float: left;
- padding-right: 15px;
- margin-right: 15px;
- border-right: 1px solid black;
-}
.row {
display: block;
@@ -176,17 +227,6 @@ div:hover > .pulldown {
}
-#editor {
- display: block;
- left: 15%;
- width: 85%;
-}
-
-textarea#editor {
- min-width: 50%;
- min-height: 300px;
-}
-
.typename, .bold {
display: inline;
font-weight: bold;
@@ -198,10 +238,10 @@ textarea#editor {
.block {
display: block;
- border: 1px solid black;
- background-color: #C0C0C0;
+ //background-color: #C0C0C0;
margin-bottom: 10px;
+ margin-top: 10px;
}
diff --git a/hserver/manage/tree.html b/hserver/manage/tree.html
index 47c7128..07e7804 100644
--- a/hserver/manage/tree.html
+++ b/hserver/manage/tree.html
@@ -4,9 +4,9 @@
<%if len(node._aq_path)>1%>
-
+
<%end%>
-