app/views/faalis/dashboard/resource/_form.html.slim in faalis-2.0.5 vs app/views/faalis/dashboard/resource/_form.html.slim in faalis-2.0.7
- old
+ new
@@ -10,10 +10,10 @@
- if index % 2 == 0
| <div class="row">
.col-sm-12.col-lg-6.col-md-6
.form-group data-name=(name)
- hash = @_fields_properties[name.to_sym] || {}
- - hash[:label] = I18n.t("forms.#{@resource.class.name.underscore.to_s}.#{name}") unless hash.include?(:label)
+ - hash[:label] = form_label(@resource, name) unless hash.include?(:label)
= f.send(:input, name, hash)
- if index % 2 != 0
| </div>