Bugzilla – Attachment 72258 Details for
Bug 19289
Allow configuration of the fields on the 'Catalog details' form in the acquisition baskets
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19289: Use jQuery validate plugin
Bug-19289-Use-jQuery-validate-plugin.patch (text/plain), 4.15 KB, created by
Jonathan Druart
on 2018-02-27 13:47:28 UTC
(
hide
)
Description:
Bug 19289: Use jQuery validate plugin
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-02-27 13:47:28 UTC
Size:
4.15 KB
patch
obsolete
>From fc9a9962d6f89281a4227868d077519a5097e869 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 19 Jan 2018 14:13:48 -0300 >Subject: [PATCH] Bug 19289: Use jQuery validate plugin > >This is quite dirty but rewrite the JS checks is out of the scope of >this bug report. >--- > .../prog/en/modules/acqui/neworderempty.tt | 32 ++++++++++++---------- > 1 file changed, 18 insertions(+), 14 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt >index 9c5d689f2a..99955bb417 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt >@@ -68,7 +68,7 @@ > </div> > [% END %] > >-<form action="/cgi-bin/koha/acqui/addorder.pl" method="post" id="Aform" onsubmit="return Check(this);"> >+<form action="/cgi-bin/koha/acqui/addorder.pl" method="post" class="validated" id="Aform" onsubmit="return Check(this);" > > > <fieldset class="rows"> > <legend>Patrons</legend> >@@ -121,8 +121,8 @@ > <span class="label">Title</span> > <input type="hidden" name="title" value="[% title |html %]" /> <span class="title">[% title |html %]</span> > [% ELSE %] >- <label for="entertitle" class="required">Title: </label> >- <input type="text" id="entertitle" size="50" name="title" value="[% title |html %]" class="focus" /> >+ <label for="entertitle">Title: </label> >+ <input type="text" id="entertitle" size="50" name="title" value="[% title |html %]" class="focus" required="required" /> > <span class="required">Required</span> > [% END %] > </li> >@@ -545,11 +545,6 @@ > > _alertString +="-------------------------------------------------------------------\n\n"; > >- if ( isNull(ff.title,1) && isNull(ff.entertitle,1) ){ >- ok=1; >- _alertString += "\n- " + _("Title cannot be empty"); >- } >- > if(isNull(ff.budget_id,1)){ > ok=1; > _alertString += "\n- "+ _("You must select a fund"); >@@ -707,20 +702,24 @@ > [% INCLUDE 'intranet-bottom.inc' %] > > [% BLOCK display_subfield %] >- [% IF field.mandatory %] >- <label class="required">[% field.lib %] ([% field.tag %][% field.subfield %])</label> >- [% ELSE %] >- <label>[% field.lib %] ([% field.tag %][% field.subfield %])</label> >- [% END %] >+ <label>[% field.lib %] ([% field.tag %][% field.subfield %])</label> > [% IF field.authorised_value %] > [% SWITCH field.authorised_value %] > [% CASE 'branches' %] >+ [% IF field.mandatory %] >+ <select name="bib_field_value" required="required"> >+ [% ELSE %] > <select name="bib_field_value"> >+ [% END %] > <option value=""></option> > [% PROCESS options_for_libraries libraries => Branches.all( selected => "FIXME" ) %] > </select> > [% CASE 'itemtypes' %] >+ [% IF field.mandatory %] >+ <select name="bib_field_value" required="required"> >+ [% ELSE %] > <select name="bib_field_value"> >+ [% END %] > <option value=""></option> > [% PROCESS options_for_itemtypes itemtypes => ItemTypes.Get(), selected_itemtype => "FIXME" %] > </select> >@@ -729,7 +728,12 @@ > [% PROCESS 'av-build-dropbox.inc' name="bib_field_value", category=field.authorised_value, default="FIXME" %] > [% END %] > [% ELSE %] >- <input type="text" name="bib_field_value" value="[% field.value %]" /> >+ [% IF field.mandatory %] >+ <input type="text" name="bib_field_value" value="[% field.value %]" required="required"/> >+ [% ELSE %] >+ <input type="text" name="bib_field_value" value="[% field.value %]"/> >+ [% END %] >+ > [% END %] > <input type="hidden" name="bib_kohafield" value="[% field.kohafield %]" /> > <input type="hidden" name="bib_tag" value="[% field.tag %]" /> >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 19289
:
68640
|
68641
|
68810
|
68811
|
69015
|
69016
|
69114
|
69115
|
70706
|
70765
|
72256
|
72257
|
72258
|
72259
|
73800
|
73819
|
73820
|
73821
|
73822
|
73823
|
73878
|
73948
|
73994