From 44fe5cf143c518b1fe914d60202b58558ef2c5d9 Mon Sep 17 00:00:00 2001 From: Julien Verneuil Date: Wed, 6 Apr 2016 11:15:23 +0200 Subject: [PATCH] add CXM_dropzone.anubis --- web/CXM_dropzone.anubis | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+), 0 deletions(-) create mode 100644 web/CXM_dropzone.anubis diff --git a/web/CXM_dropzone.anubis b/web/CXM_dropzone.anubis new file mode 100644 index 0000000..aab898b --- /dev/null +++ b/web/CXM_dropzone.anubis @@ -0,0 +1,36 @@ + Make use of the DropzoneJS library (www.dropzonejs.com) to build highly customizable dropzones that provides drag’n’drop file uploads with image previews + + TODO: + Complete dropzone options and features binding + + Author: Julien Verneuil (06/04/2016) + +read tools/basis.anubis + +read calexium_lib/web/CXM_making_a_web_site.anubis + +public define HTML_Partial_Content + dropzone + ( + String dropzone_form_name, + String dict_default_message, + String dict_file_too_big, + String param_name, + String submit_action_name + ) = + with dropzone_form_id = generate_random_string(15), + partial_content([], sequence([ + literal(" + "), + partial(partial_content( + [js(js_file("js/dropzone.js")), css(css_file("css/dropzone.css"))], + form(dropzone_form_id, [class("dropzone")], submit_action_name, [], empty) + ))])). -- libgit2 0.21.4