Bug 13272: Adds type="text" to inputs missing it
authorChristopher Brannon <cbrannon@cdalibrary.org>
Sun, 16 Sep 2018 22:06:10 +0000 (22:06 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 1 Oct 2018 11:18:30 +0000 (11:18 +0000)
Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

17 files changed:
koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc
koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc
koha-tmpl/intranet-tmpl/prog/en/includes/circ-search.inc
koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc
koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt
koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_auth_search.tt
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt
koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt
koha-tmpl/intranet-tmpl/prog/en/modules/circ/offline.tt
koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt
koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt
koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt
koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt
koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt
koha-tmpl/intranet-tmpl/prog/en/modules/tools/import_borrowers.tt

index b49fd5d..8d665d8 100644 (file)
@@ -59,8 +59,8 @@
             <fieldset class="rows" id="manual_restriction_form">
                 <legend>Add manual restriction</legend>
                 <ol>
-                    <li><label for="rcomment">Comment:</label> <input type="text" id="rcomment" name="comment" /></li>
-                    <li><label for="rexpiration">Expiration:</label> <input name="expiration" id="rexpiration" size="10" value="" class="datepicker" />
+                    <li><label for="rcomment">Comment:</label> <input type="text" id="rcomment" name="comment" type="text" /></li>
+                    <li><label for="rexpiration">Expiration:</label> <input name="expiration" id="rexpiration" size="10" value="" class="datepicker" type="text" />
                         <a href="#" class="clear-date" id="clear-date-rexpiration">Clear date</a></li>
                 </ol>
             <fieldset class="action"><input type="submit" value="Add restriction" /> <a href="#" class="cancel" id="cancel_manual_restriction">Cancel</a></fieldset>
index 0737885..215ebaf 100644 (file)
@@ -9,14 +9,15 @@
 <div id="checkin_search" class="residentsearch">
     <p class="tip">Scan a barcode to check in:</p>
     <form method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off">
-        <input class="head-searchbox" name="barcode" id="ret_barcode" size="40" />
+        <input class="head-searchbox" name="barcode" id="ret_barcode" size="40" type="text" />
+
         <input value="Submit" class="submit" type="submit" />
     </form>
 </div>
 <div id="renew_search" class="residentsearch">
     <p class="tip">Scan a barcode to renew:</p>
     <form method="post" action="/cgi-bin/koha/circ/renew.pl" autocomplete="off">
-        <input class="head-searchbox" name="barcode" id="ren_barcode" size="40" />
+        <input class="head-searchbox" name="barcode" id="ren_barcode" size="40" type="text" />
         <input value="Submit" class="submit" type="submit" />
     </form>
 </div>
index 6cb15b0..e94b3e4 100644 (file)
@@ -8,14 +8,14 @@
 <div id="checkin_search" class="residentsearch">
     <p class="tip">Scan a barcode to check in:</p>
     <form method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off">
-        <input class="head-searchbox" name="barcode" id="ret_barcode" size="40" accesskey="r" />
+        <input class="head-searchbox" name="barcode" id="ret_barcode" size="40" accesskey="r" type="text" />
         <input value="Submit" class="submit" type="submit" />
     </form>
 </div>
 <div id="renew_search" class="residentsearch">
     <p class="tip">Scan a barcode to renew:</p>
     <form method="post" action="/cgi-bin/koha/circ/renew.pl" autocomplete="off">
-        <input class="head-searchbox" name="barcode" id="ren_barcode" size="40" />
+        <input class="head-searchbox" name="barcode" id="ren_barcode" size="40" type="text" />
         <input value="Submit" class="submit" type="submit" />
     </form>
 </div>
index 9c4f4ee..3b6d0a0 100644 (file)
@@ -8,14 +8,14 @@
 <div id="checkin_search" class="residentsearch">
     <p class="tip">Scan a barcode to check in:</p>
     <form method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off">
-        <input name="barcode" class="head-searchbox" id="ret_barcode" size="40" accesskey="r" />
+        <input name="barcode" class="head-searchbox" id="ret_barcode" size="40" accesskey="r" type="text" />
         <input value="Submit" class="submit" type="submit" />
     </form>
 </div>
 <div id="renew_search" class="residentsearch">
     <p class="tip">Scan a barcode to renew:</p>
         <form method="post" action="/cgi-bin/koha/circ/renew.pl" autocomplete="off">
-            <input class="head-searchbox" name="barcode" id="ren_barcode" size="40" />
+            <input class="head-searchbox" name="barcode" id="ren_barcode" size="40" type="text" />
             <input value="Submit" class="submit" type="submit" />
         </form>
     </div>
index 72405d8..b56fab9 100644 (file)
     <div id="checkin_search" class="residentsearch">
     <p class="tip">Scan a barcode to check in:</p>
     <form method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off">
-    <input class="head-searchbox" name="barcode" id="ret_barcode" size="40" accesskey="r" />
+    <input class="head-searchbox" name="barcode" id="ret_barcode" size="40" accesskey="r" type="text" />
     <input value="Submit" class="submit" type="submit" />
     </form>
     </div>
         <div id="renew_search" class="residentsearch">
         <p class="tip">Scan a barcode to renew:</p>
             <form method="post" action="/cgi-bin/koha/circ/renew.pl" autocomplete="off">
-                <input class="head-searchbox" name="barcode" id="ren_barcode" size="40" />
+                <input class="head-searchbox" name="barcode" id="ren_barcode" size="40" type="text" />
                 <input value="Submit" class="submit" type="submit" />
             </form>
         </div>
index 79bd43b..6ceb352 100644 (file)
@@ -167,7 +167,7 @@ tr.selected { background-color : #FFFFCC; } tr.selected td { background-color :
         [% IF ( show_nextbutton ) %]
             <input type="button" name="changepage_next" value="Next page" data-currentpage="[% current_page | html %]" />
         [% END %]
-        <br />Go to page : <input id="goto_page" name="goto_page" value="[% current_page | html %]" size="4" /><input type="submit" name="changepage_goto" value="Go" />
+        <br />Go to page : <input id="goto_page" name="goto_page" value="[% current_page | html %]" size="4" type="text" /> <input type="submit" name="changepage_goto" value="Go" />
     </form>
 
     [% ELSE %]
index 5bc7e00..e90dd87 100644 (file)
                         [% END %]
                         </select>
                     </td>
-                    <td><input name="maxissueqty" size="3" /></td>
-                    <td><input name="maxonsiteissueqty" size="3" /></td>
-                    <td><input name="max_holds" size="3" /></td>
+                    <td><input name="maxissueqty" size="3" type="text" /></td>
+                    <td><input name="maxonsiteissueqty" size="3" type="text" /></td>
+                    <td><input name="max_holds" size="3" type="text" /></td>
                     <td class="actions"><button type="submit" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> Add</td>
                 </tr>
             </table>
index dd6d26f..a72dc19 100644 (file)
         [% IF ( show_nextbutton ) %]
             <input type="button" name="changepage_next" value="Next page" data-currentpage="[% current_page | html %]" />
         [% END %]
-        <br />Go to page : <input id="goto_page" name="goto_page" value="[% current_page | html %]" size="4" /><input type="submit" name="changepage_goto" value="Go" />
+        <br />Go to page : <input id="goto_page" name="goto_page" value="[% current_page | html %]" size="4" type="text" /><input type="submit" name="changepage_goto" value="Go" />
     </form>
 
 <p><form method="get" action="/cgi-bin/koha/cataloguing/z3950_auth_search.pl"><input type="hidden" name="authid" value="[% authid | html %]" /><input type="submit" value="Try another search"/></form></p>
index b52a283..6216c99 100644 (file)
         [% IF ( show_nextbutton ) %]
             <input type="button" name="changepage_next" value="Next page" data-currentpage="[% current_page | html %]" />
         [% END %]
-        <br />Go to page : <input id="goto_page" name="goto_page" value="[% current_page | html %]" size="4" /><input type="submit" name="changepage_goto" value="Go" />
+        <br />Go to page : <input id="goto_page" name="goto_page" value="[% current_page | html %]" size="4" type="text" /><input type="submit" name="changepage_goto" value="Go" />
     </form>
 
     [% ELSE %]
index adc3cf1..01e25b2 100644 (file)
             </li>
             <li>
                 <label for="barcode">Enter barcode: </label>
-                <input name="barcode" id="barcode" size="15" class="focus" /> <input type="submit" value="Submit" />
+                <input name="barcode" id="barcode" size="15" class="focus" type="text" /> <input type="submit" value="Submit" />
             </li>
                        </ol>
         </fieldset>
index 3bd92c2..4cd0174 100644 (file)
@@ -94,7 +94,7 @@
                             <fieldset>
                                 <legend>Check In</legend>
                                 <label for="checkin-barcode">Enter item barcode: </label>
-                                <input name="barcode" id="checkin-barcode" size="14" class="focus"/>
+                                <input name="barcode" id="checkin-barcode" size="14" class="focus" type="text" />
                                 <input type="submit" class="submit" value="Submit" />
                             </fieldset>
                         </div>
index 11c3eca..39c6b70 100644 (file)
 
                             <label for="barcode">Enter item barcode: </label>
 
-                            <input name="barcode" id="barcode" size="14" class="focus"/>
+                            <input name="barcode" id="barcode" size="14" class="focus" type="text" />
 
                             <input type="submit" class="submit" value="Submit" />
                         </fieldset>
index 74b24f6..e1949f0 100644 (file)
        <legend>Check in</legend>
             <label for="barcode">Enter item barcode: </label>
                        [% IF ( exemptfine ) %]
-                       <input name="barcode" id="barcode" size="14" class="focus alert"/>
+                       <input name="barcode" id="barcode" size="14" class="focus alert" type="text" />
                        [% ELSIF ( dropboxmode ) %]
-                       <input name="barcode" id="barcode" size="14" class="focus alert"/>
+                       <input name="barcode" id="barcode" size="14" class="focus alert" type="text" />
                        [% ELSE %]
-                       <input name="barcode" id="barcode" size="14" class="focus"/>
+                       <input name="barcode" id="barcode" size="14" class="focus" type="text" />
                        [% END %]
             <input type="submit" class="submit" value="Submit" />
 
index fef3fb6..e454295 100644 (file)
                         <legend id="manual_restriction_lgd">Add manual restriction</legend>
                         <ol>
                             <li><label for="debarred_comment">Comment: </label><input type="text" id="debarred_comment" name="debarred_comment" onchange="$('#add_debarment').val(1);" /></li>
-                            <li><label for="debarred_expiration">Expiration: </label><input name="debarred_expiration" id="debarred_expiration" size="10" value="" class="datepicker" onchange="$('#add_debarment').val(1);" />
+                            <li><label for="debarred_expiration">Expiration: </label><input name="debarred_expiration" id="debarred_expiration" size="10" value="" class="datepicker" onchange="$('#add_debarment').val(1);" type="text" />
                                     <a href='javascript:void(0)' onclick="$('#debarred_expiration').val('');">Clear date</a></li>
 
                         </ol>
index 14384b3..2f8e1fb 100644 (file)
     <li>
         <label for="paid">Collect from patron: </label>
             <!-- default to paying all -->
-        <input name="paid" id="paid" value="[% amountoutstanding | html %]" />
+        <input name="paid" id="paid" value="[% amountoutstanding | html %]"  type="text" />
     </li>
     [% SET payment_types = AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %]
     [% IF payment_types %]
                 <li>
                     <label for="paid">Writeoff amount: </label>
                     <!-- default to writing off all -->
-                    <input name="amountwrittenoff" id="amountwrittenoff" value="[% amountoutstanding | $Price on_editing => 1 | html %]" />
+                    <input name="amountwrittenoff" id="amountwrittenoff" value="[% amountoutstanding | $Price on_editing => 1 | html %]" type="text" />
                 </li>
             </ol>
         </fieldset>
             <label for="paid">Collect from patron: </label>
         [% END %]
         <!-- default to paying all -->
-        <input name="paid" id="paid" value="[% total | format('%.2f') %]" />
+        <input name="paid" id="paid" value="[% total | format('%.2f') %]" type="text" />
     </li>
     [% SET payment_types = AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %]
     [% IF payment_types %]
index bf6220d..afbacf3 100644 (file)
        [% IF ( reserve_in_future ) %]
        <li>
         <label for="from">Hold starts on date:</label>
-        <input name="reserve_date" id="from" size="10" class="datepickerfrom">
+        <input name="reserve_date" id="from" size="10" class="datepickerfrom" type="text" >
         <a href="#" id="clear-date-from" class="clear-date">Clear date</a>
        </li>
        [% END %]
 
        <li>
         <label for="to">Hold expires on date:</label>
-        <input name="expiration_date" id="to" size="10" class="datepickerto" />
+        <input name="expiration_date" id="to" size="10" class="datepickerto" / type="text" >
         <a href="#" id="clear-date-to" class="clear-date">Clear date</a>
        </li>
 
index 4e0a4b0..8165027 100644 (file)
                     [% CASE %]
                         <li>
                             <label class="description" for="[% borrower_field.field | html %]">[% borrower_field.description | html %]: </label>
-                            <input id="[% borrower_field.field | html %]" name="[% borrower_field.field | html %]" />
+                            <input id="[% borrower_field.field | html %]" name="[% borrower_field.field | html %]" type="text" />
                             <span class="field_hint">[% borrower_field.field | html %]</span>
                         </li>
                     [% END %]
                 [% IF ( Koha.Preference('ExtendedPatronAttributes') == 1 ) %]
                     <li>
                         <label class="description" for="patron_attributes">Patron attributes: </label>
-                        <input id="patron_attributes" name="patron_attributes" />
+                        <input id="patron_attributes" name="patron_attributes" type="text" />
                         <span class="field_hint">patron_attributes</span>
                     </li>
                 [% END %]