app/views/organizations/_global_defaults_form.html.haml
= simple_form_for(@organization, html: { class: 'form-vertical', id: "global-defaults-form" }, wrapper: :vertical_form, remote: true) do |f|
= f.input :currency, collection: Organization::CURRENCIES, selected: f.object.currency
= f.input :seedamount, input_html: {placeholder: "E.g. 10"}, label: 'Seed Amount'
= f.input :seedvalues, input_html: {placeholder: "E.g. 100, 200, 300 ..."}, label: 'Seed Percentage Values'
= f.input :redirectto, input_html: {placeholder: "https://example.com"}, label: 'Redirect to (optional)'
= f.input :thank_you_text, input_html: {placeholder: "Thanks for contributing", label: "Thank you message"}, as: :text
= f.input :country, input_html: {placeholder: "E.g. US", label: "Default Country"}, as: :string
= f.input :contact_email, as: :string
= f.button :submit, 'Save', data: { disable_with: 'Saving...' }
- if valid
%span{class: "glyphicon glyphicon-ok text-success global-defaults-success"}