Node creation window
parent
7025e34054
commit
430c3a1627
@ -0,0 +1,27 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* openNG is more free software. It is licensed under the WTFPL, which
|
||||||
|
* allows you to do pretty much anything with it, without having to
|
||||||
|
* ask permission. Commercial use is allowed, and no attribution is
|
||||||
|
* required. We do politely request that you share your modifications
|
||||||
|
* to benefit other developers, but you are under no enforced
|
||||||
|
* obligation to do so :)
|
||||||
|
*
|
||||||
|
* Please read the accompanying LICENSE document for the full WTFPL
|
||||||
|
* licensing text.
|
||||||
|
*/
|
||||||
|
|
||||||
|
if(!isset($_APP)) { die("Unauthorized."); }
|
||||||
|
|
||||||
|
if($router->uMethod == "get")
|
||||||
|
{
|
||||||
|
/* Display form */
|
||||||
|
$sData = array(
|
||||||
|
"contents" => NewTemplater::Render("nodes/create", $locale->strings, array())
|
||||||
|
);
|
||||||
|
}
|
||||||
|
elseif($router->uMethod == "post")
|
||||||
|
{
|
||||||
|
/* Process form */
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,24 @@
|
|||||||
|
<form class="pure-form pure-form-aligned form_createnode">
|
||||||
|
<h1 class="form">Node</h1>
|
||||||
|
|
||||||
|
<div class="pure-control-group">
|
||||||
|
<label for="input_createnode_name">Name</label>
|
||||||
|
<input type="text" name="name" id="input_createnode_name">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pure-control-group">
|
||||||
|
<label for="input_createnode_notes">Notes</label>
|
||||||
|
<textarea name="notes" id="input_createnode_notes"></textarea>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pure-g form_createnode_properties">
|
||||||
|
<div class="pure-u-1">
|
||||||
|
<h1 class="form">Properties</h1>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="property">
|
||||||
|
<input type="text" class="pure-input-1-2 group-first" name="property_name[]" placeholder="Name">
|
||||||
|
<input type="text" class="pure-input-1-2 group-last" name="property_value[]" placeholder="Value">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
Loading…
Reference in New Issue