<%= text_field_tag "contactform_subject", {}, :class => "thin_border auto_resize" %> | |
<%= select_tag( "contactform_mailto", options_for_select(configuration(:mailer)[:mail_addresses].map{ |a| [t('alchemy.mailer.mail_addresses.'+a[0]), a[0]] }), :style => "width: 300px", :class => 'alchemy_selectbox' ) %> | |
<%= text_area_tag "contactform_body", {}, :rows => 5, :class => 'thin_border auto_resize' %> | |
<%= text_field_tag "contactform_link_title", {}, :class => 'thin_border auto_resize link_title' %> |
<%= link_to_function( t("apply"), "Alchemy.LinkOverlay.createLink( 'contact', jQuery('#contactform_url').val() + '?subject=' + encodeURIComponent(jQuery('#contactform_subject').val()) + '&mail_to=' + encodeURIComponent(jQuery('#contactform_mailto').val()) + '&body=' + encodeURIComponent(jQuery('#contactform_body').val()), jQuery('#contactform_link_title').val(), null ); Alchemy.LinkOverlay.close()", :class => 'button' ) %>