Uploaded image for project: 'Forms'
  1. Forms
  2. FORMS-226

The proposed message for "ask for complement" dialog box should be configurable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 1.9.0
    • None
    • None
    • None

      This helper should be used easily for any workflow action

          [FORMS-226] The proposed message for "ask for complement" dialog box should be configurable

          With this patch, the body and the subject can be specified for a further information request in the definition of a workflow button like this :

          <extension id="org.ametys.plugins.forms.workflow.FormEntriesWorkflowButton.form-default.proposed"
                                 point="org.ametys.cms.workspace.ribbon.RibbonControlsManager"
                                 class="org.ametys.plugins.forms.workflow.FormEntriesWorkflowMenu">
                  <action>
                      <param name="menu-3-enable-multiselection">false</param>
                              
                      <!-- Text used for the mail -->
                      <param name="menu-3-subject-key" i18n="true">plugin.default-form-workflow:FORMS_DEFAULT_WORKFLOW_NEED_COMPLEMENTS_DIALOG_SUBJECT_DEFAULT</param>
                      <param name="menu-3-body-key" i18n="true">plugin.default-form-workflow:FORMS_DEFAULT_WORKFLOW_NEED_COMPLEMENTS_DIALOG_BODY_DEFAULT</param>
                  </action>
                          
                  <workflow name="form-default">
                  <step>1</step>
                          
                  <actions mode="exclude">
                      <action>4</action>
                  </actions>
                              
                  <comments mode="include"/>
                              
                  <further-information mode="include">
                      <action>3</action>
                  </further-information>
              </workflow>
              <scripts>
                  <file plugin="forms">js/org/ametys/forms/workflow/FurtherInformationDialog.i18n.js</file>
              </scripts>
          </extension>
          

          There is no default subject/body when nothing is configured.

          Quentin Glinel-Mortreuil (Inactive) added a comment - With this patch, the body and the subject can be specified for a further information request in the definition of a workflow button like this : <extension id= "org.ametys.plugins.forms.workflow.FormEntriesWorkflowButton.form-default.proposed" point= "org.ametys.cms.workspace.ribbon.RibbonControlsManager" class= "org.ametys.plugins.forms.workflow.FormEntriesWorkflowMenu" > <action> <param name= "menu-3-enable-multiselection" > false </param> <!-- Text used for the mail --> <param name= "menu-3-subject-key" i18n= "true" > plugin.default-form-workflow:FORMS_DEFAULT_WORKFLOW_NEED_COMPLEMENTS_DIALOG_SUBJECT_DEFAULT </param> <param name= "menu-3-body-key" i18n= "true" > plugin.default-form-workflow:FORMS_DEFAULT_WORKFLOW_NEED_COMPLEMENTS_DIALOG_BODY_DEFAULT </param> </action> <workflow name= "form-default" > <step> 1 </step> <actions mode= "exclude" > <action> 4 </action> </actions> <comments mode= "include" /> <further-information mode= "include" > <action> 3 </action> </further-information> </workflow> <scripts> <file plugin= "forms" > js/org/ametys/forms/workflow/FurtherInformationDialog.i18n.js </file> </scripts> </extension> There is no default subject/body when nothing is configured.

            laurence Laurence Aumeunier
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: