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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt (-9 / +13 lines)
Lines 1490-1503 Link Here
1490
                                        searchable: false,
1490
                                        searchable: false,
1491
                                        orderable: true,
1491
                                        orderable: true,
1492
                                        render: function (data, type, row, meta) {
1492
                                        render: function (data, type, row, meta) {
1493
                                            if(row.status === 'ASKED') return '<span>%s</span>'.format(_("Pending"));
1493
                                            let node = '';
1494
                                            if(row.status === 'ACCEPTED') return '<span>%s</span>'.format(_("Accepted"));
1494
                                            if(row.status === 'ASKED') node += '<span class="status asked">%s</span>'.format(_("Pending"));
1495
                                            if(row.status === 'ORDERED') return '<span>%s</span>'.format(_("Ordered"));
1495
                                            else if(row.status === 'ACCEPTED') node += '<span class="status accepted">%s</span>'.format(_("Accepted"));
1496
                                            if(row.status === 'REJECTED') return '<span>%s</span>'.format(_("Rejected"));
1496
                                            else if(row.status === 'ORDERED') node += '<span class="status ordered">%s</span>'.format(_("Ordered"));
1497
                                            if(row.status === 'CHECKED') return '<span>%s</span>'.format(_("Checked"));
1497
                                            else if(row.status === 'REJECTED') node += '<span class="status rejected">%s</span>'.format(_("Rejected"));
1498
                                            if(row.status === 'AVAILABLE') return '<span>%s</span>'.format(_("Available"));
1498
                                            else if(row.status === 'CHECKED') node += '<span class="status checked">%s</span>'.format(_("Checked"));
1499
                                            if(row._strings.status.str) return '<span>%s</span>'.format(row._strings.status.str);
1499
                                            else if(row.status === 'AVAILABLE') node += '<span class="status available">%s</span>'.format(_("Available"));
1500
                                            return '<span>%s</span>'.format(_("Status unknown"));
1500
                                            else if(row._strings.status.str) node += '<span class="status '+ row.status +'">%s</span>'.format(row._strings.status.str);
1501
                                            else node += '<span class="status unknown">%s</span>'.format(_("Status unknown"));
1502
                                            if ( row.reason ) {
1503
                                                node += '<div class="reason" data-reason="'+row.reason+'">('+ row.reason +')</div>';
1504
                                            }
1505
                                            return node;
1501
                                        },
1506
                                        },
1502
                                    },
1507
                                    },
1503
                                    {
1508
                                    {
1504
- 

Return to bug 40036