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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt (-9 / +14 lines)
Lines 271-289 $(document).ready(function() { Link Here
271
		[% END %]
271
		[% END %]
272
		<fieldset class="rows">
272
		<fieldset class="rows">
273
            <input type="hidden" name="oldbranchcode" value="[% oldbranchcode %]" />
273
            <input type="hidden" name="oldbranchcode" value="[% oldbranchcode %]" />
274
            <ol>
274
            [% IF independant_branch %]
275
            [% IF independant_branch %]
275
                <input type="hidden" name="branchcode" value="[% independant_branch %]" />
276
                <input type="hidden" name="branchcode" value="[% independant_branch %]" />
276
            [% ELSE %]
277
            [% ELSE %]
277
		<ol>
278
            <li>
278
			<li>
279
279
				<label for="branch">Library:</label>
280
                <label for="branch">Library:</label>
280
                <select name="branchcode" id="branch" style="width:20em;">
281
                [% IF adding %]
281
                    <option value="">All libraries</option>
282
                    <select name="branchcode" id="branch" style="width:20em;">
282
                [% FOREACH branchloo IN branchloop %]
283
                        <option value="">All libraries</option>
283
                    [% IF ( branchloo.selected ) %]<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>[% ELSE %]<option value="[% branchloo.value %]">[% branchloo.branchname %]</option>[% END %]
284
                    [% FOREACH branchloo IN branchloop %]
285
                        [% IF ( branchloo.selected ) %]<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>[% ELSE %]<option value="[% branchloo.value %]">[% branchloo.branchname %]</option>[% END %]
286
                    [% END %]
287
                    </select>
288
                [% ELSE %]
289
                    [% Branches.GetName( branchcode ) %]
284
                [% END %]
290
                [% END %]
285
                </select>
291
            </li>
286
			</li>
287
            [% END %]
292
            [% END %]
288
			<li>
293
			<li>
289
				<label for="module">Koha module:</label>
294
				<label for="module">Koha module:</label>
(-)a/tools/letter.pl (-1 / +1 lines)
Lines 238-243 sub add_form { Link Here
238
        module     => $module,
238
        module     => $module,
239
        branchloop => _branchloop($branchcode),
239
        branchloop => _branchloop($branchcode),
240
        SQLfieldname => $field_selection,
240
        SQLfieldname => $field_selection,
241
        branchcode => $branchcode,
241
    );
242
    );
242
    return;
243
    return;
243
}
244
}
244
- 

Return to bug 14141