diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2020-04-28 20:18:17 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2020-04-28 20:24:52 +0200 |
commit | 9090550d241f9f7b3246b24bfd323bd988add749 (patch) | |
tree | 2c2de66510533da53848dd876a9ab392471b38b8 /app/view | |
parent | 98514a4e0037aa0879e45bbad660aeda8837c624 (diff) | |
download | wcms-9090550d241f9f7b3246b24bfd323bd988add749.tar.gz wcms-9090550d241f9f7b3246b24bfd323bd988add749.zip |
listen to brother Stan and clean some things
Diffstat (limited to 'app/view')
-rw-r--r-- | app/view/templates/alert.php | 1 | ||||
-rw-r--r-- | app/view/templates/media.php | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/app/view/templates/alert.php b/app/view/templates/alert.php index 4ee71d3..1672443 100644 --- a/app/view/templates/alert.php +++ b/app/view/templates/alert.php @@ -34,6 +34,7 @@ $this->stop(); $form = '<p> <form action="' . $this->url('log') .'" method="post"> + <input type="text" name="user" id="loginuser" autofocus placeholder="user" > <input type="password" name="pass" id="loginpass" placeholder="password"> <input type="hidden" name="route" value="pageread/"> <input type="hidden" name="id" value="' . $page->id() . '"> diff --git a/app/view/templates/media.php b/app/view/templates/media.php index a5b8c68..960ff33 100644 --- a/app/view/templates/media.php +++ b/app/view/templates/media.php @@ -69,7 +69,7 @@ $this->layout('layout', ['title' => 'media', 'stylesheets' => [$css . 'home.css' <h2> /<?= $mediaopt->dir() ?> - <span class="right"><a href="?display=list" <?= $display === 'list' ? 'style="color: white"' : '' ?> >list</a> / <a href="?display=gallery" <?= $display === 'gallery' ? 'style="color: white"' : '' ?> >gallery</a></span> + <span class="right"><a href="<?= $mediaopt->getadress() ?>&display=list" <?= $display === 'list' ? 'style="color: white"' : '' ?> >list</a> / <a href="<?= $mediaopt->getadress() ?>&display=gallery" <?= $display === 'gallery' ? 'style="color: white"' : '' ?> >gallery</a></span> </h2> <div class="scroll"> @@ -84,8 +84,7 @@ $this->layout('layout', ['title' => 'media', 'stylesheets' => [$css . 'home.css' <ul id="gallery"> <?php foreach ($medialist as $media) { ?> - <li title="<?= $media->size('hr') ?> | <?= $media->uid('name') ?> | <?= $media->permissions() ?> - "> + <li title="<?= $media->size('hr') ?> | <?= $media->uid('name') ?> | <?= $media->permissions() ?>"> <div class="thumbnail"> <label for="media_<?= $media->id() ?>"> <?= $media->type() == 'image' ? '<img src="' . $media->getfullpath() . '">' : $media->getsymbol() ?> @@ -95,6 +94,7 @@ $this->layout('layout', ['title' => 'media', 'stylesheets' => [$css . 'home.css' <div class="meta"> <input type="checkbox" name="id[]" value="<?= $media->getfulldir() ?>" form="mediaedit" id="media_<?= $media->id() ?>"> <label for="media_<?= $media->id() ?>"><?= $media->id() ?></label> + <a href="<?= $media->getfullpath() ?>" target="_blank">⧉</a> <code><?= $media->getcode() ?></code> </div> |