Katrin Fischer
b7afb8e8a2
This moves the identical code used to display the serial status from the different templates into one common include. To test: * Add a subscription * Receive several issues, make sure 2 are late * Claim one of the late issues * Verify the status displays nicely on these pages: * Subscription detail page > issues tab * Catalog detail page > subscription tab * Serial claims page * Serial collection page of your subscription Note: there was some code for the subscription detail page that should have displayed the claim date, but didn't work. To keep things simpler and identical to before, I have left that bit out for now. Sponsored-by: The Research University in the Helmholtz Association (KIT) Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
12 lines
752 B
HTML
12 lines
752 B
HTML
[% IF ( serial.status1 ) %]<span>Expected</span>[% END %]
|
|
[% IF ( serial.status2 ) %]<span>Arrived</span>[% END %]
|
|
[% IF ( serial.status3 ) %]<span>Late</span>[% END %]
|
|
[% IF ( serial.status4 ) %]<span>Missing</span>[% END %]
|
|
[% IF ( serial.status41 ) %]<span>Missing (never received)</span>[% END %]
|
|
[% IF ( serial.status42 ) %]<span>Missing (sold out)</span>[% END %]
|
|
[% IF ( serial.status43 ) %]<span>Missing (damaged)</span>[% END %]
|
|
[% IF ( serial.status44 ) %]<span>Missing (lost)</span>[% END %]
|
|
[% IF ( serial.status5 ) %]<span>Not available</span>[% END %]
|
|
[% IF ( serial.status6 ) %]<span>Delete</span>[% END %]
|
|
[% IF ( serial.status7 ) %]<span>Claimed</span>[% END %]
|
|
[% IF ( serial.status8 ) %]<span>Stopped</span>[% END %]
|