From 0325a2ec9028fcd607719da46eb8c46518f46b5e Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Sun, 12 Mar 2023 00:53:47 +0100 Subject: [PATCH] EditAssetForm: make form look presentable --- templates/EditAssetForm.php | 85 +++++++++++++++++++++---------------- 1 file changed, 49 insertions(+), 36 deletions(-) diff --git a/templates/EditAssetForm.php b/templates/EditAssetForm.php index 8bdcdaf..d791dcd 100644 --- a/templates/EditAssetForm.php +++ b/templates/EditAssetForm.php @@ -22,9 +22,9 @@ class EditAssetForm extends Template echo '
-
+
Delete asset - +

Edit asset \'', $this->asset->getTitle(), '\' (', $this->asset->getFilename(), ')

'; @@ -63,20 +63,32 @@ class EditAssetForm extends Template echo '

Key info

-
-
Title
-
-
URL slug
-
- -
Date captured
-
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ - -
Display priority
-
- +
+
+
+ +
+ +
+
'; } @@ -85,7 +97,7 @@ class EditAssetForm extends Template echo '

Linked tags

-
    '; +
      '; foreach ($this->asset->getTags() as $tag) echo ' @@ -95,7 +107,7 @@ class EditAssetForm extends Template '; echo ' -
    • +
@@ -138,7 +150,7 @@ class EditAssetForm extends Template echo '

Thumbnails

- View: '; $first = INF; foreach ($this->thumbs as $i => $thumb) @@ -220,38 +232,39 @@ class EditAssetForm extends Template protected function section_asset_meta() { echo ' -
-

Asset meta data

-
    '; +
    +

    Asset meta data

    '; - $i = -1; + $i = 0; foreach ($this->asset->getMeta() as $key => $meta) { - $i++; echo ' -
  • - - -
  • '; +
    + + +
    '; + $i++; } + echo ' -
  • - - -
  • -
-

+
+ + +
+
+ +
'; } protected function section_replace() { echo ' -
+

Replace asset

- File: - Target: + Target: - +
'; } }