diff --git a/database/vtm/view_table_renderer.anubis b/database/vtm/view_table_renderer.anubis index 2f4699c..3429cd2 100644 --- a/database/vtm/view_table_renderer.anubis +++ b/database/vtm/view_table_renderer.anubis @@ -144,8 +144,9 @@ define HTML_Row(HTML_Off_Form) make_line { text(string) then cell((HTML_Off_Form)text(string)), // link(id, string) then cell((HTML_Off_Form)actioner(same,same, link(string), action_name, [("table_name", table_name),("id",id)])), - link(id, string) then cell((HTML_Off_Form)literal(jq_dialog_open(string, dialog_id(action_name+"_dlg_ajax"), "'id="+id+"'"))), - icon(icon_path) then cell((HTML_Off_Form)image([], icon_path, "")) + link(id, string) then cell((HTML_Off_Form)literal(jq_dialog_open(string, dialog_id(action_name+"_dlg_ajax"), "'id="+id+"'"))), + link_id_action(id, name, action) then cell((HTML_Off_Form)actioner(same,same, link(name), action, [("id",id)])), + icon(icon_path) then cell((HTML_Off_Form)image([], icon_path, "")) }, make_line(table_name, action_name, t, [cell . so_far]) }. @@ -191,6 +192,7 @@ define HTML_Header_Row(HTML_Off_Form) { text(string) then header_cell((HTML_Off_Form)text(_T(string))), link(id, string) then header_cell((HTML_Off_Form)actioner(same,same, link(string),"edit_table",[])), //TODO + link_id_action(id, text, action) then header_cell((HTML_Off_Form)actioner(same,same, link(text),action,[("id",id)])), //TODO icon(icon_path) then header_cell((HTML_Off_Form)image([], icon_path, "")) }, make_header(_T, t, [cell . so_far]) diff --git a/database/vtm/view_table_types.anubis b/database/vtm/view_table_types.anubis index 8e3288a..fe5ec30 100644 --- a/database/vtm/view_table_types.anubis +++ b/database/vtm/view_table_types.anubis @@ -40,6 +40,7 @@ public type VT_edit: public type VT_view_entry: text(String text), link(String id, String text), + link_id_action(String id, String text, String link_id_action), icon(String icon_path). public type VT_view_row_header: -- libgit2 0.21.4