Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 390
- Log:
Initial import of Canvass, a donations-based poll application.
- Author:
- rool
- Date:
- Mon Mar 21 14:58:04 +0000 2011
- Size:
- 2361 Bytes
1 | <% |
2 | # Render as follows: |
3 | # |
4 | # render( |
5 | # :partial => 'edit', |
6 | # :locals => { |
7 | # :currency => <currency>, |
8 | # :action => :create | :update |
9 | # } |
10 | # ) |
11 | # |
12 | # ...where <currency> is the currency to edit, :action is used for the |
13 | # internationalised text in the 'submit' action button. In addition, a |
14 | # "delete" button is shown for the :update case. |
15 | |
16 | form_for( currency ) do | f | %> |
17 | <%= f.error_messages %> |
18 | |
19 | <p> |
20 | <%= f.label :name %><br /> |
21 | <%= f.text_field :name, :size => 30, :maxlength => Currency::MAXLEN_NAME %> |
22 | </p> |
23 | <p> |
24 | <%= f.label :code %> |
25 | (<a target="_blank" href="http://www.iso.org/iso/support/faqs/faqs_widely_used_standards/widely_used_standards_other/currency_codes/currency_codes_list-1.htm">ISO 4217</a>) |
26 | (<a target="_blank" href="http://en.wikipedia.org/wiki/ISO_4217">?</a>) |
27 | <%= f.text_field :code, :size => 5, :maxlength => Currency::MAXLEN_CODE %> |
28 | </p> |
29 | <p> |
30 | <%= f.label :symbol %> <%= apphelp_view_hint( :symbol_hint ) %><br /> |
31 | <%= f.text_field :symbol, :size => 30, :maxlength => Currency::MAXLEN_SYMBOL %> |
32 | </p> |
33 | <p> |
34 | <%= f.label :show_after_number %> |
35 | <%= f.check_box :show_after_number %> |
36 | </p> |
37 | <p> |
38 | <%= f.label :decimal_precision %><br /> |
39 | <%= currencyhelp_decimal_precision_menu( :form => f ) %> |
40 | </p> |
41 | <p> |
42 | <%= f.label :rounding_algorithm %><br /> |
43 | <%= currencyhelp_rounding_algorithm_menu( :form => f ) %> |
44 | </p> |
45 | <p> |
46 | <%= f.label :formatting_template %><br /> |
47 | <%= f.text_field :integer_template, :size => Currency::MAXLEN_INTEGER_TEMPLATE, :maxlength => Currency::MAXLEN_INTEGER_TEMPLATE %> |
48 | <%= f.text_field :delimiter, :size => 3, :maxlength => Currency::MAXLEN_DELIMITER %> |
49 | <%= f.text_field :fraction_template, :size => Currency::MAXLEN_FRACTION_TEMPLATE, :maxlength => Currency::MAXLEN_FRACTION_TEMPLATE %> |
50 | </p> |
51 | |
52 | <p /> |
53 | <div class="buttons aligned"> |
54 | <%= apphelp_submit( f, action ) %> |
55 | |
56 | <% if ( action == :create ) -%> |
57 | <%= apphelp_protected_button_to( :index, { :method => :currencies_path } ) %> |
58 | <% else -%> |
59 | <%= |
60 | apphelp_protected_buttons_to( |
61 | nil, |
62 | [ :show, { :method => :currency_path }, @currency ], |
63 | [ :index, { :method => :currencies_path } ] |
64 | ) |
65 | %> |
66 | <% end -%> |
67 | </div> |
68 | <% end %> |