Bugzilla – Attachment 20483 Details for
Bug 10765
Update POD of C4::Koha::GetSupportList() to use TT syntax
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10765 - Update POD of C4::Koha::GetSupportList() to use TT syntax
Bug-10765---Update-POD-of-C4KohaGetSupportList-to-.patch (text/plain), 1.95 KB, created by
Owen Leonard
on 2013-08-19 16:08:12 UTC
(
hide
)
Description:
Bug 10765 - Update POD of C4::Koha::GetSupportList() to use TT syntax
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2013-08-19 16:08:12 UTC
Size:
1.95 KB
patch
obsolete
>From 78722d93be68556a35030f7e41183127df72f998 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 19 Aug 2013 12:06:31 -0400 >Subject: [PATCH] Bug 10765 - Update POD of C4::Koha::GetSupportList() to use > TT syntax >Content-Type: text/plain; charset="utf-8" > >This patch updates the example template syntax in the POD for >C4::Koha::GetSupportList() to use Template Toolkit syntax. > >To test, view the POD for C4::Koha::GetSupportList() and confirm that >it looks correct. >--- > C4/Koha.pm | 20 ++++++++++---------- > 1 file changed, 10 insertions(+), 10 deletions(-) > >diff --git a/C4/Koha.pm b/C4/Koha.pm >index ea8c2a6..6f91b8b 100644 >--- a/C4/Koha.pm >+++ b/C4/Koha.pm >@@ -174,16 +174,16 @@ build a HTML select with the following code : > > =head3 in TEMPLATE > >- <form action='<!-- TMPL_VAR name="script_name" -->' method=post> >- <select name="itemtype"> >- <option value="">Default</option> >- <!-- TMPL_LOOP name="itemtypeloop" --> >- <option value="<!-- TMPL_VAR name="itemtype" -->" <!-- TMPL_IF name="selected" -->selected<!-- /TMPL_IF -->> <!--TMPL_IF Name="imageurl"--><img alt="<!-- TMPL_VAR name="description" -->" src="<!--TMPL_VAR Name="imageurl"-->><!--TMPL_ELSE-->"<!-- TMPL_VAR name="description" --><!--/TMPL_IF--></option> >- <!-- /TMPL_LOOP --> >- </select> >- <input type=text name=searchfield value="<!-- TMPL_VAR name="searchfield" -->"> >- <input type="submit" value="OK" class="button"> >- </form> >+ <select name="itemtype" id="itemtype"> >+ <option value=""></option> >+ [% FOREACH itemtypeloo IN itemtypeloop %] >+ [% IF ( itemtypeloo.selected ) %] >+ <option value="[% itemtypeloo.itemtype %]" selected="selected">[% itemtypeloo.description %]</option> >+ [% ELSE %] >+ <option value="[% itemtypeloo.itemtype %]">[% itemtypeloo.description %]</option> >+ [% END %] >+ [% END %] >+ </select> > > =cut > >-- >1.7.9.5
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 10765
:
20483
|
20495
|
20501