Given that we only show a bunch of labels and associated details, using
a table seems reasonable here.
The CSS snippet was extracted from archweb's style sheet.
Signed-off-by: Lukas Fleischer
---
web/html/css/containers.css | 8 +++++
web/template/pkg_details.php | 71 +++++++++++++++++++++++++----------------
2 files changed, 51 insertions(+), 28 deletions(-)
diff --git a/web/html/css/containers.css b/web/html/css/containers.css
index 237950f..9f845b0 100644
--- a/web/html/css/containers.css
+++ b/web/html/css/containers.css
@@ -186,3 +186,11 @@ input[type=image] {
background: none;
}
+/* Package details */
+#pkginfo {
+ width: auto;
+}
+
+#pkginfo td {
+ padding: 0.25em 0 0.25em 1.5em;
+}
diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php
index 880a675..c8e703c 100644
--- a/web/template/pkg_details.php
+++ b/web/template/pkg_details.php
@@ -8,9 +8,8 @@ if ($uid == $row["MaintainerUID"] or
$catarr = pkgCategories();
$edit_cat = "<form method='post' action='packages.php?ID=".$pkgid."'>\n";
- $edit_cat.= "<p>";
+ $edit_cat.= "<div>";
$edit_cat.= "<input type='hidden' name='action' value='do_ChangeCategory' />";
- $edit_cat.= "<span class='f3'>" . __("Category") . ":</span> ";
$edit_cat.= "<select name='category_id'>\n";
foreach ($catarr as $cid => $catname) {
$edit_cat.= "