changeset 177:dc01516c819d feature_55

added nobr tags to the institution fields in order to prevent line breaks.
author luisf
date Wed, 02 Feb 2011 16:29:10 +0000
parents ae833c41f474
children da7cba64948d
files app/views/account/register.rhtml app/views/my/account.rhtml app/views/users/_form.rhtml
diffstat 3 files changed, 15 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/app/views/account/register.rhtml	Wed Feb 02 13:50:19 2011 +0000
+++ b/app/views/account/register.rhtml	Wed Feb 02 16:29:10 2011 +0000
@@ -42,9 +42,9 @@
                         </p>
 
                         <p><label for="institution"><%=l("field_ssamr_user_detail.institution")%> <span class="required">*</span></label>
-                          <%= ssamr_user_detail.radio_button :institution_type, true %>
-                          <%= ssamr_user_detail.collection_select(:institution_id, Institution.all, :id, :name, {:prompt => true}).gsub('&amp;', '&')  %>
-                        </p>
+							<%= ssamr_user_detail.radio_button :institution_type, true %>
+                          	<%= ssamr_user_detail.collection_select(:institution_id, Institution.all, :id, :name, {:prompt => true}).gsub('&amp;', '&')  %>
+						</p>
 
                         <p>
                           <%= ssamr_user_detail.radio_button :institution_type, false %> Other:
--- a/app/views/my/account.rhtml	Wed Feb 02 13:50:19 2011 +0000
+++ b/app/views/my/account.rhtml	Wed Feb 02 16:29:10 2011 +0000
@@ -41,15 +41,17 @@
 
 
             <p><label for="institution"><%=l("field_ssamr_user_detail.institution")%> <span class="required">*</span></label>
+			<nobr>
               <%= ssamr_user_detail.radio_button :institution_type, true %>
               <%= ssamr_user_detail.collection_select(:institution_id, Institution.all, :id, :name, {:selected => @selected_institution_id, :prompt => true} ).gsub('&amp;', '&') %>
-            </p>
-
-
+            </nobr>
+			</p>
 
             <p>
-               <%= ssamr_user_detail.radio_button :institution_type, false %> Other:
-               <%= ssamr_user_detail.text_field :other_institution, :size => 19 %>
+				<nobr>
+               		<%= ssamr_user_detail.radio_button :institution_type, false %> Other:
+               		<%= ssamr_user_detail.text_field :other_institution, :size => 19 %>
+            	</nobr>
             </p>
     <% end %>
 </div>
--- a/app/views/users/_form.rhtml	Wed Feb 02 13:50:19 2011 +0000
+++ b/app/views/users/_form.rhtml	Wed Feb 02 16:29:10 2011 +0000
@@ -31,15 +31,19 @@
             </p>
 
             <p><label for="institution"><%=l("field_ssamr_user_detail.institution")%> <span class="required">*</span></label>
+			 <nobr>
               <%= ssamr_user_detail.radio_button :institution_type, true %>
               <%= ssamr_user_detail.collection_select(:institution_id, Institution.all, :id, :name, {:selected => @selected_institution_id, :prompt => true} ).gsub('&amp;', '&')  %>
-            </p>
+             </nobr>
+			</p>
 
 
 
             <p>
+				<nobr>
                <%= ssamr_user_detail.radio_button :institution_type, false %> Other:
                <%= ssamr_user_detail.text_field :other_institution %>
+				</nobr>
             </p>
           <% end %>
 </div>