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

Revert "Custom User Data Field Minor UI Change" #35302

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,6 @@
{% endblocktrans %}">
</span>
</th>
<!-- ko if: requiredForOptions.length > 0 -->
<th class="col-md-1">
{% trans "Required for" %}
<span class="hq-help-template"
data-title="{% trans "Required for" %}"
data-content="{% blocktrans with entity_string=view.entity_string|lower %}
Specify which {{ entity_string }} type this field is required for.
{% endblocktrans %}">
</span>
</th>
<!-- /ko -->
<th class="col-md-3">
{% if request|request_has_privilege:"REGEX_FIELD_VALIDATION" or couch_user.is_superuser %}
{% trans "Validation" %}
Expand Down Expand Up @@ -99,20 +88,18 @@
<input class="form-control" type="text" data-bind="value: label, attr: { 'readonly': !isEditable() }"/>
</td>
<td>
<div class="form-check mt-2">
<div class="form-check mt-2 d-flex align-items-center">
<input class="form-check-input" type="checkbox" data-bind="checked: is_required, attr: { 'disabled': !isEditable() }"/>
</div>
</td>
<!-- ko if: $root.requiredForOptions.length > 0 -->
<td>
<select class="form-select" data-bind="options: $root.requiredForOptions,
<!-- ko if: is_required() && $root.requiredForOptions.length > 0 -->
<select class="form-select ms-2" data-bind="options: $root.requiredForOptions,
optionsText: 'text',
optionsValue: 'value',
value: required_for,
attr: { disabled: !isEditable() || !is_required() }">
attr: { disabled: !isEditable() }">
</select>
<!-- /ko -->
</div>
</td>
<!-- /ko -->
<td>

{% if request|request_has_privilege:"REGEX_FIELD_VALIDATION" or couch_user.is_superuser %}
Expand Down
Loading