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.

This commit is contained in:
Greg Von Kuster
2011-10-28 15:19:09 -04:00
parent ac7d488cb3
commit 2e750be904
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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()}
+1 -1
View File
@@ -13,7 +13,7 @@ ${render_user_info()}
<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()}