This repository has been archived by the owner on Mar 27, 2022. It is now read-only.
/
import.html.erb
39 lines (38 loc) · 1.84 KB
/
import.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<h2><%= t('import.import_people') %></h2>
<%= form_tag({}, :method => 'post', :multipart => true) do %>
<p>
<%= t('import.select_csv_file') %>
<%= link_to_function t('click_here'), "$('#attributes').toggle()" %> <%= t('import.for_list_of_available_attributes') %>
</p>
<p>
<strong><%= t('import.only_first_records_will_be_imported_html', :count => Person::MAX_RECORDS_TO_IMPORT) %></strong>
</p>
<ul id="attributes" style="display:none;">
<% @column_names.each do |name| %>
<li><%= name %></li>
<% end %>
</ul>
<p>
<%= file_field_tag :file %><br/>
<%= check_box_tag 'match_by_name', true, true %>
<label for="match_by_name" class="inline"><%= t('import.attempt_match_existing_people') %></label>
</p>
<fieldset>
<legend><%= t('import.visibility_access') %></legend>
<%= t('import.apply_settings_to_imports') %><br/>
<%= check_box_tag 'attributes[can_sign_in]', true, true, :id => 'attributes_can_sign_in' %>
<label for="attributes_can_sign_in" class="inline"><%= t('people.can_sign_in') %></label><br/>
<%= check_box_tag 'attributes[full_access]', true, true, :id => 'attributes_full_access' %>
<label for="attributes_full_access" class="inline"><%= t('people.full_access') %></label><br/>
<%= check_box_tag 'attributes[visible_to_everyone]', true, true, :id => 'attributes_visible_to_everyone' %>
<label for="attributes_visible_to_everyone" class="inline"><%= t('people.visible_to_everyone') %></label><br/>
<%= check_box_tag 'attributes[visible_on_printed_directory]', true, true, :id => 'attributes_visible_on_printed_directory' %>
<label for="attributes_visible_on_printed_directory" class="inline"><%= t('people.visible_on_printed_directory') %></label>
</fieldset>
<p>
<%= submit_tag t('import.import_data') %>
</p>
<% end %>
<p>
<%= t('import.hint_excel_docs') %>
</p>