forked from ManageIQ/manageiq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_settings_import_tab.html.haml
26 lines (26 loc) · 1.1 KB
/
_settings_import_tab.html.haml
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
- if @sb[:active_tab] == "settings_import"
- url = url_for(:action => 'upload_form_field_changed', :id => @sb[:active_tab].split('_').last)
%h3= _("Messages")
= render(:partial => "layouts/flash_msg", :locals => {:click_remove => false})
%hr/
%h3= _("Upload Custom Variable Values")
= form_tag({:action => "upload_csv", :typ => "asset_tag"}, :class => "form-horizontal", :multipart => true) do
.form-group
%label.col-md-2.control-label
= _("Type")
.col-md-8
= select_tag('upload_type',
options_for_select([["<#{_('Choose')}>", nil], [title_for_host, "host"], [_("Vm"), "vm"]],
@edit[:new][:upload_type]),
:class => "selectpicker")
:javascript
miqInitSelectPicker();
miqSelectPickerEvent('upload_type', "#{url}")
- if @edit[:new][:upload_type]
.form-group
%label.col-md-2.control-label
= _("File")
.col-md-8
= file_field("upload", "file")
= submit_tag("Upload", :id => "upload_atags")
= _("* Requirements: CSV formatted file.")