app/views/madmin/fields/belongs_to/_form.html.erb in madmin-0.1.0 vs app/views/madmin/fields/belongs_to/_form.html.erb in madmin-0.1.1
- old
+ new
@@ -1,14 +1,2 @@
-<div class="form-group">
- <%= form.label field.key %>
- <%=
- form.select field.association_foreign_key,
- options_from_collection_for_select(
- field.association_collection,
- :id,
- field.association_display_value,
- field.association_id_or_blank_for(resource)
- ),
- { include_blank: true },
- class: 'form-control'
- %>
-</div>
+<%= form.label field.attribute_name, class: "inline-block w-32 flex-shrink-0" %>
+<%= form.select field.to_param, field.options_for_select(record), { prompt: true }, { class: "form-select" } %>