diff options
author | matthewt <matthewt@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2007-09-12 18:11:34 +0000 |
---|---|---|
committer | matthewt <matthewt@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2007-09-12 18:11:34 +0000 |
commit | 7adfd53f17f66ffe93763e944ed1d3fc52a369dc (patch) | |
tree | 19e599e74419b41cbbe651fd226b81e8b73551d3 /root/base/timerangecollection | |
parent | c728c97cb1061330e63c7cc048e768ef74988fe6 (diff) | |
download | reaction-7adfd53f17f66ffe93763e944ed1d3fc52a369dc.tar.gz reaction-7adfd53f17f66ffe93763e944ed1d3fc52a369dc.zip |
moved shit to trunk
Diffstat (limited to 'root/base/timerangecollection')
-rw-r--r-- | root/base/timerangecollection | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/root/base/timerangecollection b/root/base/timerangecollection new file mode 100644 index 0000000..2c0bf1a --- /dev/null +++ b/root/base/timerangecollection @@ -0,0 +1,60 @@ +[% + +PROCESS form_base; + +fields_block = 'timerangecollection_control'; + +BLOCK timerangecollection_control; + + include( 'error_block' ); + include( 'results_block' ); + FOREACH f_name = self.field_names; + NEXT IF f_name.match('range'); + field = self.fields.$f_name; + '<p>'; window.render_viewport(field); "</p>\n"; + END; + +END; + +results_block = 'timerangecollection_results'; + +BLOCK timerangecollection_results; + + FOREACH field = self.range_vps; + '<p>'; window.render_viewport(field); "</p>\n"; + END; + '<input type="hidden"'; connect_control(self, 'max_range_vps'); ' value="'; self.range_vps.size; '" />'; +# INCLUDE component type = 'hidden' self.name = 'max_range_vps' self.val = self.range_vps.size; + +END; + +error_block = 'timerangecollection_error'; + +BLOCK timerangecollection_error; + + IF self.warning; + '<p>'; self.warning; '</p>'; + END; + IF self.error; + '<p>'; self.error; '</p>'; + END; + +END; + +button_block = 'timerangecollection_buttons'; + +BLOCK timerangecollection_buttons; + + INCLUDE component type = 'submitbtn' self.value = 'add' self.event = 'add_range_vp' self.label = ''; + + IF self.has_on_next_callback; + INCLUDE component type = 'submitbtn' self.value = 'next' self.event = 'next' self.label = ''; + END; + + IF self.is_changed; self.value = 'cancel'; ELSE; self.value = 'close'; END; + INCLUDE component type = 'cancelbtn' self.label = '' self.event = 'close'; + '<br />'; + +END; + +%] |