summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-fixed-state.html
diff options
context:
space:
mode:
authorivan <ivan>2008-01-04 02:19:50 +0000
committerivan <ivan>2008-01-04 02:19:50 +0000
commit3fc09b0e69ba395c452b636696c3576c9a762af6 (patch)
tree9d88d4bfbcd7423e260415cbe1bfcd07175f65ba /httemplate/elements/tr-fixed-state.html
parentb0003b80600bb73625465e8e80bd654a863a43ad (diff)
adding new elements: percentage input, fixed country and state display, tablebreak+title
Diffstat (limited to 'httemplate/elements/tr-fixed-state.html')
-rw-r--r--httemplate/elements/tr-fixed-state.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/httemplate/elements/tr-fixed-state.html b/httemplate/elements/tr-fixed-state.html
new file mode 100644
index 000000000..eea30ddc5
--- /dev/null
+++ b/httemplate/elements/tr-fixed-state.html
@@ -0,0 +1,10 @@
+<% include('tr-fixed.html', %opt ) %>
+<%init>
+
+my %opt = @_;
+
+my $value = $opt{'curr_value'} || $opt{'value'};
+
+$opt{'formatted_value'} = state_label($value, $opt{'object'}->country);
+
+</%init>