Skip to content

Commit 4b000c7

Browse files
jennurkpsherva
authored andcommitted
profile: add SUI styling for locale preferences field
1 parent 75c3708 commit 4b000c7

File tree

1 file changed

+7
-5
lines changed
  • invenio_userprofiles/templates/semantic-ui/invenio_userprofiles/settings

1 file changed

+7
-5
lines changed

invenio_userprofiles/templates/semantic-ui/invenio_userprofiles/settings/profile.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,13 @@
7474
{%- set form = preferences_form %}
7575
<form {% if not read_only %}method="POST"{% endif %} name="preferences_form" class="ui form">
7676
{%- for field in form %}
77-
{%- if field.widget.input_type == 'hidden' %}
78-
{{ field() }}
79-
{%- else %}
80-
{{ render_field(field, placeholder=field.label.text, field_class="form-control no-dots-list pl-0") }}
81-
{%- endif %}
77+
{%- if field.widget.input_type == 'hidden' %}
78+
{{ field() }}
79+
{%- elif field.type == 'SelectField' %}
80+
{{ render_field(field, field_class="ui dropdown") }}
81+
{%- else %}
82+
{{ render_field(field, placeholder=field.label.text, field_class="form-control no-dots-list pl-0") }}
83+
{%- endif %}
8284
{%- endfor %}
8385
<div class="form-actions">
8486
<a href="." class="ui button"><i class="close icon"></i> {{ _('Cancel') }}</a>

0 commit comments

Comments
 (0)