Commit bd0c017e0d28688c6fbf18863f50cd6ad9bd4bc4

Authored by David RENÉ
1 parent b2719426

[+] add form name for many actioner function. This allows to have <input> instea…

…d of <a> tag and let javascript transform input in decorated button
Showing 1 changed file with 58 additions and 1 deletions   Show diff stats
web/making_a_web_site.anubis
@@ -1903,11 +1903,33 @@ public define HTML_Off_Form @@ -1903,11 +1903,33 @@ public define HTML_Off_Form
1903 public define HTML_Off_Form 1903 public define HTML_Off_Form
1904 actioner 1904 actioner
1905 ( 1905 (
  1906 + Actioner_Connection conn,
  1907 + Actioner_Target targ,
  1908 + Actioner_Aspect asp,
  1909 + WEB_Action_Name action,
  1910 + List((String,String)) extra_ops,
  1911 + String form_name
  1912 + ) =
  1913 + actioner(conn,targ,asp,action,extra_ops,[], form_name).
  1914 +
  1915 +public define HTML_Off_Form
  1916 + actioner
  1917 + (
1906 Actioner_Aspect asp, 1918 Actioner_Aspect asp,
1907 WEB_Action_Name action, 1919 WEB_Action_Name action,
1908 List((String,String)) extra_ops 1920 List((String,String)) extra_ops
1909 ) = 1921 ) =
1910 actioner(same, same, asp, action, extra_ops, []). 1922 actioner(same, same, asp, action, extra_ops, []).
  1923 +
  1924 +public define HTML_Off_Form
  1925 + actioner
  1926 + (
  1927 + Actioner_Aspect asp,
  1928 + WEB_Action_Name action,
  1929 + List((String,String)) extra_ops,
  1930 + String form_name
  1931 + ) =
  1932 + actioner(same, same, asp, action, extra_ops, [], form_name).
1911 1933
1912 public define HTML_Off_Form 1934 public define HTML_Off_Form
1913 /* Older call with String as action instead of WEB_Action_Name. 1935 /* Older call with String as action instead of WEB_Action_Name.
@@ -1937,11 +1959,46 @@ public define HTML_Off_Form @@ -1937,11 +1959,46 @@ public define HTML_Off_Form
1937 Actioner_Target targ, 1959 Actioner_Target targ,
1938 Actioner_Aspect asp, 1960 Actioner_Aspect asp,
1939 String action, 1961 String action,
  1962 + List((String,String)) extra_ops,
  1963 + List(Actioner_Local_Action) local_actions,
  1964 + String form_name
  1965 + )=
  1966 + actioner(conn, targ, asp, action_name(action), extra_ops, local_actions, form_name)
  1967 +.
  1968 +
  1969 +public define HTML_Off_Form
  1970 +/* Older call with String as action instead of WEB_Action_Name.
  1971 + * This function exists only for compatibility with older project.
  1972 + * Please condiser to use above function instead
  1973 + */
  1974 + actioner
  1975 + (
  1976 + Actioner_Connection conn,
  1977 + Actioner_Target targ,
  1978 + Actioner_Aspect asp,
  1979 + String action,
1940 List((String,String)) extra_ops 1980 List((String,String)) extra_ops
1941 )= 1981 )=
1942 actioner(conn,targ,asp,action_name(action),extra_ops,[]) 1982 actioner(conn,targ,asp,action_name(action),extra_ops,[])
1943 . 1983 .
1944 - 1984 +
  1985 +public define HTML_Off_Form
  1986 +/* Older call with String as action instead of WEB_Action_Name.
  1987 + * This function exists only for compatibility with older project.
  1988 + * Please condiser to use above function instead
  1989 + */
  1990 + actioner
  1991 + (
  1992 + Actioner_Connection conn,
  1993 + Actioner_Target targ,
  1994 + Actioner_Aspect asp,
  1995 + String action,
  1996 + List((String,String)) extra_ops,
  1997 + String form_name
  1998 + )=
  1999 + actioner(conn, targ, asp, action_name(action), extra_ops, [], form_name)
  2000 +.
  2001 +
1945 public define HTML_Off_Form 2002 public define HTML_Off_Form
1946 table 2003 table
1947 ( 2004 (