Permalink
Browse files

in progress

  • Loading branch information...
1 parent d849895 commit 4e7ce03ddf6a5958389b21634e3ce7d5aa4ab100 @MikeBlyth committed May 21, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 app/views/families/_form.html.haml
@@ -5,6 +5,7 @@ $( "#tabs" ).tabs();
</script>
-# Set up some convenience variables
- @head_pers ||= PersonnelData.new
+- wifeclass = ''
- if @wife
- @wife_pers ||= PersonnelData.new
- wifeclass = @wife.first_name.blank? ? 'wife_hidden' : 'wife_visible'
@@ -139,7 +140,7 @@ $( "#tabs" ).tabs();
= member.label :temporary_location_until_date, "Until"
%br
= member.text_field :temporary_location_until_date, :class => 'active_date-input date_picker '
- - if @wife
+ - if @wife && wifeclass == 'wife_hidden'
%td
= label_tag :show_wife, "Show tab for wife"
= check_box_tag(:show_wife)
@@ -328,7 +329,7 @@ $( "#tabs" ).tabs();
= label :current_term, :end_estimated, 'End date is estimated?', :title=>'Check if end-term date date is estimated or approximate'
%tr
%td
- = label_tag :next_term_start_date, 'Estimated starting date for next term'
+ = label_tag :next_term_start_date, raw('Estimated starting date for <strong>next</strong> term')
%td
= hidden_field :next_term, :id
= text_field :next_term, :start_date, :class => 'active_date-input date_picker '

0 comments on commit 4e7ce03

Please sign in to comment.