Commit c4ae354bfea305c7c468099e6ae1ffbb54d8f744

Authored by David RENÉ
1 parent e5064231

add 'dt', 'em', add some 'form', 'div' and 'hidden" as helper function for html tag

Showing 1 changed file with 24 additions and 2 deletions   Show diff stats
web/CXM_making_a_web_site.anubis
@@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
6 6
7 *Copyright* Copyright (c) Alain Prouté 2004-2005. 7 *Copyright* Copyright (c) Alain Prouté 2004-2005.
8 Copyright (c) Calexium 2007-2017. 8 Copyright (c) Calexium 2007-2017.
9 - Copyright (c) David René 2007-2019. 9 + Copyright (c) David René 2007-2020.
10 10
11 11
12 *Authors* Alain Prouté 12 *Authors* Alain Prouté
@@ -1364,7 +1364,7 @@ public define HTML_Off_Form div(CoreAttrs attr, List(HTML_Off_Form) content) @@ -1364,7 +1364,7 @@ public define HTML_Off_Form div(CoreAttrs attr, List(HTML_Off_Form) content)
1364 public define HTML_Off_Form div(CoreAttrs attr, HTML_Off_Form content) = html_tag("div", [attr], [content]). 1364 public define HTML_Off_Form div(CoreAttrs attr, HTML_Off_Form content) = html_tag("div", [attr], [content]).
1365 public define HTML_Off_Form div(List(HTML_Off_Form) content) = html_tag("div", [], content). 1365 public define HTML_Off_Form div(List(HTML_Off_Form) content) = html_tag("div", [], content).
1366 public define HTML_Off_Form div(HTML_Off_Form content) = html_tag("div", [], [content]). 1366 public define HTML_Off_Form div(HTML_Off_Form content) = html_tag("div", [], [content]).
1367 -public define HTML_Off_Form div(List(CoreAttrs) attrs) = html_tag("div", attrs, [empty]). 1367 +public define HTML_Off_Form div(List(CoreAttrs) attrs) = html_tag("div", attrs, []).
1368 public define HTML_Off_Form div(CoreAttrs attr) = html_tag("div", [attr], []). 1368 public define HTML_Off_Form div(CoreAttrs attr) = html_tag("div", [attr], []).
1369 1369
1370 public define HTML_Off_Form div(List(CoreAttrs) attrs, HTML_Partial_Content content) = div(attrs, [content]). 1370 public define HTML_Off_Form div(List(CoreAttrs) attrs, HTML_Partial_Content content) = div(attrs, [content]).
@@ -1372,6 +1372,11 @@ public define HTML_Off_Form div(List(HTML_Partial_Content) content) @@ -1372,6 +1372,11 @@ public define HTML_Off_Form div(List(HTML_Partial_Content) content)
1372 public define HTML_Off_Form div(CoreAttrs attr, HTML_Partial_Content content) = div([attr], [content]). 1372 public define HTML_Off_Form div(CoreAttrs attr, HTML_Partial_Content content) = div([attr], [content]).
1373 public define HTML_Off_Form div(HTML_Partial_Content content) = div([], [content]). 1373 public define HTML_Off_Form div(HTML_Partial_Content content) = div([], [content]).
1374 1374
  1375 +//public define HTML_Partial_Content div(List(CoreAttrs) attrs, HTML_Partial_Content content) = partial_content([], div(attrs, [content])).
  1376 +//public define HTML_Partial_Content div(CoreAttrs attr, HTML_Partial_Content content) = partial_content([], div([attr], [content])).
  1377 +//public define HTML_Partial_Content div(List(HTML_Partial_Content) content) = partial_content([], div([], content)).
  1378 +//public define HTML_Partial_Content div(HTML_Partial_Content content) = partial_content([], div([], [content])).
  1379 +
1375 // <dd> 1380 // <dd>
1376 public define HTML_Off_Form dd(List(CoreAttrs) attrs, List(HTML_Off_Form) content) = html_tag("dd", attrs, content). 1381 public define HTML_Off_Form dd(List(CoreAttrs) attrs, List(HTML_Off_Form) content) = html_tag("dd", attrs, content).
1377 public define HTML_Off_Form dd(List(CoreAttrs) attrs, HTML_Off_Form content) = html_tag("dd", attrs, [content]). 1382 public define HTML_Off_Form dd(List(CoreAttrs) attrs, HTML_Off_Form content) = html_tag("dd", attrs, [content]).
@@ -1384,6 +1389,18 @@ public define HTML_Off_Form dl(List(CoreAttrs) attrs, HTML_Off_Form content) @@ -1384,6 +1389,18 @@ public define HTML_Off_Form dl(List(CoreAttrs) attrs, HTML_Off_Form content)
1384 public define HTML_Off_Form dl(List(HTML_Off_Form) content) = html_tag("dl", [], content). 1389 public define HTML_Off_Form dl(List(HTML_Off_Form) content) = html_tag("dl", [], content).
1385 public define HTML_Off_Form dl(HTML_Off_Form content) = html_tag("dl", [], [content]). 1390 public define HTML_Off_Form dl(HTML_Off_Form content) = html_tag("dl", [], [content]).
1386 1391
  1392 + // <dt>
  1393 +public define HTML_Off_Form dt(List(CoreAttrs) attrs, List(HTML_Off_Form) content) = html_tag("dt", attrs, content).
  1394 +public define HTML_Off_Form dt(List(CoreAttrs) attrs, HTML_Off_Form content) = html_tag("dt", attrs, [content]).
  1395 +public define HTML_Off_Form dt(List(HTML_Off_Form) content) = html_tag("dt", [], content).
  1396 +public define HTML_Off_Form dt(HTML_Off_Form content) = html_tag("dt", [], [content]).
  1397 +
  1398 + // <em>
  1399 +public define HTML_Off_Form em(List(CoreAttrs) attrs, List(HTML_Off_Form) content) = html_tag("em", attrs, content).
  1400 +public define HTML_Off_Form em(List(CoreAttrs) attrs, HTML_Off_Form content) = html_tag("em", attrs, [content]).
  1401 +public define HTML_Off_Form em(List(HTML_Off_Form) content) = html_tag("em", [], content).
  1402 +public define HTML_Off_Form em(HTML_Off_Form content) = html_tag("em", [], [content]).
  1403 +
1387 // <footer> 1404 // <footer>
1388 public define HTML_Off_Form footer(List(CoreAttrs) attrs, List(HTML_Off_Form) content) = html_tag("footer", attrs, content). 1405 public define HTML_Off_Form footer(List(CoreAttrs) attrs, List(HTML_Off_Form) content) = html_tag("footer", attrs, content).
1389 public define HTML_Off_Form footer(List(CoreAttrs) attrs, HTML_Off_Form content) = html_tag("footer", attrs, [content]). 1406 public define HTML_Off_Form footer(List(CoreAttrs) attrs, HTML_Off_Form content) = html_tag("footer", attrs, [content]).
@@ -1392,7 +1409,11 @@ public define HTML_Off_Form footer(HTML_Off_Form content) @@ -1392,7 +1409,11 @@ public define HTML_Off_Form footer(HTML_Off_Form content)
1392 1409
1393 // <form> 1410 // <form>
1394 public define HTML_Off_Form form(List(CoreAttrs) attrs, List(HTML_Off_Form) content) = html_tag("form", attrs, content). 1411 public define HTML_Off_Form form(List(CoreAttrs) attrs, List(HTML_Off_Form) content) = html_tag("form", attrs, content).
  1412 +public define HTML_Off_Form form(List(CoreAttrs) attrs, HTML_Off_Form content) = html_tag("form", attrs, [content]).
1395 public define HTML_Off_Form form(CoreAttrs attr, List(HTML_Off_Form) content) = html_tag("form", [attr], content). 1413 public define HTML_Off_Form form(CoreAttrs attr, List(HTML_Off_Form) content) = html_tag("form", [attr], content).
  1414 +public define HTML_Off_Form form(CoreAttrs attr, HTML_Off_Form content) = html_tag("form", [attr], [content]).
  1415 +public define HTML_Off_Form form(List(CoreAttrs) attrs) = html_tag("form", attrs, []).
  1416 +public define HTML_Off_Form form(CoreAttrs attr) = html_tag("form", [attr], []).
1396 1417
1397 // <header> 1418 // <header>
1398 public define HTML_Off_Form header(List(CoreAttrs) attrs, List(HTML_Off_Form) content) = html_tag("header", attrs, content). 1419 public define HTML_Off_Form header(List(CoreAttrs) attrs, List(HTML_Off_Form) content) = html_tag("header", attrs, content).
@@ -1459,6 +1480,7 @@ public define HTML_Off_Form radio(String name, String value, String form) @@ -1459,6 +1480,7 @@ public define HTML_Off_Form radio(String name, String value, String form)
1459 public define HTML_Off_Form hidden(List(CoreAttrs) attrs, String name, String value, String form) = input([attr("type","hidden"), attr("name",name), attr("value",value), attr("form", form) . attrs]). 1480 public define HTML_Off_Form hidden(List(CoreAttrs) attrs, String name, String value, String form) = input([attr("type","hidden"), attr("name",name), attr("value",value), attr("form", form) . attrs]).
1460 public define HTML_Off_Form hidden(CoreAttrs attr, String name, String value, String form) = hidden([attr], name, value, form). 1481 public define HTML_Off_Form hidden(CoreAttrs attr, String name, String value, String form) = hidden([attr], name, value, form).
1461 public define HTML_Off_Form hidden(String name, String value, String form) = hidden([], name, value, form). 1482 public define HTML_Off_Form hidden(String name, String value, String form) = hidden([], name, value, form).
  1483 +public define HTML_Off_Form hidden(String name, String value) = input([attr("type","hidden"), attr("name",name), attr("value",value)]).
1462 1484
1463 //-- END of <input> preset type 1485 //-- END of <input> preset type
1464 1486