commit/galaxy-central: greg: 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.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/2369a117e497/ changeset: 2369a117e497 user: greg date: 2011-10-28 21:19:09 summary: 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. affected #: 2 files diff -r c3582a9913fad4d41b7b7e151163fa4a45371bc1 -r 2369a117e49772b9074dab996ef1601969f007dc templates/user/register.mako --- a/templates/user/register.mako +++ b/templates/user/register.mako @@ -65,7 +65,7 @@ ${subscribe_check_box.get_html()} </div> %endif - %if user_type_fd_id_select_field: + %if len( user_type_fd_id_select_field.options ) > 1: <div class="form-row"><label>User type</label> ${user_type_fd_id_select_field.get_html()} diff -r c3582a9913fad4d41b7b7e151163fa4a45371bc1 -r 2369a117e49772b9074dab996ef1601969f007dc templates/webapps/galaxy/user/info.mako --- a/templates/webapps/galaxy/user/info.mako +++ b/templates/webapps/galaxy/user/info.mako @@ -13,7 +13,7 @@ <div class="toolForm"><form name="user_info" id="user_info" action="${h.url_for( controller='user', action='edit_info', cntrller=cntrller, user_id=trans.security.encode_id( user.id ) )}" method="post" ><div class="toolFormTitle">User information</div> - %if user_type_fd_id_select_field: + %if len( user_type_fd_id_select_field.options ) > 1: <div class="form-row"><label>User type:</label> ${user_type_fd_id_select_field.get_html()} Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket