Added missing require attribute.
This commit is contained in:
parent
dbeeda47ab
commit
83bc417933
2 changed files with 3 additions and 2 deletions
|
@ -4,6 +4,7 @@ class App.ControllerForm extends App.Controller
|
|||
@[key] = value
|
||||
@attribute_count = 0
|
||||
|
||||
if !@form
|
||||
@form = @formGen()
|
||||
# @log 'form', @form
|
||||
if @el
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<select id="<%= @attribute.id %>" class="<%= @attribute.class %>" name="<%= @attribute.name %>" <%= @attribute.multiple %>>
|
||||
<select id="<%= @attribute.id %>" class="<%= @attribute.class %>" name="<%= @attribute.name %>" <%= @attribute.multiple %> <%= @attribute.required %> <%= @attribute.autofocus %>>
|
||||
<% for row in @attribute.options: %>
|
||||
<option value="<%= row.value %>" <%= row.selected %> <%= row.disabled %>><%= row.name %></option>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in a new issue