improved form and wizard plugins
[myslice.git] / plugins / wizard / __init__.py
1 from unfold.composite import Composite
2 from unfold.plugin    import Plugin
3
4 class Wizard(Composite):
5    
6     def __init__(self, *args, **kwargs):
7         Composite.__init__(self, *args, **kwargs)
8         self.validate_step_js = []
9         
10     def export_json_settings(self):
11         # We need initialization, even though we are not associated with a query
12         return True
13     
14     def requirements (self):
15         #return { 'js_files'     : ['js/wizard.js', 'js/jquery.smartWizard-2.0.min.js', ],
16         return { 'js_files'     : ['js/wizard.js', 'js/jquery.smartWizard-2.0.js', ],
17                  'css_files'    : ['css/wizard.css', 'css/smart_wizard.css', ] 
18                  }
19
20     def template_file (self):
21         return "wizard.html"
22
23     # the list of things passed to the js plugin
24     def json_settings_list (self): return ['plugin_uuid', 'start_step']