Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-149984

Form container to contain input-type fragments



      As a page editor, I want to be able to add a form container so I can create / embed forms on pages.



      Acceptance Criteria

      1. A new form container fragment will be available under the "Forms components" section in the page editor (see LPS-151867)
      2. The new form container has to include all capabilities of the regular container (common styles, suitable for saved compositions, hide from search, hide / show fragment).
      3. When dragging and dropping the form container to the page, the side bar will show:
        1. For display page templates:
          1. the "source" field will show the item that was selected when creating the DPT as default option
          2. the user can also select "Other Content", and then a dropdown "Content type" with the list of available entities for it to be mapped to will be shown. In case the item type has subtypes, these will be displayed in a second dropdown selector "Content subtype".
        2. In content pages, the Content Type selector will display a list of all the available entities to be mapped.
          1. In case the item type has subtypes, these will be displayed un a second dropdown selector.
      4. The user won't be allowed to add fragments to the form container if it's not mapped to any entity.
      5. If the form container has been mapped to an entity and there are mapped fragments inside, when unmapping the container it is returned to the empty state.

      Note: warnings will be tackled in other story (LPS-152107)

      Test Scenarios

      Test Scenarios Test Strategy Kind of test Is it covered by FrontEnd ? (JS-Unit) Is it covered by BackEnd ? (unit or integration) Could it be covered by POSHI?
      The page editor could map entity to Form Container in display page template Critical Manual No No Yes
      The page editor could map entity to Form Container in content page Critical Manual No No Yes
      The page editor cannot add fragment into Form Container without mapping entity High Manual No No Yes 
      The Form Container will be back to empty state once unmapping entity even though there are fragments inside Form Container High Manual Yes No Yes 
      The Form Container has all capabilities of Container High Manual No No Yes 


          Issue Links



              david.gutierrez David Gutiérrez Mesa
              julia.molano Julia Molano
              Engineering Assignee:
              Product Team Echo
              Recent user:
              Carolina Rodriguez
              Participants of an Issue:
              Frontend Developer(s) Assigned:
              Pablo Molina
              QA Engineer(s) Assigned:
              Yang Cao
              0 Vote for this issue
              0 Start watching this issue




                  Version Package