<div>
    {{{button this token=(token table="admin.account_grants" obj=(concat 'account_id=' id) form="context.account_grants.form") }}}
    {{#contentList table="(select ag_id, r.routes,attr,cls,rule_name,rule_values,account_id from admin.account_grants g left join(select routes,attr,cls,rule_name,rule_id from admin.rules )r on  r.rule_id=g.rule_id)" query="account_id='{{id}}'"  sql1=1}}
    
    {{{tableList 
        rows 
        table="admin.account_grants"
        id="ag_id"
        form="context.account_grants.form"
        uid=../user.uid
        columns="
        Назва, rule_name,
        Роути, routes,
        Атрибут, attr,
        Значення, rule_values
        "
    }}}
    {{/contentList}}   
</div>