1
0

Added form names and select tag autocomplete off

To make select tags show selected option (FF bug)
https://stackoverflow.com/questions/1479233/why-doesnt-firefox-show-the-correct-default-select-option
This commit is contained in:
cryptogopher
2019-11-28 01:26:43 +01:00
parent 628578cda5
commit ffc8dbad8c
11 changed files with 46 additions and 32 deletions

View File

@@ -13,8 +13,9 @@
<h2><%= t ".heading_new_unit" %></h2>
<%= labelled_form_for @unit,
url: project_units_path(@project),
html: {id: 'unit-form'} do |f| %>
url: project_units_path(@project),
html: {id: 'unit-add-form', name: 'unit-add-form'} do |f| %>
<%= render partial: 'units/form', locals: {f: f} %>
<%= submit_tag l(:button_create) %>
<%= link_to l(:button_cancel), "#", onclick: '$("#add-unit").hide(); return false;' %>