|
Lines 68-74
Link Here
|
| 68 |
</div> |
68 |
</div> |
| 69 |
[% END %] |
69 |
[% END %] |
| 70 |
|
70 |
|
| 71 |
<form action="/cgi-bin/koha/acqui/addorder.pl" method="post" id="Aform" onsubmit="return Check(this);"> |
71 |
<form action="/cgi-bin/koha/acqui/addorder.pl" method="post" class="validated" id="Aform" onsubmit="return Check(this);" > |
| 72 |
|
72 |
|
| 73 |
<fieldset class="rows"> |
73 |
<fieldset class="rows"> |
| 74 |
<legend>Patrons</legend> |
74 |
<legend>Patrons</legend> |
|
Lines 121-128
Link Here
|
| 121 |
<span class="label">Title</span> |
121 |
<span class="label">Title</span> |
| 122 |
<input type="hidden" name="title" value="[% title |html %]" /> <span class="title">[% title |html %]</span> |
122 |
<input type="hidden" name="title" value="[% title |html %]" /> <span class="title">[% title |html %]</span> |
| 123 |
[% ELSE %] |
123 |
[% ELSE %] |
| 124 |
<label for="entertitle" class="required">Title: </label> |
124 |
<label for="entertitle">Title: </label> |
| 125 |
<input type="text" id="entertitle" size="50" name="title" value="[% title |html %]" class="focus" /> |
125 |
<input type="text" id="entertitle" size="50" name="title" value="[% title |html %]" class="focus" required="required" /> |
| 126 |
<span class="required">Required</span> |
126 |
<span class="required">Required</span> |
| 127 |
[% END %] |
127 |
[% END %] |
| 128 |
</li> |
128 |
</li> |
|
Lines 545-555
Link Here
|
| 545 |
|
545 |
|
| 546 |
_alertString +="-------------------------------------------------------------------\n\n"; |
546 |
_alertString +="-------------------------------------------------------------------\n\n"; |
| 547 |
|
547 |
|
| 548 |
if ( isNull(ff.title,1) && isNull(ff.entertitle,1) ){ |
|
|
| 549 |
ok=1; |
| 550 |
_alertString += "\n- " + _("Title cannot be empty"); |
| 551 |
} |
| 552 |
|
| 553 |
if(isNull(ff.budget_id,1)){ |
548 |
if(isNull(ff.budget_id,1)){ |
| 554 |
ok=1; |
549 |
ok=1; |
| 555 |
_alertString += "\n- "+ _("You must select a fund"); |
550 |
_alertString += "\n- "+ _("You must select a fund"); |
|
Lines 707-726
Link Here
|
| 707 |
[% INCLUDE 'intranet-bottom.inc' %] |
702 |
[% INCLUDE 'intranet-bottom.inc' %] |
| 708 |
|
703 |
|
| 709 |
[% BLOCK display_subfield %] |
704 |
[% BLOCK display_subfield %] |
| 710 |
[% IF field.mandatory %] |
705 |
<label>[% field.lib %] ([% field.tag %][% field.subfield %])</label> |
| 711 |
<label class="required">[% field.lib %] ([% field.tag %][% field.subfield %])</label> |
|
|
| 712 |
[% ELSE %] |
| 713 |
<label>[% field.lib %] ([% field.tag %][% field.subfield %])</label> |
| 714 |
[% END %] |
| 715 |
[% IF field.authorised_value %] |
706 |
[% IF field.authorised_value %] |
| 716 |
[% SWITCH field.authorised_value %] |
707 |
[% SWITCH field.authorised_value %] |
| 717 |
[% CASE 'branches' %] |
708 |
[% CASE 'branches' %] |
|
|
709 |
[% IF field.mandatory %] |
| 710 |
<select name="bib_field_value" required="required"> |
| 711 |
[% ELSE %] |
| 718 |
<select name="bib_field_value"> |
712 |
<select name="bib_field_value"> |
|
|
713 |
[% END %] |
| 719 |
<option value=""></option> |
714 |
<option value=""></option> |
| 720 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => "FIXME" ) %] |
715 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => "FIXME" ) %] |
| 721 |
</select> |
716 |
</select> |
| 722 |
[% CASE 'itemtypes' %] |
717 |
[% CASE 'itemtypes' %] |
|
|
718 |
[% IF field.mandatory %] |
| 719 |
<select name="bib_field_value" required="required"> |
| 720 |
[% ELSE %] |
| 723 |
<select name="bib_field_value"> |
721 |
<select name="bib_field_value"> |
|
|
722 |
[% END %] |
| 724 |
<option value=""></option> |
723 |
<option value=""></option> |
| 725 |
[% PROCESS options_for_itemtypes itemtypes => ItemTypes.Get(), selected_itemtype => "FIXME" %] |
724 |
[% PROCESS options_for_itemtypes itemtypes => ItemTypes.Get(), selected_itemtype => "FIXME" %] |
| 726 |
</select> |
725 |
</select> |
|
Lines 729-735
Link Here
|
| 729 |
[% PROCESS 'av-build-dropbox.inc' name="bib_field_value", category=field.authorised_value, default="FIXME" %] |
728 |
[% PROCESS 'av-build-dropbox.inc' name="bib_field_value", category=field.authorised_value, default="FIXME" %] |
| 730 |
[% END %] |
729 |
[% END %] |
| 731 |
[% ELSE %] |
730 |
[% ELSE %] |
| 732 |
<input type="text" name="bib_field_value" value="[% field.value %]" /> |
731 |
[% IF field.mandatory %] |
|
|
732 |
<input type="text" name="bib_field_value" value="[% field.value %]" required="required"/> |
| 733 |
[% ELSE %] |
| 734 |
<input type="text" name="bib_field_value" value="[% field.value %]"/> |
| 735 |
[% END %] |
| 736 |
|
| 733 |
[% END %] |
737 |
[% END %] |
| 734 |
<input type="hidden" name="bib_kohafield" value="[% field.kohafield %]" /> |
738 |
<input type="hidden" name="bib_kohafield" value="[% field.kohafield %]" /> |
| 735 |
<input type="hidden" name="bib_tag" value="[% field.tag %]" /> |
739 |
<input type="hidden" name="bib_tag" value="[% field.tag %]" /> |
| 736 |
- |
|
|