This repository has been archived on 2024-12-01. You can view files and clone it, but cannot push or open issues or pull requests.
redmine_rodax_crm/app/views/contacts_vcf/_load.html.erb
2012-01-03 16:18:32 +00:00

17 lines
737 B
Plaintext

<%- if Gem.available?('vpim') -%>
<h3><%= l(:label_import) %></h3>
<span id='import_link'>
<%= link_to l(:label_vcf_import), {}, :onclick => "Element.toggle('import_link'); Element.toggle('import_file'); return false;" %>
</span>
<% form_tag({:controller => :contacts_vcf, :action => :load, :project_id => @project}, :multipart => true ) do %>
<span id='import_file' style="display:none;">
<%= file_field_tag 'contact_vcf', :size => 30, :id => nil, :onchange => "this.form.submit()" -%>
<small>
<%= link_to 'Cancel', {}, :onclick => "Element.toggle('import_link'); Element.toggle('import_file'); return false;" %>
</small>
</span>
<% end %>
<%- end -%>