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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt (-3 / +18 lines)
Lines 209-214 Link Here
209
                    <th>MARC organization code</th>
209
                    <th>MARC organization code</th>
210
                    <th>IP</th>
210
                    <th>IP</th>
211
                    <th>Pickup location</th>
211
                    <th>Pickup location</th>
212
                    <th>SMTP server</th>
212
                    <th data-class-name="actions">Actions</th>
213
                    <th data-class-name="actions">Actions</th>
213
                </tr>
214
                </tr>
214
            </thead>
215
            </thead>
Lines 243-251 Link Here
243
                "ajax": {
244
                "ajax": {
244
                    "url": libraries_url
245
                    "url": libraries_url
245
                },
246
                },
247
                'embed': [ 'smtp_server_info' ],
246
                'emptyTable': '<div class="dialog message">'+_("There are no libraries defined.")+' <a href="/cgi-bin/koha/admin/branches.pl?op=add_form">'+_("Start defining libraries")+'</a>.</div>',
248
                'emptyTable': '<div class="dialog message">'+_("There are no libraries defined.")+' <a href="/cgi-bin/koha/admin/branches.pl?op=add_form">'+_("Start defining libraries")+'</a>.</div>',
247
                "columnDefs": [ {
249
                "columnDefs": [ {
248
                    "targets": [0,1,3,4,7,8,9,10,11,12,13,14,15],
250
                    "targets": [0,1,3,4,6,8,9,10,11,12,13,14,15],
249
                    "render": function (data, type, row, meta) {
251
                    "render": function (data, type, row, meta) {
250
                        if ( type == 'display' ) {
252
                        if ( type == 'display' ) {
251
                            if ( data != null ) {
253
                            if ( data != null ) {
Lines 317-322 Link Here
317
                        }
319
                        }
318
                    },
320
                    },
319
                    {
321
                    {
322
                        "data": "smtp_server_info",
323
                        "render": function( data, type, row, meta ) {
324
                            if ( data.name == 'system_default' ) {
325
                                return _("Default");
326
                            }
327
                            else {
328
                                return '<a href="/cgi-bin/koha/admin/smtp_servers.pl?op=edit_form&smtp_server_id='+encodeURIComponent(data.smtp_server_id)+'">'+data.name.escapeHtml()+'</a>';
329
                            }
330
                        },
331
                        "searchable": false,
332
                        "visible": true,
333
                        "orderable": false
334
                    },
335
                    {
320
                        "data": function( row, type, val, meta ) {
336
                        "data": function( row, type, val, meta ) {
321
337
322
                            var result = '<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/branches.pl?op=add_form&amp;branchcode='+encodeURIComponent(row.library_id)+'" role="button"><i class="fa fa-pencil" aria-hidden="true"></i> '+_("Edit")+'</a>';
338
                            var result = '<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/branches.pl?op=add_form&amp;branchcode='+encodeURIComponent(row.library_id)+'" role="button"><i class="fa fa-pencil" aria-hidden="true"></i> '+_("Edit")+'</a>';
Lines 384-390 Link Here
384
                        "searchable": true,
400
                        "searchable": true,
385
                        "visible": false,
401
                        "visible": false,
386
                        "orderable": false
402
                        "orderable": false
387
                    },
403
                    }
388
                ]
404
                ]
389
            }, columns_settings);
405
            }, columns_settings);
390
406
391
- 

Return to bug 26595