docbrown/app/views/admin/profile_fields/_ungrouped_profile_fields.html.erb
Rajat Talesra 26c72096ba
Remove bootstrap classes : collapse hide show (#18917)
* Removed bootstrap from listing_categories, listings, navigation_links

* Removed not-used bootstrap classes from admin/tags

* Removed bootstrap from admin/settings

* Fix collapse glitch in profile-fields

* Feedback partial progress

* Feedback partial progress

* Removed form-control

* Replaced card with crayons-card

* Fixed profile field UI

* Removed collapse hide and show classes

* Removed collapse hide and show classes

* Removed collapse hide and show classes

* Nit height fix

* Nit width fix

* Updated tests
2023-01-06 21:25:49 +05:30

16 lines
778 B
Text

<% @ungrouped_profile_fields.each do |field| %>
<div class="flex flex-wrap -mx-4 my-3">
<details class="crayons-card mb-4 w-100">
<summary class="crayons-subtitle-2 p-5"><%= field.label %></summary>
<div id="<%= field.attribute_name %>_container" class="p-5 pt-0">
<div class="flex flex-col p-6 mb-6 gap-1">
<%= form_for [:admin, field] do |form| %>
<%= render "profile_field_form", form: form, group: nil %>
<%= form.submit class: "c-btn c-btn--primary" %>
<% end %>
<%= button_to "Delete Profile Field", admin_profile_field_path(field), data: { confirm: "Are you sure?" }, method: :delete, class: "crayons-btn crayons-btn--danger" %>
</div>
</div>
</details>
</div>
<% end %>