changeset 146:0f3210a90f46 feature_55

development commit: terms and conditions.
author luisf
date Mon, 24 Jan 2011 13:52:04 +0000
parents e6ed6c7a2ce9
children 6bd9b26ebd07
files app/views/account/register.rhtml
diffstat 1 files changed, 17 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/app/views/account/register.rhtml	Thu Jan 20 14:06:23 2011 +0000
+++ b/app/views/account/register.rhtml	Mon Jan 24 13:52:04 2011 +0000
@@ -41,13 +41,28 @@
                         </p>
 
                         <p>
-                          <label for="ssamr_user_institution"><%=l(:label_ssamr_institution)%></label>
-                            <%= ssamr_user_detail.collection_select(:institution_id, Institution.all, :id, :name, {:prompt => true}) %>
+                          <%= radio_button_tag(:institution_type, "list", true) %>
+                          <%= label_tag(:institution_type, "I am affiliated to this institution: ") %>
+                          <%= ssamr_user_detail.collection_select(:institution_id, Institution.all, :id, :name, {:prompt => true}) %>
                         </p>
+
+                        <p>
+                          <%= radio_button_tag(:institution_type, "other", :onchange => "alert ('mau')") %>
+                          <%= label_tag(:institution_type, "Other institution: ") %>
+                          <%= ssamr_user_detail.text_field(:institution_id) %>
+                        </p>
+
+
                 <% end %>
           
+<script language="javascript">
 
+if(document.getElementById('myText')==false)
+  alert("Falso");
+else
+  alert("True");
 
+</script>
 
 <% if Setting.openid? %>
 <p><label for="user_identity_url"><%=l(:field_identity_url)%></label>