-
Notifications
You must be signed in to change notification settings - Fork 73
/
_form.html.erb
28 lines (20 loc) · 1.24 KB
/
_form.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
<dl class="see">
<dt><%= @model.t :name %><%= @item.tt :name %></dt>
<dd><%= f.text_field :name %></dd>
<dt><%= @model.t :source_url %><%= @item.tt :source_url %></dt>
<dd><%= f.text_field :source_url %></dd>
<dt><%= @model.t :api_type %><%= @model.tt :api_type %></dt>
<dd><%= f.select :api_type, @item.api_type_options %></dd>
<dt><%= @model.t :resource_size_limit_mb %><%= @model.tt :resource_size_limit_mb %></dt>
<dd><%= f.number_field :resource_size_limit_mb, min: 0 %> <span class="postfix"><%= t('ss.units.mega_byte') %></span></dd>
<dt><%= @model.t :order %><%= @model.tt :order %></dt>
<dd><%= f.number_field :order %></dd>
<dt><%= @model.t :state %><%= @model.tt :state %></dt>
<dd><%= f.select :state, @item.state_options %></dd>
<dt><%= @model.t :basicauth_state %><%= @model.tt :basicauth_state %></dt>
<dd><%= f.select :basicauth_state, @item.basicauth_state_options %></dd>
<dt><%= @model.t :basicauth_username %><%= @model.tt :basicauth_username %></dt>
<dd><%= f.text_field :basicauth_username %></dd>
<dt><%= @model.t :basicauth_password %><%= @model.tt :basicauth_password %></dt>
<dd><%= f.password_field :basicauth_password, autocomplete: "new-password", value: @item.basicauth_password %></dd>
</dl>