Bug 32300: Add page-section to cataloguing plugins (cat)
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / cataloguing / value_builder / unimarc_field_183-2.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Framework plugin example &rsaquo; Cataloguing &rsaquo; Koha</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 </head>
5
6 <body id="cat_unimarc_field_183-2" class="cat" style="padding:1em;">
7
8     <h3>UNIMARC field 183-2 builder</h3>
9
10     <div class="page-section">
11         <form name="f_pop" action="">
12             <table>
13                 <tr>
14                     <td><label for="f0">System code :</label></td>
15                     <td>
16                         <select name="f0" id="f0">
17                             [% IF ( f0 == "carr" ) %]
18                                 <option value="RDAcarrier" selected="selected">RDA Carrier</option>
19                             [% ELSE %]
20                                 <option value="RDAcarrier">RDA Carrier</option>
21                             [% END %]
22
23                             [% IF ( f0 == "cont" ) %]
24                                 <option value="RDAcontent" selected="selected">RDA Content</option>
25                             [% ELSE %]
26                                 <option value="RDAcontent">RDA Content</option>
27                             [% END %]
28
29                             [% IF ( f0 == "media" ) %]
30                                 <option value="RDAmedia" selected="selected">RDA Media</option>
31                             [% ELSE %]
32                                 <option value="RDAmedia">RDA Media</option>
33                             [% END %]
34
35                             [% IF ( f0 == "frcarr" ) %]
36                                 <option value="RDAfrCarrier" selected="selected">RDA fr Carrier</option>
37                             [% ELSE %]
38                                 <option value="RDAfrCarrier">RDA fr Carrier</option>
39                             [% END %]
40                         </select>
41                     </td>
42                 </tr>
43             </table>
44             <p><input type="button" class="btn btn-primary" value="OK" onclick="submitMyForm();" /> <a href="#" class="cancel close">Cancel</a> </p>
45         </form>
46     </div> <!-- /.page-section -->
47
48 <script>
49     // The following function just puts back the value of the input #return
50     // into the caller's field, referenced by index. And closes the popup.
51     function submitMyForm() {
52
53         var doc   = opener.document;
54         var field = doc.getElementById("[% index | html %]");
55         field.value = document.f_pop.f0.value;
56
57         window.close();
58         return false;
59     }
60 </script>
61
62 [% INCLUDE 'popup-bottom.inc' %]