-
Notifications
You must be signed in to change notification settings - Fork 26
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
#1027 - item availability instead of status #523
#1027 - item availability instead of status #523
Conversation
rero_ils/modules/items/templates/rero_ils/detailed_view_items.html
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Considering the commit message, it may be too verbose:
ui: replace status by availability in item detailed view
Item detail view should contains availability instead of status.
8119648
to
4a871ac
Compare
@iGormilhit : I don't use "detailed" word as we limit the length to 50 chars.
? |
@blankoworld Ok for me. Thanks. |
@@ -51,7 +55,10 @@ <h1 class="col-sm-11 col-md-11">{{ _('Barcode') }} {{ record.barcode }}</h1> | |||
library.name) | |||
}} | |||
{% if record.status %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this if can be removed I think.
@@ -51,7 +55,10 @@ <h1 class="col-sm-11 col-md-11">{{ _('Barcode') }} {{ record.barcode }}</h1> | |||
library.name) | |||
}} | |||
{% if record.status %} | |||
{{ dl(_('Status'), _(record.status)) }} | |||
{{ dl( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can be rewritten as
{{ dl(
_('Availability'),
'<i class="fa fa-circle {}"></i> {}'.format(
'text-success' if record.available else 'text-danger',
_(record|item_availability_text)
)
)}}
@@ -34,6 +34,10 @@ <h1 class="col-sm-11 col-md-11">{{ _('Barcode') }} {{ record.barcode }}</h1> | |||
<section> | |||
<!-- Item data --> | |||
<section class="py-4"> | |||
{% set availability = 'danger' %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not necessary
Item detail view contains status, as last field. But no info appears about the item availability. The availability appears in other view as a colored circle. Green circle while available. Red if not available. This change adds the colored circle before the item status. It also changes the field description to *Availability*. Co-Authored-by: Olivier DOSSMANN <[email protected]>
4a871ac
to
280f9c7
Compare
Item detail view contains status, as last field. But no info appears
about the item availability.
The availability appears in other view as a colored circle. Green circle
while available. Red if not available.
This change adds the colored circle before the item status. It also
changes the field description to Availability.