Skip to content

Commit

Permalink
profile: add SUI styling for locale preferences field
Browse files Browse the repository at this point in the history
  • Loading branch information
jennur authored and kpsherva committed May 5, 2023
1 parent 75c3708 commit 4b000c7
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,13 @@
{%- set form = preferences_form %}
<form {% if not read_only %}method="POST"{% endif %} name="preferences_form" class="ui form">
{%- for field in form %}
{%- if field.widget.input_type == 'hidden' %}
{{ field() }}
{%- else %}
{{ render_field(field, placeholder=field.label.text, field_class="form-control no-dots-list pl-0") }}
{%- endif %}
{%- if field.widget.input_type == 'hidden' %}
{{ field() }}
{%- elif field.type == 'SelectField' %}
{{ render_field(field, field_class="ui dropdown") }}
{%- else %}
{{ render_field(field, placeholder=field.label.text, field_class="form-control no-dots-list pl-0") }}
{%- endif %}
{%- endfor %}
<div class="form-actions">
<a href="." class="ui button"><i class="close icon"></i> {{ _('Cancel') }}</a>
Expand Down

0 comments on commit 4b000c7

Please sign in to comment.