Sha256: 250770ad2be1509647b92393f9070080eb74213970cd8a8d05d441a6c8d19896
Contents?: true
Size: 913 Bytes
Versions: 5
Compression:
Stored size: 913 Bytes
Contents
<%%= render 'manifest/shared/form_error_list', object: @<%= name.underscore %> %> <%%= form_for [:manifest, @<%= name.underscore %>], builder: Manifest::LabelledFormBuilder do |f| %> <% attributes.each do |attribute| %> <% if [:integer, :decimal, :float, :string].include?(attribute.type) %> <%%= f.text_field :<%= attribute.name %> %> <% elsif [:boolean].include?(attribute.type) %> <%%= f.check_box :<%= attribute.name %> %> <% elsif [:text].include?(attribute.type) %> <%%= f.text_area :<%= attribute.name %> %> <% elsif [:date].include?(attribute.type) %> <%%= f.date_select :<%= attribute.name %> %> <% elsif [:datetime].include?(attribute.type) %> <%%= f.datetime_select :<%= attribute.name %> %> <% elsif [:time].include?(attribute.type) %> <%%= f.time_select :<%= attribute.name %> %> <% end %> <% end %> <%%= f.submit %> <%% end %>
Version data entries
5 entries across 5 versions & 1 rubygems