aboutsummaryrefslogtreecommitdiff
path: root/w/view/templates/edit.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-10-28 19:56:27 +0100
committervincent-peugnet <v.peugnet@free.fr>2018-10-28 19:56:27 +0100
commite17392e46259e6f2e012017987cf7c31c171488f (patch)
tree72b61b63e32819e81433e8df6f14dc92b0e3a604 /w/view/templates/edit.php
parenta91c916248f967da2d4218b575e665242b7c975b (diff)
downloadwcms-e17392e46259e6f2e012017987cf7c31c171488f.tar.gz
wcms-e17392e46259e6f2e012017987cf7c31c171488f.zip
abstract config NWY
Diffstat (limited to 'w/view/templates/edit.php')
-rw-r--r--w/view/templates/edit.php47
1 files changed, 47 insertions, 0 deletions
diff --git a/w/view/templates/edit.php b/w/view/templates/edit.php
new file mode 100644
index 0000000..39c2104
--- /dev/null
+++ b/w/view/templates/edit.php
@@ -0,0 +1,47 @@
+<?php $this->layout('layout', ['title' => '✏ '.$art->title()]) ?>
+
+
+
+
+
+<?php $this->start('customhead') ?>
+ <script src="./rsc/js/app.js"></script>
+<?php $this->stop() ?>
+
+
+
+
+
+
+<?php $this->start('page') ?>
+
+<body>
+
+ <?php $this->insert('navart', ['user' => $user, 'art' => $art, 'artexist' => $artexist]) ?>
+
+
+<form action="?id=<?= $art->id() ?>&action=update" method="post" id="artedit">
+
+
+
+ <?php $this->insert('edittopbar', ['config' => $config, 'art' => $art]) ?>
+ <?php $this->insert('editsidebar', ['config' => $config, 'art' => $art]) ?>
+
+
+<style>textarea{font-size: <?= Config::fontsize() ?>px}</style>
+
+ <?php
+ $tablist = ['section' => $art->md(), 'css' => $art->css(), 'header' => $art->header(), 'nav' => $art->nav(), 'aside' => $art->aside(), 'footer' => $art->footer(), 'html' => $art->html(), 'javascript' => $art->javascript()];
+ $this->insert('edittabs', ['tablist' => $tablist, 'opentab' => $art->interface()])
+ ?>
+
+
+
+
+<input type="hidden" name="id" value="<?= $art->id() ?>">
+
+</form>
+
+</body>
+
+<?php $this->stop() ?> \ No newline at end of file