|
From: Chris W. <la...@us...> - 2001-10-14 20:54:50
|
Update of /cvsroot/openinteract/OpenInteract/template
In directory usw-pr-cvs1:/tmp/cvs-serv8669/template
Modified Files:
date_select header_cell show_label
Log Message:
template widget updates
Index: date_select
===================================================================
RCS file: /cvsroot/openinteract/OpenInteract/template/date_select,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** date_select 2001/10/11 15:15:09 1.1
--- date_select 2001/10/14 20:54:47 1.2
***************
*** 7,10 ****
--- 7,13 ----
year_list = list of years
+ object = Class::Date object from which we can get the year,
+ month and day; if this is given we ignore the
+ year/month/day_value fields
year_value = chosen year
month_value = chosen month (number)
***************
*** 29,36 ****
[%- IF field_prefix -%]
! [%- month_field = "${field_prefix}_month";
! day_field = "${field_prefix}_day";
! year_field = "${field_prefix}_year"; -%]
[% END -%]
[% INCLUDE form_select( name = month_field, plain = 1, first_blank = is_blank,
value_list = [ 1..12 ], label_list = month_names,
--- 32,45 ----
[%- IF field_prefix -%]
! [%- month_field = "${field_prefix}_month";
! day_field = "${field_prefix}_day";
! year_field = "${field_prefix}_year"; -%]
[% END -%]
+ [%- IF object -%]
+ [%- year_value = object.year;
+ month_value = object.month;
+ day_value = object.day; -%]
+ [%- END -%]
+
[% INCLUDE form_select( name = month_field, plain = 1, first_blank = is_blank,
value_list = [ 1..12 ], label_list = month_names,
Index: header_cell
===================================================================
RCS file: /cvsroot/openinteract/OpenInteract/template/header_cell,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** header_cell 2001/10/09 00:52:45 1.2
--- header_cell 2001/10/14 20:54:47 1.3
***************
*** 4,6 ****
########################################-%]
! <td><b>[% INCLUDE show_label %]</b></td>
--- 4,6 ----
########################################-%]
! <td>[% INCLUDE show_label %]</td>
Index: show_label
===================================================================
RCS file: /cvsroot/openinteract/OpenInteract/template/show_label,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** show_label 2001/10/08 20:20:00 1.1
--- show_label 2001/10/14 20:54:47 1.2
***************
*** 1,5 ****
[%########################################
! show_label( label )
! Display a label.
########################################-%]
! <b>[% label %]</b>
\ No newline at end of file
--- 1,14 ----
[%########################################
! show_label( label, is_required, required_display )
! Display a label. If it's required, pass in a true value for
! 'is_required'. If it's required and you don't pass anything in
! for 'required_display' we use what's in the theme.
########################################-%]
! [%- req = '' -%]
! [% IF is_required -%]
! [%- IF NOT required_display -%]
! [%- required_display = OI.theme_properties.required -%]
! [%- END -%]
! [%- req = required_display -%]
! [% END %]
! <b>[% label %][% req %]</b>
\ No newline at end of file
|