Commit 6c9765c047b7af2c5d16bc43a706caa358a7ea4e
1 parent
53943d6a
added HTML_In_form variations for webmail
Showing
1 changed file
with
22 additions
and
1 deletions
Show diff stats
calexium_lib/web/CXM_dojo.anubis
| ... | ... | @@ -324,7 +324,28 @@ public define HTML_Off_Form |
| 324 | 324 | success(t) then [title(t) . the_attributes] |
| 325 | 325 | }, |
| 326 | 326 | div(total_attributes, content). |
| 327 | - | |
| 327 | + | |
| 328 | +public define HTML_In_Form | |
| 329 | + dojo_BorderContainer | |
| 330 | + ( | |
| 331 | + List(CoreAttrs) attributes, | |
| 332 | + Maybe(String) the_title, | |
| 333 | + BorderContainerDesign design, | |
| 334 | + Bool live_splitter, | |
| 335 | + Bool persist, | |
| 336 | + Bool closable, | |
| 337 | + String container, | |
| 338 | + HTML_In_Form content | |
| 339 | + ) = | |
| 340 | + with the_attributes = (List(CoreAttrs)) [attr("dojoType", "dijit.layout.BorderContainer"), attr("dojoAttachPoint", container), | |
| 341 | + attr("design", to_String(design)), attr("liveSplitters", live_splitter), attr("persist", persist), | |
| 342 | + attr("closable",closable) . attributes ], | |
| 343 | + total_attributes = if the_title is | |
| 344 | + { | |
| 345 | + failure then the_attributes, | |
| 346 | + success(t) then [title(t) . the_attributes] | |
| 347 | + }, | |
| 348 | + div(total_attributes, content). | |
| 328 | 349 | |
| 329 | 350 | public define HTML_Off_Form |
| 330 | 351 | dojo_tree | ... | ... |