summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-fixed-state.html
diff options
context:
space:
mode:
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 0000000..eea30dd
--- /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>