From 62402cc31a6833de7d94adc88a6ce040aefd1cee Mon Sep 17 00:00:00 2001
From: Matthew Juhl <mjuhl24@gmail.com>
Date: Wed, 28 Apr 2010 17:10:28 +0000
Subject: [PATCH] Put birthday input fields on one line, change form to primary
 scheme, add id tag to form and update various selectors.

---
 plugins/unl_theme/scripts/JS/enhanceProfileForm.php      | 2 +-
 plugins/unl_theme/views/default/page_elements/header.php | 7 +++++--
 plugins/unl_theme/views/default/profile/edit.php         | 2 +-
 3 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/plugins/unl_theme/scripts/JS/enhanceProfileForm.php b/plugins/unl_theme/scripts/JS/enhanceProfileForm.php
index d8135097..821511e5 100644
--- a/plugins/unl_theme/scripts/JS/enhanceProfileForm.php
+++ b/plugins/unl_theme/scripts/JS/enhanceProfileForm.php
@@ -475,7 +475,7 @@
 		//$("body.fixed #maincontent textarea[name=form_data_profile_unl_impact]").parent().css({clear:"both",display:"block","margin-left":"150px"}).siblings("label").css("width","330px");
 		
 		$("#formloading").remove();
-		$("#maincontent form.cool").show();
+		$("#profileEditor").show();
 	});
 })();
 </script>
\ No newline at end of file
diff --git a/plugins/unl_theme/views/default/page_elements/header.php b/plugins/unl_theme/views/default/page_elements/header.php
index 4a99e513..aff1f644 100644
--- a/plugins/unl_theme/views/default/page_elements/header.php
+++ b/plugins/unl_theme/views/default/page_elements/header.php
@@ -72,11 +72,14 @@ if (preg_match('/friend/', $vars['title'])) { // if on a friends page, interst l
 ?>
 
 	<style type="text/css">
-	
-	#maincontent form.cool input[name$="city"] {
+	#profileEditor input[name$="city"] {
 		text-transform: capitalize;
 	}
 	
+	select[name=form_data_profile_dob_month], select[name=form_data_profile_dob_day], select[name=form_data_profile_dob_year] {
+		width: auto !important;
+	}
+	
 	</style>
 	
 <?php 
diff --git a/plugins/unl_theme/views/default/profile/edit.php b/plugins/unl_theme/views/default/profile/edit.php
index 522efa8b..c91cd7ef 100644
--- a/plugins/unl_theme/views/default/profile/edit.php
+++ b/plugins/unl_theme/views/default/profile/edit.php
@@ -33,7 +33,7 @@ if ($_GET['firstlogin'] == 'yes'){
 }
 
 //echo '<div id="formloading"><img src="/wdn/templates_3.0/css/header/images/colorbox/loading.gif" alt="Loading Form" /><noscript>Please enable JavaScript to use the profile editor.</noscript></div>';
-echo '<form action="'.$vars['url'].'action/flexprofile/edit" method="post" enctype="multipart/form-data" class="zenform cool" id="profileEditor">';
+echo '<form action="'.$vars['url'].'action/flexprofile/edit" method="post" enctype="multipart/form-data" class="zenform primary" id="profileEditor">';
 
 echo elgg_view('input/securitytoken');
 echo "<fieldset><ol>";
-- 
GitLab