Sha256: 264eed18771fbf3b6cd597ffbfce9a1851fd84a0434a8d5731b95a471bdf30ac
Contents?: true
Size: 1.01 KB
Versions: 3
Compression:
Stored size: 1.01 KB
Contents
<% first = true unless local_assigns.has_key? :first -%> <% if @record.errors.count -%> <tr class="form_record-errors"> <td colspan="<%= columns.length + 1 %>" id="<%= element_messages_id :action => @record.class.name.underscore %>"> <%= active_scaffold_error_messages_for :record, :object_name => @record.class.model_name.human.downcase %> </td> </tr> <% end %> <tr class="form_record"> <% columns.each :flatten => true do |column| -%> <% next if column_renders_as(column) == :hidden next unless @record.authorized_for?(:crud_type => :create, :column => column.name) column = column.clone column.form_ui ||= :select if column.association col_class = [] col_class << 'required' if column.required? col_class << column.css_class unless column.css_class.nil? -%> <td class="<%= col_class.join(' ') %>"> <%= render :partial => form_partial_for_column(column), :locals => { :column => column, :scope => scope } -%> </td> <% end -%> <td><%= batch_create_multiple_remove_link unless first %></td> </tr>
Version data entries
3 entries across 3 versions & 1 rubygems