dfeenstra

Forum Replies Created

  • In reply to: Priority colors on mobile grey

    April 2, 2020 at 2:26 am #5562
    D
    dfeenstra
    Participant

    I fixed it by editing /include/staff/templates/queue-tickets.tmpl.php:

    $( “td.osta_priority.osta_priority_laag” ).closest( “tr” ).addClass( “priority-laag”);
    $( “td.osta_priority.osta_priority_normaal” ).closest( “tr” ).addClass( “priority-normaal”);
    $( “td.osta_priority.osta_priority_hoog” ).closest( “tr” ).addClass( “priority-hoog”);
    $( “td.osta_priority.osta_priority_noodgeval” ).closest( “tr” ).addClass( “priority-noodgeval”);

    My user-css.css is now:

    td.osta_priority.osta_priority_noodgeval {
    background: url(../img/priority-pattern-overlay.png) #fc6872!important;
    }
    td.osta_priority_hoog {
    background: url(../img/priority-pattern-overlay.png) #e5bc61!important;
    }
    td.osta_priority_normaal {
    background: url(../img/priority-pattern-overlay.png) #a5cb59!important;
    }
    td.osta_priority_laag {
    background: url(../img/priority-pattern-overlay.png) #5bb3f5!important;
    }

    It works now also on the mobile layout, but I was wondering if it is possible to make this editing in an other file just like the css in user-css.css file so that I dont have to edit the php file again after a update of Osticket Awesome. Or, a better solution should be to create a way to let Osticket translate the priority texts. Now I have the Dutch translations of the priotity, but they are also in Dutch when I have Osticket in Engelish. No problem for me, but if it is possible to use translations and not having to edit files should be better.