To make select tags show selected option (FF bug) https://stackoverflow.com/questions/1479233/why-doesnt-firefox-show-the-correct-default-select-option
18 lines
733 B
Plaintext
18 lines
733 B
Plaintext
<%= error_messages_for @quantity %>
|
|
|
|
<div class="box tabular">
|
|
<p><%= f.select :domain, domain_options, {required: true},
|
|
{autocomplete: 'off',
|
|
data: {remote: true,
|
|
url: parents_project_quantities_path(@project),
|
|
params: "form=#{f.options[:html][:id]}"}}
|
|
%></p>
|
|
<p><%= f.select :parent_id, parent_options(@quantity.domain),
|
|
{required: true, label: :field_parent_quantity, include_blank: t('.null_parent')} %></p>
|
|
<p><%= f.text_field :name, size: 25, required: true %></p>
|
|
<p><%= f.text_field :description, style: "width: 100%;" %></p>
|
|
<p><%= f.text_field :formula, placeholder: t('.formula_placeholder'),
|
|
style: "width: 100%;" %></p>
|
|
<p><%= f.check_box :primary %></p>
|
|
</div>
|