From bd0c017e0d28688c6fbf18863f50cd6ad9bd4bc4 Mon Sep 17 00:00:00 2001 From: totoro Date: Sun, 15 Jun 2025 11:21:21 +0900 Subject: [PATCH] [+] add form name for many actioner function. This allows to have instead of tag and let javascript transform input in decorated button --- web/making_a_web_site.anubis | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 58 insertions(+), 1 deletion(-) diff --git a/web/making_a_web_site.anubis b/web/making_a_web_site.anubis index 1f77a4e..dd86fca 100644 --- a/web/making_a_web_site.anubis +++ b/web/making_a_web_site.anubis @@ -1903,11 +1903,33 @@ public define HTML_Off_Form public define HTML_Off_Form actioner ( + Actioner_Connection conn, + Actioner_Target targ, + Actioner_Aspect asp, + WEB_Action_Name action, + List((String,String)) extra_ops, + String form_name + ) = + actioner(conn,targ,asp,action,extra_ops,[], form_name). + +public define HTML_Off_Form + actioner + ( Actioner_Aspect asp, WEB_Action_Name action, List((String,String)) extra_ops ) = actioner(same, same, asp, action, extra_ops, []). + +public define HTML_Off_Form + actioner + ( + Actioner_Aspect asp, + WEB_Action_Name action, + List((String,String)) extra_ops, + String form_name + ) = + actioner(same, same, asp, action, extra_ops, [], form_name). public define HTML_Off_Form /* Older call with String as action instead of WEB_Action_Name. @@ -1937,11 +1959,46 @@ public define HTML_Off_Form Actioner_Target targ, Actioner_Aspect asp, String action, + List((String,String)) extra_ops, + List(Actioner_Local_Action) local_actions, + String form_name + )= + actioner(conn, targ, asp, action_name(action), extra_ops, local_actions, form_name) +. + +public define HTML_Off_Form +/* Older call with String as action instead of WEB_Action_Name. + * This function exists only for compatibility with older project. + * Please condiser to use above function instead + */ + actioner + ( + Actioner_Connection conn, + Actioner_Target targ, + Actioner_Aspect asp, + String action, List((String,String)) extra_ops )= actioner(conn,targ,asp,action_name(action),extra_ops,[]) . - + +public define HTML_Off_Form +/* Older call with String as action instead of WEB_Action_Name. + * This function exists only for compatibility with older project. + * Please condiser to use above function instead + */ + actioner + ( + Actioner_Connection conn, + Actioner_Target targ, + Actioner_Aspect asp, + String action, + List((String,String)) extra_ops, + String form_name + )= + actioner(conn, targ, asp, action_name(action), extra_ops, [], form_name) +. + public define HTML_Off_Form table ( -- libgit2 0.21.4