Sha256: 8292d040279d50ab25b1188f8f9316db968ec136d8c6e74c724b346f86763703

Contents?: true

Size: 618 Bytes

Versions: 4

Compression:

Stored size: 618 Bytes

Contents

<% decorated.errors[:base].try do |messages| %>
  <% Array(messages).each do |message| %>
    <div class="alert alert-danger alert-dismissible" role="alert">
      <%= raw message %>
    </div>
  <% end %>
<% end %>
<% decorated.form_field_names.each do |field_name| %>
  <%= render decorated.form_type_of(field_name),
    form: form,
    object: decorated,
    field_name: field_name,
    value: decorated.try(field_name),
    metadata: decorated.form_metadata_of(field_name)
  %>
<% end %>
<%= form.button wt('buttons.save'), class: 'btn btn-primary' %>
<%= cancel_link html_options: { class: 'btn btn-default' } %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wallaby-8.0.0 app/views/wallaby/resources/_form.html.erb
wallaby-7.0.0 app/views/wallaby/resources/_form.html.erb
wallaby-7.0.0.beta2 app/views/wallaby/resources/_form.html.erb
wallaby-7.0.0.beta1 app/views/wallaby/resources/_form.html.erb