# Panel 7: Format template
# The Notion document on this panel can be found here: https://www.notion.so/Line-Chart-User-Input-Forms-16fcae16861d80369c88c6a8a56c5ae6?pvs=4#175cae16861d805c9232d4d1e6cdac19
- scroller:
    name: "formatTemplateandPlaceholderSection"
    title: "Format and Placeholder Selection"
    content:
      - formatTemplateSelection:
          name: presentationDesign
          title: Presentation Design
          templateName: "Primary Template"
          subtitle: Adds trading volume over time as a column chart to the secondary vertical axis

      - divider:
          name: placeholderSection
          title: Placeholder Selection
          type: primary
          style:
            padding: "20px 0 10px 0"

      - text:
          name: someText
          text: >
              <p>Select placeholder where you want the chart to go:</p>
      # Workflow AN2: Select Placeholder



      - inlineGrid:
          content:
            - field:
                name: placeholderSelectionName
                type: string
                maxLength: 32
                readonly: true
                title:
                style:
                  marginBottom: "0px"

            - iconButton:
                name: placeholderSelectionBtn
                iconType: DownloadOutlined


      - text:
          name: someText
          text: >
            <p><b>Include references below the placeholder:</b></p>
          style:
            marginTop: "30px"
      # Workflow OW2. Link to backend of previously provided companies / indicies / custom indices
      - checkbox:
          name: formatTemplateSource
          title:
          dataIndex: formatTemplateSource
          options:
            - Source

      - checkbox:
          name: formatTemplateNotes
          title:
          dataIndex: formatTemplateNotes
          options:
            - Notes

      #Below are now the bottom of page dialog buttons
      # Workflow NN1: Back
      - button:
            name: backBtn
            type: default
            title: Back
      # Workflow NN1: Finish
      - button:
            name: btnFinish
            type: primary
            title: Create
      # Workflow NN1: Cancel
      - button:
            name: btnCancel
            type: default
            title: Cancel
