Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI Text Updates #900

Merged
merged 5 commits into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions hushline/model/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ def label(self) -> str:
case self.MULTILINE_TEXT:
return "Multiline Text"
case self.CHOICE_SINGLE:
return "Single Choice"
return "Single Selection"
case self.CHOICE_MULTIPLE:
return "Multiple Choice"
return "Multiple Selection"
case x:
raise Exception(f"Programming error. FieldType {x!r} not handled")
2 changes: 1 addition & 1 deletion hushline/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3150,7 +3150,7 @@ label > .meta {
}

form li {
margin-bottom: 0.325rem;
margin-bottom: 0.5rem;
display: flex;
align-items: center;
gap: 0.25rem;
Expand Down
4 changes: 2 additions & 2 deletions hushline/templates/settings/profile-field-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
</div>
</div>

<div>
<div class="field">
{{ field_form.label.label(for='label-' ~ field_form.id.data) }}
{{ field_form.label(id='label-' ~ field_form.id.data, placeholder='Field label') }}
</div>

<div>
<div class="field">
{{ field_form.field_type.label(for='field_type-' ~ field_form.id.data) }}
{{ field_form.field_type(id='field_type-' ~ field_form.id.data, class='field-type') }}
</div>
Expand Down
6 changes: 0 additions & 6 deletions hushline/templates/settings/profile-forms.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,6 @@ <h5 class="field-form-toggle">
{% if not field_form.enabled.data %}
<span class="label-meta">disabled</span>
{% endif %}
{% if not field_form.encrypted.data %}
<span class="label-meta">not encrypted</span>
{% endif %}
{% if field_form.required.data %}
<span class="label-meta">required</span>
{% endif %}
</div>
<div class="field-form-label">{{ field_form.label.data }}</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion hushline/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.3.86"
__version__ = "0.3.87"