diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2020-03-23 16:19:48 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2020-03-23 16:26:48 +0100 |
commit | 7d1b16dce7e435caefd39975ca68a08c4f79fc03 (patch) | |
tree | b075ed8e9531bce23845eba0b9fef585901ebde1 /app/view/templates | |
parent | 73e2d40ee0d82c9d68eca8db35b323db77eb5713 (diff) | |
download | wcms-7d1b16dce7e435caefd39975ca68a08c4f79fc03.tar.gz wcms-7d1b16dce7e435caefd39975ca68a08c4f79fc03.zip |
map integration in home
Diffstat (limited to 'app/view/templates')
-rw-r--r-- | app/view/templates/home.php | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/app/view/templates/home.php b/app/view/templates/home.php index 8078d4a..204864f 100644 --- a/app/view/templates/home.php +++ b/app/view/templates/home.php @@ -30,8 +30,37 @@ <div class="block"> - <h2 class="hidephone">Pages (<?= count($table2) ?>)</h2> + <h2 class="hidephone">Pages (<?= count($table2) ?>) <span class="right"><a href="?display=list" <?= $display === 'list' ? 'style="color: white"' : '' ?> >list</a> / <a href="?display=map" <?= $display === 'map' ? 'style="color: white"' : '' ?> >map</a></span> </h2> + + <?php if($display === 'map') { ?> + + <!-- ___________________ M A P _________________________ --> + + <div id="deepsearchbar"> + <form action="" method="get"> + <input type="hidden" name="display" value="map"> + <input type="checkbox" name="" id="orphan" checked> + <label for="orphan">Show orphans pages</label> + <select name="layout" id="layout"> + <?= options(Wcms\Model::MAP_LAYOUTS, $layout) ?> + </select> + <label for="layout">graph style</label> + <input type="submit" value="update"> + </form> + </div> + + <div id="graph"></div> + + <script> + var data = <?= $json ?>; + console.log(data); + </script> + <script src="<?= Wcms\Model::jspath() ?>map.bundle.js"></script> + + <?php } else { ?> + + <!-- ___________________ L I S T _________________________ --> <div id="deepsearchbar" class="hidephone"> <form action="<?= $this->url('home') ?>" method="get"> @@ -161,6 +190,8 @@ </table> </div> + <?php } ?> + </div> </section> |