Sha256: b13049ad4228781bfd7e3f08f1aa5a0e6bfeb7de2a45b05091d21811ada36a9c

Contents?: true

Size: 772 Bytes

Versions: 104

Compression:

Stored size: 772 Bytes

Contents

<%#
The following params are the variables that can be used in this partial.

@param form [Wallaby::FormBuilder] custom form object that adds a few helper methods and delegate missing methods to the view
@param object [Wallaby::ResourceDecorator] decorator instance which wraps the resource (e.g. ActiveRecord) instance
@param field_name [String] name of the field
@param value [Object] value of the field
@param metadata [Hash] metadata of the field
%>
<div class="form-group <%= form.error_class field_name %>">
  <%= form.label field_name, metadata[:label] %>
  <div class="row">
    <div class="col-6 col-sm-4">
      <%= form.text_field field_name, class: 'form-control' %>
    </div>
  </div>
  <%= form.error_messages field_name %>
  <%= hint_of metadata %>
</div>

Version data entries

104 entries across 13 versions & 1 rubygems

Version Path
wallaby-8.0.0 app/views/wallaby/resources/form/_line.html.erb
wallaby-8.0.0 app/views/wallaby/resources/form/_inet.html.erb
wallaby-8.0.0 app/views/wallaby/resources/form/_uuid.html.erb
wallaby-8.0.0 app/views/wallaby/resources/form/_cidr.html.erb
wallaby-8.0.0 app/views/wallaby/resources/form/_circle.html.erb
wallaby-8.0.0 app/views/wallaby/resources/form/_box.html.erb
wallaby-8.0.0 app/views/wallaby/resources/form/_lseg.html.erb
wallaby-8.0.0 app/views/wallaby/resources/form/_macaddr.html.erb
wallaby-7.0.0 app/views/wallaby/resources/form/_cidr.html.erb
wallaby-7.0.0 app/views/wallaby/resources/form/_circle.html.erb
wallaby-7.0.0 app/views/wallaby/resources/form/_box.html.erb
wallaby-7.0.0 app/views/wallaby/resources/form/_lseg.html.erb
wallaby-7.0.0 app/views/wallaby/resources/form/_macaddr.html.erb
wallaby-7.0.0 app/views/wallaby/resources/form/_line.html.erb
wallaby-7.0.0 app/views/wallaby/resources/form/_uuid.html.erb
wallaby-7.0.0 app/views/wallaby/resources/form/_inet.html.erb
wallaby-7.0.0.beta2 app/views/wallaby/resources/form/_circle.html.erb
wallaby-7.0.0.beta2 app/views/wallaby/resources/form/_box.html.erb
wallaby-7.0.0.beta2 app/views/wallaby/resources/form/_line.html.erb
wallaby-7.0.0.beta2 app/views/wallaby/resources/form/_inet.html.erb