Skip to content

Commit

Permalink
in progress
Browse files Browse the repository at this point in the history
Signed-off-by: Johnny Mariéthoz <[email protected]>
  • Loading branch information
jma committed Nov 20, 2024
1 parent fa88227 commit 79d3f9c
Show file tree
Hide file tree
Showing 14 changed files with 182 additions and 166 deletions.
6 changes: 5 additions & 1 deletion rero_ils/jsonschemas/common/countries-v0.0.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,10 @@
"widget": {
"formlyConfig": {
"props": {
"placeholder": "Select an option…",
"sort": true,
"sortOrder": "asc",
"filter": true,
"itemCssClass": "col-lg-4",
"options": [
{
Expand Down Expand Up @@ -1887,4 +1891,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,8 @@ <h3>
<public-search-holdings
documentpid="{{ record.pid }}"
viewcode="{{ viewcode }}"
></public-search-holdings>
class="rero-ils-ui"
/>
{% endif %}
<!-- ILL REQUEST ON GLOBAL VIEW-->
{% if holdings_count > 0 %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,4 @@ <h5 class="modal-title">{{ _('Document is available') }}</h5>
</div>
</div>
</div>

{%- endblock body %}
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,8 @@
#}
{% extends 'rero_ils/page.html' %}

{%- block css %}
{{ super() }}
{{ node_assets('@rero/rero-ils-ui/dist/public-patron-profile', ['styles.*css'], 'css') }}
{%- endblock css %}

{%- block body %}
<public-patron-profile language="{{ current_i18n.locale.language[:2] }}" viewcode="{{ viewcode }}"></public-patron-profile>
<public-patron-profile language="{{ current_i18n.locale.language[:2] }}" viewcode="{{ viewcode }}" class="rero-ils-ui"/>
{%- endblock body %}

{%- block javascript %}
Expand Down
4 changes: 2 additions & 2 deletions rero_ils/modules/patrons/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,10 @@ def get_messages(patron_pid):
for note in patron.get("notes", []):
if note.get("type") == "public_note":
messages.append({"type": "warning", "content": note.get("content")})
bootstrap_alert_mapping = {"error": "danger"}
prime_alert_mapping = {"warning": "warn"}
for message in messages:
msg_type = message["type"]
message["type"] = bootstrap_alert_mapping.get(msg_type, msg_type)
message["type"] = prime_alert_mapping.get(msg_type, msg_type)
return jsonify(messages)


Expand Down
12 changes: 7 additions & 5 deletions rero_ils/modules/users/jsonschemas/users/user-v0.0.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
},
"gender": {
"title": "Gender",
"type": "string",
"enum": [
"male",
"female",
Expand All @@ -86,15 +87,16 @@
"widget": {
"formlyConfig": {
"props": {
"placeholder": "Select an option…",
"options": [
{
"label": "male",
"value": "male"
},
{
"label": "female",
"value": "female"
},
{
"label": "male",
"value": "male"
},
{
"label": "other",
"value": "other"
Expand Down Expand Up @@ -294,4 +296,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

{%- block body %}
<h1 class="mt-2">{{ _('Change password') }}</h1>
<public-user-password-change referer="{{ request.referrer }}"></public-user-password-change>
<public-user-password-change referer="{{ request.referrer }}" class="rero-ils-ui" />
{%- endblock body %}

{%- block javascript %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

{%- block body %}
<h1 class="mt-2">{{ _('Profile') }}</h1>
<public-user-profile-edit referer="{{ request.referrer }}"></public-user-profile-edit>
<public-user-profile-edit referer="{{ request.referrer }}" class="rero-ils-ui"/>
{%- endblock body %}

{%- block javascript %}
Expand Down
Loading

0 comments on commit 79d3f9c

Please sign in to comment.