Skip to content
This repository has been archived by the owner on Sep 6, 2020. It is now read-only.

Commit

Permalink
style button and rename for "Preview Form" (single one)
Browse files Browse the repository at this point in the history
  • Loading branch information
ingorichtsmeier committed Jan 13, 2019
1 parent 7d8c19a commit a2b2a04
Show file tree
Hide file tree
Showing 4 changed files with 288 additions and 283 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Camunda Modeler Plugin - UserTask Generated Form Preview and Embedded Form Generator

This plugin adds a 'Preview Forms' Button to all BPMN User Tasks in the Camunda Modeler Properties Panel.
This plugin adds a 'Preview Form' Button to all BPMN User Tasks in the Camunda Modeler Properties Panel.
Once you click on this button a overlay with show you a preview of your form that has been defined as form fields in the UserTask Forms Tab. It shows you how the form will look like in the default Camunda Tasklist.

Besides just giving you a preview, this plugin automatically generates HTML source code that you will need to create an embedded form for your UserTask.
Expand All @@ -17,6 +17,6 @@ So this plugin is the perfect fit if you often start with simple generated form

Put the whole directory including subdirectories into the `plugins` directory of the Camunda Modeler and you're ready to go.

Model a UserTask and check in the Forms Tab if you are seeing the "Preview Forms" button.
Model a UserTask and check in the Forms Tab if you are seeing the "Preview Form" button.

If you're interested in how to create your own plugins see the [documentation](https://github.com/camunda/camunda-modeler/tree/547-plugins/docs/plugins) and this [example](https://github.com/camunda/camunda-modeler-plugin-example).
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ GeneratedFormPreviewPluginProvider.prototype.getFormsTab = function(formsTab) {
var self = this;
if (formsTab.groups.length > 0 && formsTab.groups[0].entries.length > 0) {
formsTab.groups[0].entries.splice(2, 0, {
html: "<button class='preview-button' data-action='openPreview'>Preview Forms</button>",
html: "<button class='preview-button' data-action='openPreview'>Preview Form</button>",
id: "form-fields-generate-button",
openPreview: function(element, node) {
var formFields = formHelper.getFormFields(element);
Expand Down
Loading

0 comments on commit a2b2a04

Please sign in to comment.