View | Details | Raw Unified | Return to bug 10469
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt (-6 / +8 lines)
Lines 5-10 Link Here
5
<title>Koha &rsaquo; Administration &rsaquo;[% IF ( add_form ) %][% IF ( use_heading_flags_p ) %][% IF ( heading_edit_subfields_p ) %] MARC subfield structure &rsaquo; Edit MARC subfields constraints[% END %][% ELSE %] MARC subfield structure &rsaquo; [% action | html %][% END %][% END %]
5
<title>Koha &rsaquo; Administration &rsaquo;[% IF ( add_form ) %][% IF ( use_heading_flags_p ) %][% IF ( heading_edit_subfields_p ) %] MARC subfield structure &rsaquo; Edit MARC subfields constraints[% END %][% ELSE %] MARC subfield structure &rsaquo; [% action | html %][% END %][% END %]
6
[% IF ( delete_confirm ) %] MARC subfield structure &rsaquo; Confirm deletion of subfield [% tagsubfield | html %][% END %][% IF ( delete_confirmed ) %] MARC subfield structure &rsaquo; Subfield deleted[% END %][% IF ( else ) %]MARC subfield structure[% END %]</title>
6
[% IF ( delete_confirm ) %] MARC subfield structure &rsaquo; Confirm deletion of subfield [% tagsubfield | html %][% END %][% IF ( delete_confirmed ) %] MARC subfield structure &rsaquo; Subfield deleted[% END %][% IF ( else ) %]MARC subfield structure[% END %]</title>
7
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
8
<style>.constraints::after { content:  " "; clear: both; display:block; }</style>
8
</head>
9
</head>
9
10
10
<body id="admin_marc_subfields_structure" class="admin">
11
<body id="admin_marc_subfields_structure" class="admin">
Lines 60-68 Link Here
60
    [% FOREACH loo IN loop %] 
61
    [% FOREACH loo IN loop %] 
61
        <div class="constraints" id="sub[% loo.urisubfieldcode | html %]field">
62
        <div class="constraints" id="sub[% loo.urisubfieldcode | html %]field">
62
63
63
               <h3><a href="#basic[% loo.urisubfieldcode | uri %]">Basic constraints</a></h3>
64
                    <div id="basic[% loo.urisubfieldcode | html %]" class="contraints">
64
                    <div id="basic[% loo.urisubfieldcode | html %]">
65
                    <fieldset class="rows">
65
                    <fieldset class="rows">
66
                        <legend>Basic constraints</legend>
66
                	<ol>
67
                	<ol>
67
                		[% IF ( subfieldcode == 0 || subfieldcode ) %] 
68
                		[% IF ( subfieldcode == 0 || subfieldcode ) %] 
68
                		<li><span class="label">Subfield code:</span> [% loo.subfieldcode | html %] <input type="hidden" name="tagsubfield" value="[% loo.subfieldcode | html %]" /></li>
69
                		<li><span class="label">Subfield code:</span> [% loo.subfieldcode | html %] <input type="hidden" name="tagsubfield" value="[% loo.subfieldcode | html %]" /></li>
Lines 114-122 Link Here
114
                    </div>
115
                    </div>
115
116
116
117
117
            <h3><a href="#advanced[% loo.urisubfieldcode | uri %]">Advanced constraints</a></h3>
118
            <div id="advanced[% loo.urisubfieldcode | html %]" class="contraints">
118
            <div id="advanced[% loo.urisubfieldcode | html %]">
119
            <fieldset class="rows">
119
            <fieldset class="rows">
120
                <legend>Advanced constraints</legend>
120
                <ol><li><label for="defaultvalue[% loo.row | html %]">Default value:</label>
121
                <ol><li><label for="defaultvalue[% loo.row | html %]">Default value:</label>
121
                    <input type="text" name="defaultvalue" id="defaultvalue[% loo.row | html %]" value="[% loo.defaultvalue | html %]" /></li>
122
                    <input type="text" name="defaultvalue" id="defaultvalue[% loo.row | html %]" value="[% loo.defaultvalue | html %]" /></li>
122
				<li><label for="maxlength[% loo.row | html %]">Max length:</label><input type="text" id="maxlength[% loo.row | html %]" name="maxlength" value="[% loo.maxlength | html %]" size="4" /> (see online help)</li>
123
				<li><label for="maxlength[% loo.row | html %]">Max length:</label><input type="text" id="maxlength[% loo.row | html %]" name="maxlength" value="[% loo.maxlength | html %]" size="4" /> (see online help)</li>
Lines 161-169 Link Here
161
			</ol>
162
			</ol>
162
            </fieldset>
163
            </fieldset>
163
            </div>
164
            </div>
164
            <h3><a href="#oth[% loo.urisubfieldcode | uri %]">Other options (choose one)</a></h3>
165
165
            <div id="oth[% loo.urisubfieldcode | html %]">
166
            <div id="oth[% loo.urisubfieldcode | html %]" class="contraints">
166
            <fieldset class="rows">
167
            <fieldset class="rows">
168
                <legend>Other options (choose one)</legend>
167
                    	<ol>
169
                    	<ol>
168
                            <li>
170
                            <li>
169
                                <label for="authorised_value[% loo.row | html %]">Authorized value:</label>
171
                                <label for="authorised_value[% loo.row | html %]">Authorized value:</label>
(-)a/koha-tmpl/intranet-tmpl/prog/js/marc_subfields_structure.js (-2 lines)
Lines 1-5 Link Here
1
$(document).ready(function() {
1
$(document).ready(function() {
2
    $( ".constraints" ).accordion();
3
    $('#subfieldtabs').tabs();
2
    $('#subfieldtabs').tabs();
4
    $("input[id^='hidden_']").click(setHiddenValue);
3
    $("input[id^='hidden_']").click(setHiddenValue);
5
    $("input[id^='hidden-']").each(function() {
4
    $("input[id^='hidden-']").each(function() {
6
- 

Return to bug 10469