From 2e750be904cb2ea9487f71cea5cb2ecf5f1c98c5 Mon Sep 17 00:00:00 2001 From: Greg Von Kuster Date: Fri, 28 Oct 2011 15:19:09 -0400 Subject: [PATCH] Don't display the "User Info" select field when registering as a new user of editing your information as an existing user unless there are existing form definitions that provide options for selection. --- templates/user/register.mako | 2 +- templates/webapps/galaxy/user/info.mako | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/user/register.mako b/templates/user/register.mako index 2fcb619e2bb..ba420c9e4aa 100644 --- a/templates/user/register.mako +++ b/templates/user/register.mako @@ -65,7 +65,7 @@ ${subscribe_check_box.get_html()} %endif - %if user_type_fd_id_select_field: + %if len( user_type_fd_id_select_field.options ) > 1:
${user_type_fd_id_select_field.get_html()} diff --git a/templates/webapps/galaxy/user/info.mako b/templates/webapps/galaxy/user/info.mako index f99dfdfe04d..a78e77e2cdd 100644 --- a/templates/webapps/galaxy/user/info.mako +++ b/templates/webapps/galaxy/user/info.mako @@ -13,7 +13,7 @@ ${render_user_info()}
User information
- %if user_type_fd_id_select_field: + %if len( user_type_fd_id_select_field.options ) > 1:
${user_type_fd_id_select_field.get_html()}