aboutsummaryrefslogtreecommitdiffstats
path: root/webface/templates/model_edit.html
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2017-01-11 18:26:04 -0800
committerbnewbold <bnewbold@robocracy.org>2017-01-11 18:26:37 -0800
commitecc4f3ef8a23e3d4143954fdccc5a28a83f9039f (patch)
tree0d835d82c53e04064b694adbe26e34ef4af86315 /webface/templates/model_edit.html
parent640a433fa8be6c0269db148e08ccf2bfe03957ca (diff)
downloadmodelthing-ecc4f3ef8a23e3d4143954fdccc5a28a83f9039f.tar.gz
modelthing-ecc4f3ef8a23e3d4143954fdccc5a28a83f9039f.zip
basic sandbox wiki editing and creation
Diffstat (limited to 'webface/templates/model_edit.html')
-rw-r--r--webface/templates/model_edit.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/webface/templates/model_edit.html b/webface/templates/model_edit.html
new file mode 100644
index 0000000..38aef60
--- /dev/null
+++ b/webface/templates/model_edit.html
@@ -0,0 +1,27 @@
+{{# partial content}}
+<h1 style="margin-bottom: 0.1em;">
+ <a href="/m/{{namespace}}/" style="color: black; text-decoration: none;">
+ {{ namespace }}</a>/{{ model_name }}
+</h1>
+
+<form action="/m/{{namespace}}/{{model_slug}}/edit/" method="POST">
+
+<h3>Modelica Code</h3>
+The computable model must conform to a subset of the Modelica language.
+
+<p><b>WARNING:</b> you won't get errors or help if your code is wrong,
+just a 500 error.
+
+<br><br>
+<textarea name="modelica" style="width:50em; height:19em;">{{ modelica }}</textarea>
+
+<h3>Markdown</h3>
+<textarea name="markdown" style="width:50em; height:19em;">{{ markdown }}</textarea>
+
+<br><br>
+<input type="submit" value="Submit!"></input>
+
+</form>
+
+{{/partial}}
+{{~> base.html~}}