Bug 13941: [2/2] Fix <body> tags missing id/class
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / cataloguing / value_builder / EXAMPLE.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Cataloguing &rsaquo; Framework plugin example</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 </head>
5
6 <body id="EXAMPLE" class="cat" style="padding:1em;">
7 <form name="f_pop" onsubmit="report()" action="">
8
9 <h1>EXAMPLE plugin</h1>
10 <p>Hi, you are looking at the result of launching the EXAMPLE plugin.</p>
11 <p>I received this from you:</p>
12 <input type="text" id="received" value="[% result %]" disabled />
13 <p/>
14 <p>I will pass back what you type here, if you press OK.</p>
15 <input type="text" id="return" value="[% result %]" />
16 <p>
17     <input type="button" value="OK"  onclick="submitMyForm();" />
18     <a href="#" class="cancel close">Cancel</a>
19 </p>
20 </form>
21
22 <script type="text/javascript">
23 //<![CDATA[
24     $(document).ready(function () {
25         $('#return').focus();
26     });
27
28     // The following function just puts back the value of the input #return
29     // into the caller's field, referenced by index. And closes the popup.
30     function submitMyForm() {
31         $(window.opener.document).find('#[% index %]').val($('#return').val() );
32         window.close();
33     }
34 //]]>
35 </script>
36
37 [% INCLUDE 'popup-bottom.inc' %]