projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ 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>