NAME
Maplat::Web::AutoDialogs - Auto-generate jquery dialogs
SYNOPSIS
This module provides pre-calculated jquery dialogs
DESCRIPTION
With this module, you can easely create jquery dialogs
Configuration
<module>
<modname>autodialogs</modname>
<pm>AutoDialogs</pm>
<options>
<forms>
<fields>
<confirmDeleteUser>
<title>Delete User</title>
<text>Do you really want to delete this user?</text>
<icon>alert</icon>
<action>Delete</action>
</confirmDeleteUser>
<confirmChangeUser>
<title>Change User</title>
<text>Do you really want to change this users settings?</text>
<icon>help</icon>
<action>Change</action>
</confirmChangeUser>
</fields>
</forms>
<modechangeforms>
<fields>
<confirmDeleteFilter>
<title>Delete Filter</title>
<text>Do you really want to delete this filter?</text>
<icon>help</icon>
<action>Delete</action>
<mode>deletefilter</mode>
</confirmDeleteFilter>
<confirmDeleteUnmapped>
<title>Delete Signals</title>
<text>DELETING THIS SIGNALS CAN NOT BE UNDONE! Are you sure you really, really, REALLY want to permanently delete this signals?</text>
<icon>alert</icon>
<action>I know what i'm doing!</action>
<mode>deleteunmapped</mode>
</confirmDeleteUnmapped>
</fields>
</modechangeforms>
</options>
</module>
get_prerender
Add the forms to webdata
addFormsMarkup
Internal function, create markup and javascript for simple OK/Cancel jquery dialogs
addModeChangeFormsMarkup
Internal function, create markup and javascript dialogs for modechange forms
makeForms
Internal function, wrapper for the above generation functions
AUTHOR
Rene Schickbauer, <rene.schickbauer@gmail.com>
COPYRIGHT AND LICENSE
Copyright (C) 2008-2011 by Rene Schickbauer
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.