Bugzilla – Attachment 44217 Details for
Bug 13501
Allow autocompletion on drop-down lists
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13501: Indentation fix (batchMod-edit.tt)
Bug-13501-Indentation-fix-batchMod-edittt.patch (text/plain), 8.14 KB, created by
Julian Maurice
on 2015-10-30 15:56:03 UTC
(
hide
)
Description:
Bug 13501: Indentation fix (batchMod-edit.tt)
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2015-10-30 15:56:03 UTC
Size:
8.14 KB
patch
obsolete
>From 8c9d9f311524b81b08cba12974d8db4936795b9d Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Fri, 30 Oct 2015 13:45:13 +0100 >Subject: [PATCH] Bug 13501: Indentation fix (batchMod-edit.tt) > >--- > .../prog/en/modules/tools/batchMod-edit.tt | 92 ++++++++++++---------- > 1 file changed, 49 insertions(+), 43 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt >index 2a5aad2..16ca5af 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt >@@ -175,57 +175,63 @@ $(document).ready(function(){ > <fieldset class="rows"> > <ol> > [% FOREACH ite IN item %] >- <li><div class="subfield_line" style="[% ite.visibility %]" id="subfield[% ite.tag %][% ite.subfield %][% ite.random %]"> >+ <li> >+ <div class="subfield_line" style="[% ite.visibility %]" id="subfield[% ite.tag %][% ite.subfield %][% ite.random %]"> > [% IF ( ite.mandatory ) %] >- <label class="required" for="tag_[% ite.tag %]_subfield_[% ite.subfield %]_[% ite.random %]"> >+ <label class="required" for="tag_[% ite.tag %]_subfield_[% ite.subfield %]_[% ite.random %]"> > [% ELSE %] >- <label for="tag_[% ite.tag %]_subfield_[% ite.subfield %]_[% ite.random %]"> >+ <label for="tag_[% ite.tag %]_subfield_[% ite.subfield %]_[% ite.random %]"> > [% END %] >- [% ite.subfield %] - >- [% ite.marc_lib %] >- </label> >- [% UNLESS ( ite.mandatory ) %]<input type="checkbox" id="row[% ite.tag %][% ite.subfield %][% ite.random %]" title="Check to delete subfield [% ite.subfield %]" name="disable_input" value="[% ite.subfield %]" />[% ELSE %]<span class="required">Required</span>[% END %] >+ [% ite.subfield %] - [% ite.marc_lib %] >+ </label> > >- [% SET mv = ite.marc_value %] >- [% IF ( mv.type == 'select' ) -%] >- <select name="[%- mv.name -%]" id="[%- mv.id -%]" size="1" tabindex="1" class="input_marceditor"> >- [%- FOREACH aval IN mv.values %] >+ [% UNLESS ( ite.mandatory ) %] >+ <input type="checkbox" id="row[% ite.tag %][% ite.subfield %][% ite.random %]" title="Check to delete subfield [% ite.subfield %]" name="disable_input" value="[% ite.subfield %]" /> >+ [% ELSE %] >+ <span class="required">Required</span> >+ [% END %] >+ >+ [% SET mv = ite.marc_value %] >+ [% IF ( mv.type == 'select' ) -%] >+ <select name="[%- mv.name -%]" id="[%- mv.id -%]" size="1" tabindex="1" class="input_marceditor"> >+ [%- FOREACH aval IN mv.values %] > [% IF aval == mv.default %] >- <option value="[%- aval -%]" selected="selected">[%- mv.labels.$aval -%]</option> >- [% ELSE %] >- <option value="[%- aval -%]">[%- mv.labels.$aval -%]</option> >- [% END %] >- [%- END -%] >- </select> >- [% ELSIF ( mv.type == 'text1' ) %] >- <input type="text" tabindex="1" id="[%- mv.id -%]" name="field_value" class="input_marceditor" size="50" maxlength="255" value="[%- mv.value -%]" /> >- <a href="#" class="buttonDot" onclick="Dopop('/cgi-bin/koha/authorities/auth_finder.pl?authtypecode=[%- mv.authtypecode -%]&index=[%- mv.id -%]','[%- mv.id -%]'); return false;" title="Tag editor">...</a> >- [% ELSIF ( mv.type == 'text2' ) %] >- <input type="text" id="[%- mv.id -%]" name="field_value" class="input_marceditor" size="50" maxlength="255" value="[%- mv.value -%]" /> >- [% IF mv.noclick %] >- <a href="#" class="buttonDot disabled" title="No popup">...</a> >+ <option value="[%- aval -%]" selected="selected">[%- mv.labels.$aval -%]</option> > [% ELSE %] >- <a href="#" id="buttonDot_[% mv.id %]" class="buttonDot" title="Tag editor">...</a> >+ <option value="[%- aval -%]">[%- mv.labels.$aval -%]</option> > [% END %] >- [% mv.javascript %] >- [% ELSIF ( mv.type == 'text' ) %] >- <input type="text" tabindex="1" id="[%- mv.id -%]" name="field_value" class="input_marceditor" size="50" maxlength="255" value="[%- mv.value -%]" /> >- [% ELSIF ( mv.type == 'hidden' ) %] >- <input type="hidden" tabindex="1" id="[%- mv.id -%]" name="field_value" class="input_marceditor" size="50" maxlength="255" value="[%- mv.value -%]" /> >- [% ELSIF ( mv.type == 'textarea' ) %] >- <textarea tabindex="1" id="[%- mv.id -%]" name="field_value" class="input_marceditor" size="50" maxlength="255">[%- mv.value -%]"</textarea> >- [%- END -%] >- >- <input type="hidden" name="tag" value="[% ite.tag %]" /> >- <input type="hidden" name="subfield" value="[% ite.subfield %]" /> >- <input type="hidden" name="mandatory" value="[% ite.mandatory %]" /> >- [% IF ( ite.repeatable ) %] >- <a href="#" class="buttonPlus" onclick="CloneItemSubfield(this.parentNode); return false;"> >- <img src="[% interface %]/[% theme %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" /> >- </a> >+ [%- END -%] >+ </select> >+ [% ELSIF ( mv.type == 'text1' ) %] >+ <input type="text" tabindex="1" id="[%- mv.id -%]" name="field_value" class="input_marceditor" size="50" maxlength="255" value="[%- mv.value -%]" /> >+ <a href="#" class="buttonDot" onclick="Dopop('/cgi-bin/koha/authorities/auth_finder.pl?authtypecode=[%- mv.authtypecode -%]&index=[%- mv.id -%]','[%- mv.id -%]'); return false;" title="Tag editor">...</a> >+ [% ELSIF ( mv.type == 'text2' ) %] >+ <input type="text" id="[%- mv.id -%]" name="field_value" class="input_marceditor" size="50" maxlength="255" value="[%- mv.value -%]" /> >+ [% IF mv.noclick %] >+ <a href="#" class="buttonDot disabled" title="No popup">...</a> >+ [% ELSE %] >+ <a href="#" id="buttonDot_[% mv.id %]" class="buttonDot" title="Tag editor">...</a> > [% END %] >- <span class="hint" id="hint[% ite.tag %][% ite.subfield %][% ite.random %]"></span> >- </div></li> >+ [% mv.javascript %] >+ [% ELSIF ( mv.type == 'text' ) %] >+ <input type="text" tabindex="1" id="[%- mv.id -%]" name="field_value" class="input_marceditor" size="50" maxlength="255" value="[%- mv.value -%]" /> >+ [% ELSIF ( mv.type == 'hidden' ) %] >+ <input type="hidden" tabindex="1" id="[%- mv.id -%]" name="field_value" class="input_marceditor" size="50" maxlength="255" value="[%- mv.value -%]" /> >+ [% ELSIF ( mv.type == 'textarea' ) %] >+ <textarea tabindex="1" id="[%- mv.id -%]" name="field_value" class="input_marceditor" size="50" maxlength="255">[%- mv.value -%]"</textarea> >+ [%- END -%] >+ >+ <input type="hidden" name="tag" value="[% ite.tag %]" /> >+ <input type="hidden" name="subfield" value="[% ite.subfield %]" /> >+ <input type="hidden" name="mandatory" value="[% ite.mandatory %]" /> >+ [% IF ( ite.repeatable ) %] >+ <a href="#" class="buttonPlus" onclick="CloneItemSubfield(this.parentNode); return false;"> >+ <img src="[% interface %]/[% theme %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" /> >+ </a> >+ [% END %] >+ <span class="hint" id="hint[% ite.tag %][% ite.subfield %][% ite.random %]"></span> >+ </div> >+ </li> > [% END %] > </ol> > </fieldset> >-- >1.9.1
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 13501
:
34830
|
34831
|
34855
|
34856
|
34857
|
34897
|
34898
|
40654
|
40708
|
44213
|
44214
|
44215
|
44216
|
44217
|
44218
|
45966
|
48368
|
48369
|
48370
|
54634
|
54635
|
54636
|
54637
|
54638
|
54674
|
54675
|
54676
|
54677
|
54678