[aur-dev] [PATCH] Do not show the activity check box when registering

Lukas Fleischer lfleischer at archlinux.org
Sun May 31 17:35:16 UTC 2015


Creating an inactive account does not make sense. Hide the activity
check box from the registration page.

Signed-off-by: Lukas Fleischer <lfleischer at archlinux.org>
---
 web/template/account_edit_form.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/web/template/account_edit_form.php b/web/template/account_edit_form.php
index f988714..56bdd45 100644
--- a/web/template/account_edit_form.php
+++ b/web/template/account_edit_form.php
@@ -60,10 +60,12 @@
 		</p>
 		<?php endif; ?>
 
+		<?php if ($A == "UpdateAccount"): ?>
 		<p>
 			<label for="id_inactive"><?= __("Inactive") ?>:</label>
 			<input type="checkbox" name="J" id="id_inactive" <?= $J ? 'checked="checked"' : '' ?> />
 		</p>
+		<?php endif; ?>
 
 		<p>
 			<label for="id_email"><?= __("Email Address") ?>:</label>
-- 
2.4.1


More information about the aur-dev mailing list