From 8498e8b8bfa090e663e52b895c4913fab0c2a2fe Mon Sep 17 00:00:00 2001 From: Christophe Croullebois Date: Mon, 13 Aug 2012 17:09:30 +0200 Subject: [PATCH] [SIGNED-OFF] Bug 8637: Lack of control on mandatory in orderreveive.tt Just add a check in Jscript when the form is submited, the same as in additem.tt On Owen's suggestion I have added the red color and 'Required', the same as in additem. On Jonathan's suggestion I have used the CSS class for red and italic and I have changed a variable's name (alertString2). Signed-off-by: Chris Cormack Signed-off-by: Katrin Fischer Mandatory fields are now correctly checked on saving. --- .../prog/en/modules/acqui/orderreceive.tt | 22 ++++++++++++++++++++ .../prog/en/modules/services/itemrecorddisplay.tt | 16 ++++++-------- 2 files changed, 28 insertions(+), 10 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt index 821dcd3..0c41ffd 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt @@ -7,6 +7,28 @@ // div:last"); var tobedeleted = true; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/services/itemrecorddisplay.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/services/itemrecorddisplay.tt index 6790b3d..005a0a8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/services/itemrecorddisplay.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/services/itemrecorddisplay.tt @@ -2,22 +2,18 @@ [% FOREACH iteminfo IN iteminformation %]
  • - + [% IF (iteminfo.mandatory) %] + + [% ELSE %] + + [% END %] [% iteminfo.marc_value %] + [% IF (iteminfo.mandatory) %] Required[% END %]
  • [% END %] -- 1.7.9.5