(bug #3552) This mark mandatory fields with a red asterisk

Many librarian ask for a way to know if a field is mandatory before validation.
This commit is contained in:
Jean-André Santoni 2009-08-28 23:47:51 +02:00 committed by Henri-Damien LAURENT
parent ceefe1ad6a
commit 404fbf8f58
2 changed files with 5 additions and 0 deletions

View file

@ -124,3 +124,7 @@ a.tagnum {
#cataloguing_additem_newitem .input_marceditor {
width : auto;
}
.mandatory_marker {
color: red;
}

View file

@ -746,6 +746,7 @@ function unHideSubfield(index,labelindex) { // FIXME :: is it used ?
<!-- TMPL_UNLESS NAME="advancedMARCEditor" -->
<!-- TMPL_IF name="mandatory" --><span class="subfield subfield_mandatory"><!-- TMPL_ELSE --><span class="subfield"><!-- /TMPL_IF -->
<!-- TMPL_VAR NAME="marc_lib_plain" -->
<!-- TMPL_IF NAME="mandatory" --><span class="mandatory_marker" title="This field is mandatory">*</span><!-- /TMPL_IF -->
</span>
</label>
<!-- /TMPL_UNLESS -->