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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt (-3 / +9 lines)
Lines 148-157 Link Here
148
        <br />
148
        <br />
149
            [% IF patrons_to_delete.size %]
149
            [% IF patrons_to_delete.size %]
150
                <fieldset><legend>What do you want to do for deleted patrons?</legend>
150
                <fieldset><legend>What do you want to do for deleted patrons?</legend>
151
                <input id="delete" type="radio" name="radio" value="delete" />
151
                <input id="delete" type="radio" name="radio" value="delete" title="Delete patrons directly from the database, not recoverable"/>
152
                <label for="delete">Permanently delete these patrons</label>
152
                <label for="delete">Permanently delete these patrons</label>
153
153
154
                <br /><input id="trash" type="radio" name="radio" value="trash" />
154
                <br /><input id="trash" type="radio" name="radio" value="trash" title="Move patrons to the deleted borrowers table, they can be deleted permanently by the cleanup_database script"/>
155
                <label for="trash">Move these patrons to the trash</label>
155
                <label for="trash">Move these patrons to the trash</label>
156
156
157
                <br /><input id="testrun" type="radio" name="radio" value="testrun" checked="checked" />
157
                <br /><input id="testrun" type="radio" name="radio" value="testrun" checked="checked" />
Lines 231-236 Link Here
231
            $('#branch').change(function() {
231
            $('#branch').change(function() {
232
                $('#selectlibrary').submit();
232
                $('#selectlibrary').submit();
233
            });
233
            });
234
            $("form[name='f2']").on('submit',function(){
235
                if( $("#delete").attr("checked") ){
236
                    if( !confirm(_("These patrons will be permanently removed from the database and cannot be recovered")) ){
237
                        return false;
238
                    }
239
                }
240
            });
234
        });
241
        });
235
242
236
        /**
243
        /**
237
- 

Return to bug 11642