X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Fprogress-init.html;h=de3c6b761393cbb397b75043a2d9eb9c923ebb75;hp=194fc7480f593c2d60a49d294439d9848c942e4c;hb=ac3296dc4d9c1c7ff3646df6496a4f49d9e07b9b;hpb=40a7b3dc653e099f7bd0bd762b649b04c4432db2 diff --git a/httemplate/elements/progress-init.html b/httemplate/elements/progress-init.html index 194fc7480..de3c6b761 100644 --- a/httemplate/elements/progress-init.html +++ b/httemplate/elements/progress-init.html @@ -1,3 +1,80 @@ +<%doc> +Example: +In misc/something.html: + +
+ + + <% include( '/elements/progress-init.html', + 'MyForm', + [ 'recordnum', 'what_to_do' ], + $p.'misc/process_something.html', + { url => $p.'where_to_go_next.html' }, + #or { message => 'Finished!' }, + #or { url => $p.'where_to_go.html', + message => 'Finished' }, + # which recirects to the URL and displays the message as a status + #or { popup_url => $p.'popup_contents.html' } + # which loads that URL into the popup after completion + #or { url => $p.'where_to_go.html', + error_url => $p.'where_we_just_were.html' } + # to redirect somewhere different on error + ) %> +
+