diff --git a/plugins/network/form_network.cs b/plugins/network/form_network.cs index 8424913..506af65 100644 --- a/plugins/network/form_network.cs +++ b/plugins/network/form_network.cs @@ -44,17 +44,16 @@ value="" /> + +

- -

+

+ +

- - - - diff --git a/plugins/plugin-interface.txt b/plugins/plugin-interface.txt index a167233..98cdbc2 100644 --- a/plugins/plugin-interface.txt +++ b/plugins/plugin-interface.txt @@ -11,11 +11,10 @@ Python code interface: - method "do_action": - this function will get called whenever this plugins is involved in a request - all arguments should be optional (e.g. for displaying a form without previous input values) - - the argument "store" should be used to process a form submission (just a recommendation) - if the processing failed for some reason (invalid input, ...), it should manually set "Data.Warning" or "Data.Success") to a value of your choice (preferably you may want to use messages of the namespace of your plugin - (e.g. "Data.Plugins.PLUGINNAME.WarningMessage.InvalidInput")) + (e.g. "Plugins.PLUGINNAME.InvalidInput")) - the return value should be the name of the template that should be displayed after processing (a template file in the plugin directory takes precedence over global template files) - the return value may also be a dictionary with the following elements: @@ -65,14 +64,15 @@ Language file structure: - the following top level settings _must_ be defined: Name (a short description) Link (the visible text for links to this plugin) - - all warnings, hints and success messages should be stored below WarningMessage.??? - (resp. AdviceMessage or SuccessMessage) + - only system plugins: "Title" is necessary, too + - all warnings, hints and success messages as well as environment warnings should + be stored below WarningMessage/AdviceMessage/SuccessMessage/EnvironmentWarning Clearsilver template: - - for a nice title & icon insert: '' at the top of the template - - define the displayed title with 'Title' in the language file + - volume plugins do not have a title + - system plugins should contain '' at the + top of the template - the title should be followd by '' this will display important messages - usually you should supply some helpful information afterwards (only displayed diff --git a/plugins/volume_mount/volume_mount.cs b/plugins/volume_mount/volume_mount.cs index 5cea8db..538ab7d 100644 --- a/plugins/volume_mount/volume_mount.cs +++ b/plugins/volume_mount/volume_mount.cs @@ -10,7 +10,7 @@ -

+
@@ -33,6 +33,6 @@
-

+ diff --git a/templates/macros.cs b/templates/macros.cs index d07f144..03ac89f 100644 --- a/templates/macros.cs +++ b/templates/macros.cs @@ -226,7 +226,8 @@ def:handle_messages() ?>
- + icon: <?cs var:html_escape(Data.ActivePlugin) ?>