From: Florent Bruneau Date: Mon, 11 Oct 2010 13:44:03 +0000 (+0200) Subject: Use a dropdown instead of checkbox to select the sex of a new account. X-Git-Tag: xorg/1.0.1~63 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=e8c61abe37cc6961ff83b579a6f18d76c1c8a933;p=platal.git Use a dropdown instead of checkbox to select the sex of a new account. Signed-off-by: Florent Bruneau --- diff --git a/modules/admin.php b/modules/admin.php index f203d78..633a683 100644 --- a/modules/admin.php +++ b/modules/admin.php @@ -1207,7 +1207,7 @@ class AdminModule extends PLModule S::assert_xsrf_token(); $firstname = Post::t('firstname'); $lastname = strtoupper(Post::t('lastname')); - $sex = Post::b('sex') ? User::GENDER_FEMALE : User::GENDER_MALE; + $sex = Post::s('sex'); $email = Post::t('email'); $type = Post::s('type'); $login = PlUser::makeHrid($firstname, $lastname, $type); diff --git a/templates/admin/accounts.tpl b/templates/admin/accounts.tpl index 52af2e5..d7b1dd9 100644 --- a/templates/admin/accounts.tpl +++ b/templates/admin/accounts.tpl @@ -92,7 +92,12 @@ function add_user_to_url(f) { Sexe - + + + Email