//~OPTIONS
{
  
}

//~ARGUMENTS
{
  
}

//~TEMPLATE
<h4>!{{List of groups}}!</h4>

@{{
  render.template("@dbcontrols:table", 
                  {
                    fcfAlias:         "table",
                    enableToolbar:    true,
                    enableSearch:     true,
                    projection:       "___fcf___groups", 
                    toolbarLeftItems: fcf.argVal([fcf.argTmpl("@controls:button", { title: fcf.t("New"), fcfEventClick: "parent.getParent().onNew()" })]),
                    columns: [
                      "name",
                      "description",
                      "roles",
                      {
                        alias:    "view",
                        title:    "",
                        template: "fcfManagement:templates/pages/access/tabs/groups.tmpl+buttons",
                        args: {
                          id: "@{record.id}@",
                        }
                      },
                    ]
                  });
}}@


//~ARGUMENTS buttons
{
  id:         "",
}

//~TEMPLATE buttons
@{{ render.template("@controls:button", { title: fcf.t("Edit"), fcfEventClick: "parent.getParent().getParent().onEdit(\"" + args.id + "\")" } ) }}@
@{{ render.template("@controls:button", { title: fcf.t("Remove"), fcfEventClick: "parent.getParent().getParent().onRemove(\"" + args.id + "\")" } ) }}@
