[Streamlined][875] added examples of edit help text and tooltips to coach_ui.rb

0 views
Skip to first unread message

svn-str...@thinkrelevance.com

unread,
Jun 23, 2008, 9:05:39 PM6/23/08
to streamli...@googlegroups.com
Revision
875
Author
matthew
Date
2008-06-23 21:05:39 -0400 (Mon, 23 Jun 2008)

Log Message

added examples of edit help text and tooltips to coach_ui.rb

Modified Paths

Diff

Modified: edge/samples/sports/CHANGELOG (874 => 875)


--- edge/samples/sports/CHANGELOG	2008-06-24 01:03:26 UTC (rev 874)
+++ edge/samples/sports/CHANGELOG	2008-06-24 01:05:39 UTC (rev 875)
@@ -1,3 +1,5 @@
+06/23/08 - Added examples of edit help text and tooltips to coach_ui.rb [Matthew Bass]
+
 06/16/08 - Updated to Rails 2.1 [Matthew Bass]
 
 10/06/07 - Copied fresh styling from latest version of Streamlined [Matthew Bass]

Modified: edge/samples/sports/app/streamlined/coach_ui.rb (874 => 875)


--- edge/samples/sports/app/streamlined/coach_ui.rb	2008-06-24 01:03:26 UTC (rev 874)
+++ edge/samples/sports/app/streamlined/coach_ui.rb	2008-06-24 01:05:39 UTC (rev 875)
@@ -10,6 +10,12 @@
 # Coach.class_eval { include CoachAdditions }
 
 Streamlined.ui_for(Coach) do
+  user_columns :first_name, { :html_options => { :title => "This field is required" }},
+               :last_name,
+               :middle_name, { :help => "This field is optional" },
+               :sponsors,
+               :team
+  
   # Since we're redirecting back to the list view using render_filter in CoachesController, we need
   # to disable AJAX when editing and saving a record. The UI gets confused if we don't.
   edit_submit_button :ajax => false

Modified: edge/samples/sports/public/stylesheets/streamlined.css (874 => 875)


--- edge/samples/sports/public/stylesheets/streamlined.css	2008-06-24 01:03:26 UTC (rev 874)
+++ edge/samples/sports/public/stylesheets/streamlined.css	2008-06-24 01:05:39 UTC (rev 875)
@@ -12,6 +12,7 @@
 #ft         { background-color: #7594A1; margin-top: -16px; }
 .clear      { clear:  both;   overflow:  hidden;  width:  1px;   height:  1px;  margin:   0  -1px  -1px  0;   border:  0;  padding:   0;  font-size:  0;  line-height:   0;  }
 #streamlined_breadcrumb { font-size: 80%; font-weight: bold; margin-top: 5px; margin-bottom: 5px;}
+.streamlined_help { font-size: 80%; }
 
 /*----------------------------------*/
 
Reply all
Reply to author
Forward
0 new messages