diff --git a/public_html/modules/nodes/create.php b/public_html/modules/nodes/create.php new file mode 100644 index 0000000..65780fe --- /dev/null +++ b/public_html/modules/nodes/create.php @@ -0,0 +1,27 @@ +uMethod == "get") +{ + /* Display form */ + $sData = array( + "contents" => NewTemplater::Render("nodes/create", $locale->strings, array()) + ); +} +elseif($router->uMethod == "post") +{ + /* Process form */ + +} diff --git a/public_html/rewrite.php b/public_html/rewrite.php index e9830fc..284ae37 100644 --- a/public_html/rewrite.php +++ b/public_html/rewrite.php @@ -23,12 +23,16 @@ $router->allow_slash = true; $router->routes = array( 0 => array( - "^/$" => "modules/index.php", - "^/editor$" => "modules/editor.php", - "^/intro$" => array( - 'target' => "modules/intro.php", - '_json' => true - ), + "^/$" => "modules/index.php", + "^/editor$" => "modules/editor.php", + "^/intro$" => array( + 'target' => "modules/intro.php", + '_json' => true + ), + "^/nodes/create$" => array( + 'target' => "modules/nodes/create.php", + '_json' => true + ), ) ); diff --git a/public_html/static/css/openng.css b/public_html/static/css/openng.css index ac1161b..6582c9b 100644 --- a/public_html/static/css/openng.css +++ b/public_html/static/css/openng.css @@ -40,6 +40,18 @@ form.inline border-bottom-left-radius: 0px; } +.group-first, .group-middle +{ + border-top-right-radius: 0px !important; + border-bottom-right-radius: 0px !important; +} + +.group-middle, .group-last +{ + border-top-left-radius: 0px !important; + border-bottom-left-radius: 0px !important; +} + #main_toolbar a.add { float: left; @@ -88,3 +100,10 @@ form.inline { float: left; } + +h1.form +{ + font-size: 16px; + margin-top: 7px; + margin-bottom: 4px; +} diff --git a/public_html/static/js/openng.js b/public_html/static/js/openng.js index 74e7824..a1fa13f 100644 --- a/public_html/static/js/openng.js +++ b/public_html/static/js/openng.js @@ -31,7 +31,7 @@ function hookSubmitEvent(form, callback, error) } $(function(){ - hookSubmitEvent($("#form_addnode")); + hookSubmitEvent($("#form_search")); $("#button_toolbar_addnode").click(function(){ new JsdeWindow({ diff --git a/public_html/templates/nodes/create.tpl b/public_html/templates/nodes/create.tpl new file mode 100644 index 0000000..52e3bb3 --- /dev/null +++ b/public_html/templates/nodes/create.tpl @@ -0,0 +1,24 @@ +
+

Node

+ +
+ + +
+ +
+ + +
+ +
+
+

Properties

+
+ +
+ + +
+
+