Sha256: 31d0b4bc39d57d698134ce9920b6eb22174f9790d078a9322a1587c0decc42e9

Contents?: true

Size: 333 Bytes

Versions: 4

Compression:

Stored size: 333 Bytes

Contents

<div class="form-group">
    <label class="col-xs-12" for="example-text-input"><%= field.label %></label>
    <div class="col-sm-9">
        <%= f.select field.name, field.association_klass.all.collect { |record| [record.public_send(field.entity_field_setting.value), record.id] }, {}, { class: 'form-control' } %>
    </div>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
simple-admin-0.2.0.pre.alpha app/views/simple_admin/fields/relation/_form.html.erb
simple-admin-0.1.2.pre.alpha app/views/simple_admin/fields/relation/_form.html.erb
simple-admin-0.1.1.pre.alpha app/views/simple_admin/fields/relation/_form.html.erb
simple-admin-0.1.0.pre.alpha app/views/simple_admin/fields/relation/_form.html.erb