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