[aur-dev] [PATCH 2/3] Add more details on the SSH public key field

Lukas Fleischer lfleischer at archlinux.org
Sun May 31 17:32:27 UTC 2015


Also, reorder the fields such that optional fields come last.

Signed-off-by: Lukas Fleischer <lfleischer at archlinux.org>
---
 web/html/css/aurweb.css            |  4 ++++
 web/template/account_edit_form.php | 19 ++++++++++++-------
 2 files changed, 16 insertions(+), 7 deletions(-)

diff --git a/web/html/css/aurweb.css b/web/html/css/aurweb.css
index 79acce4..c86c1da 100644
--- a/web/html/css/aurweb.css
+++ b/web/html/css/aurweb.css
@@ -77,3 +77,7 @@
 .comment-deleted {
 	color: #999;
 }
+
+legend {
+	padding: 1em 0;
+}
diff --git a/web/template/account_edit_form.php b/web/template/account_edit_form.php
index 110fbb5..415c086 100644
--- a/web/template/account_edit_form.php
+++ b/web/template/account_edit_form.php
@@ -97,13 +97,6 @@
 			<input type="text" size="30" maxlength="50" name="K" id="id_pgp" value="<?= html_format_pgp_fingerprint($K) ?>" />
 		</p>
 
-		<?php if ($A == "UpdateAccount"): ?>
-		<p>
-			<label for="id_ssh"><?= __("SSH Public Key") ?>:</label>
-			<textarea name="PK" id="id_ssh" rows="5" cols="30"><?= htmlspecialchars($PK) ?></textarea>
-		</p>
-		<?php endif; ?>
-
 		<p>
 			<label for="id_language"><?= __("Language") ?>:</label>
 			<select name="L" id="id_language">
@@ -119,7 +112,19 @@
 ?>
 			</select>
 		</p>
+	</fieldset>
+
+	<?php if ($A == "UpdateAccount"): ?>
+	<fieldset>
+		<legend><?= __("The following information is only required if you want to submit packages to the Arch User Repository.") ?></legend>
+		<p>
+			<label for="id_ssh"><?= __("SSH Public Key") ?>:</label>
+			<textarea name="PK" id="id_ssh" rows="5" cols="30"><?= htmlspecialchars($PK) ?></textarea>
+		</p>
+	</fieldset>
+	<?php endif; ?>
 
+	<fieldset>
 		<p>
 			<label></label>
 			<?php if ($A == "UpdateAccount"): ?>
-- 
2.4.1


More information about the aur-dev mailing list