Unit: limit symbol length, change name:string -> description:text

Closes #11
Closes #12
This commit is contained in:
2024-11-24 15:13:59 +01:00
parent d6fdff252a
commit 3711251656
6 changed files with 28 additions and 16 deletions

View File

@@ -7,8 +7,8 @@
maxlength: @unit.class.columns_hash['symbol'].limit, autocomplete: "off" %>
</td>
<td>
<%= form.text_field :name, form: :unit_form, size: 30,
maxlength: @unit.class.columns_hash['name'].limit, autocomplete: "off" %>
<%= form.text_area :description, form: :unit_form, cols: 30, rows: 1, escape: false,
maxlength: @unit.class.columns_hash['description'].limit, autocomplete: "off" %>
</td>
<td>
<% unless @unit.base.nil? %>