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

#1027 - item availability instead of status #523

Merged
merged 1 commit into from
Oct 3, 2019

Conversation

blankoworld
Copy link
Contributor

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.

@BadrAly BadrAly self-requested a review September 24, 2019 09:23
@iGormilhit iGormilhit self-requested a review September 24, 2019 09:23
Copy link

@iGormilhit iGormilhit left a 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.

@blankoworld blankoworld force-pushed the doo-#1027-replace-item-status branch from 8119648 to 4a871ac Compare September 24, 2019 09:35
@blankoworld
Copy link
Contributor Author

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.

@iGormilhit : I don't use "detailed" word as we limit the length to 50 chars.
Is that OK like this:

ui: replace status by availability in item view

?

@iGormilhit
Copy link

@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 %}
Copy link
Contributor

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(
Copy link
Contributor

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' %}
Copy link
Contributor

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]>
@blankoworld blankoworld force-pushed the doo-#1027-replace-item-status branch from 4a871ac to 280f9c7 Compare September 30, 2019 08:30
@iGormilhit iGormilhit removed their request for review October 1, 2019 10:12
@blankoworld blankoworld requested a review from jma October 2, 2019 07:29
@blankoworld blankoworld merged commit 68bfc23 into rero:dev Oct 3, 2019
@blankoworld blankoworld deleted the doo-#1027-replace-item-status branch October 3, 2019 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants