]> 91.132.146.200 Git - bibliotheca-php.git/commitdiff
back link and after successfull save back to detailview
authorBanana <mail@bananas-playground.net>
Sun, 3 Jan 2021 14:18:28 +0000 (15:18 +0100)
committerBanana <mail@bananas-playground.net>
Sun, 3 Jan 2021 14:18:28 +0000 (15:18 +0100)
webclient/view/default/manageentry/manageentry.html
webclient/view/default/manageentry/manageentry.php
webclient/view/default/tool/tool.html

index 5cecbd48e42f60cceb0ca517bb759c01d1c7b4c9..8fef73c9556bbcc40e920bcb92a30843df56e1f9 100644 (file)
@@ -5,7 +5,9 @@ if(!empty($TemplateData['editFields'])) {
                $_entry = $TemplateData['editData']['id'];
 ?>
                <h3 class="uk-h3">Update an entry in: <a href="index.php?p=collections&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>"><?php echo $TemplateData['loadedCollection']['name']; ?></a></h3>
-               <p><a href="index.php?p=entry&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>&id=<?php echo $_entry; ?>">View entry</a></p>
+               <p><span uk-icon="arrow-left"></span>
+                       <a href="index.php?p=manageentry&collection=<?php echo $TemplateData['collection']['id']; ?>&id=<?php echo $TemplateData['editData']['id']; ?>">View entry</a>
+               </p>
 <?php } else { ?>
                <h3 class="uk-h3">Add an entry to: <a href="index.php?p=collections&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>"><?php echo $TemplateData['loadedCollection']['name']; ?></a></h3>
 <?php } ?>
index 614725094322bdd16d4a920dc5bc6b5e2c281b55..075a2d9cfe1c05baa7b089e7abbd6733d4c516fe 100644 (file)
@@ -106,7 +106,7 @@ if(!empty($_collection)) {
                                        } elseif (!empty($_fieldsToSave) && isset($_fieldsToSave['title'])) {
                                                $do = $ManangeEntry->create($_fieldsToSave, $_owner, $_group, $_rights, $_id);
                                                if ($do !== 0) {
-                                                       $TemplateData['refresh'] = 'index.php?p=manageentry&collection='.$_collection.'&id='.$_id;
+                                                       $TemplateData['refresh'] = 'index.php?p=entry&collection='.$_collection.'&id='.$_id;
                                                } else {
                                                        $TemplateData['message']['content'] = "Entry could not be updated.";
                                                        $TemplateData['message']['status'] = "error";
index da49a9f74e508080fcb991c6b25eb732fdd67469..591cf0a04ff88fed140fecf139bfdfdddeaf55b2 100644 (file)
@@ -1,8 +1,8 @@
 <h3 class="uk-h3">Using <?php echo $TemplateData['tool']['name']; ?> with collection: <?php echo $TemplateData['collection']['name']; ?></h3>
 <?php if(!empty($TemplateData['editEntry'])) { ?>
-<h4><span uk-icon="arrow-left"></span>
+<p><span uk-icon="arrow-left"></span>
        <a href="index.php?p=manageentry&collection=<?php echo $TemplateData['collection']['id']; ?>&id=<?php echo $TemplateData['editEntry']['id']; ?>"><?php echo Summoner::ifset($TemplateData['editEntry'], 'title'); ?></a>
-</h4>
+</p>
 <?php } ?>
 
 <div class="uk-grid-small uk-grid-row-small" uk-grid>