Ignore:
Timestamp:
Feb 2, 2019 5:49:25 AM (5 years ago)
Author:
anonymous
Message:

Backport improvements to module maker templates from FWR

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/module_maker/sql.cli.php

    r612 r664  
    202202    echo "// Instantiate a sorting object with the default sort and order. Add SQL for each column.\n";
    203203    echo "\$so = new SortOrder('$db_tbl.$primary_key', 'DESC');\n";
     204    echo "///\$so->asc_widget = sprintf('<i class=\"fa fa-arrow-up fa-fw\" title=\"%s\"></i>', _(\"Ascending\"));\n";
     205    echo "///\$so->desc_widget = sprintf('<i class=\"fa fa-arrow-down fa-fw\" title=\"%s\"></i>', _(\"Descending\"));\n";
    204206    echo "\$so->setColumn('$db_tbl.$primary_key', '$db_tbl.$primary_key ASC', '$db_tbl.$primary_key DESC');\n";
    205207    foreach ($c as $k=>$v) {
Note: See TracChangeset for help on using the changeset viewer.