Files
chatwoot/app/views/fields/select/_form.html.erb
Sivin Varghese ccbda8b37f feat: redesign Super Admin panel (#16137)
# Pull Request Template

## Description



Fixes https://linear.app/chatwoot/issue/CW-8369/super-admin-redesign

## Type of change

- [x] New feature (non-breaking change which adds functionality)



## Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [x] I have commented on my code, particularly in hard-to-understand
areas
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream
modules
2026-10-06 13:54:08 -07:00

13 lines
614 B
Plaintext

<%# Stored values read as labels ("feature_announcement" becomes "Feature Announcement"); locale codes stay as they are. %>
<% options = field.attribute == :locale ? field.selectable_options : field.selectable_options.map { |value| [value.to_s.titleize, value] } %>
<%= render "field", f: f, field: field do %>
<%# Administrate turns selects inside this class into searchable selectize inputs. %>
<div class="field-unit--select">
<%= f.select(
field.attribute,
options_for_select(options, field.data),
include_blank: field.include_blank_option
) %>
</div>
<% end %>