adding new elements: percentage input, fixed country and state display, tablebreak...
[freeside.git] / httemplate / elements / tr-fixed-state.html
diff --git a/httemplate/elements/tr-fixed-state.html b/httemplate/elements/tr-fixed-state.html
new file mode 100644 (file)
index 0000000..eea30dd
--- /dev/null
@@ -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>