summaryrefslogtreecommitdiff
path: root/UI
diff options
context:
space:
mode:
Diffstat (limited to 'UI')
-rw-r--r--UI/am-display-template.html20
-rw-r--r--UI/am-edit-template.html22
2 files changed, 42 insertions, 0 deletions
diff --git a/UI/am-display-template.html b/UI/am-display-template.html
new file mode 100644
index 00000000..62a6a871
--- /dev/null
+++ b/UI/am-display-template.html
@@ -0,0 +1,20 @@
+<?lsmb INCLUDE 'ui-header.html' ?>
+<?lsmb PROCESS elements.html ?>
+<body>
+<?lsmb IF !form.file.match('\.html$'); #Pre-enclose non-HTML templates ?>
+<pre><?lsmb form.body ?></pre><?lsmb
+ELSE;
+ form.body;
+END ?>
+<form method="post" action="<?lsmb form.script ?>">
+<?lsmb FOREACH hidden IN hiddens.keys;
+ PROCESS input element_data={
+ type => 'hidden',
+ name => hidden,
+ value => hiddens.item(hidden)
+ }; END ?>
+<?lsmb FOREACH button IN buttons; PROCESS button element_data=button; END ?>
+</form>
+</body>
+</html>
+
diff --git a/UI/am-edit-template.html b/UI/am-edit-template.html
new file mode 100644
index 00000000..8d596098
--- /dev/null
+++ b/UI/am-edit-template.html
@@ -0,0 +1,22 @@
+<?lsmb INCLUDE 'ui-header.html' ?>
+<?lsmb PROCESS elements.html ?>
+<body>
+<form method="post" action="<?lsmb form.script ?>">
+ <?lsmb PROCESS textarea element_data={
+ name => 'body',
+ rows => 25,
+ cols => 70,
+ text => form.body,
+ } ?>
+<br />
+<?lsmb FOREACH hidden IN hiddens.keys;
+ PROCESS input element_data={
+ type => 'hidden',
+ name => hidden,
+ value => hiddens.item(hidden)
+ }; END ?>
+<?lsmb FOREACH button IN buttons; PROCESS button element_data=button; END ?>
+</form>
+</body>
+</html>
+