# Panel 5: Static Line
# The following Notion provides an Overview and details on Workflows: https://www.notion.so/Line-Chart-User-Input-Forms-16fcae16861d80369c88c6a8a56c5ae6?pvs=4#175cae16861d80bdace8d858d0ab5a7d
- scroller:
    name: constantValueLine
    title: Create Constant Value Line
    content:

      - imageHeader:
          name: imageHeader
          image: /assets/line_chart/staticValueLine.png
          text: >
            <p><b><u>Inputs:</u></b> Add Constant Value Line</p>
      # BEGIN CODE BLOCK: Line 1
      - divider:
          name: staticLine
          title: Create Line 1
          type: primary
      #User defines the name of the Static Line.
      - field:
          name: lineName
          dataIndex: lineName
          type: string
          maxLength: 32
          title: Line Name
      # User defines the calculation approach.
      # Workflow OW1: Add information icon with additional infomration
      - select:
          name: calculationApproach
          dataIndex: calculationApproach
          title: Approach
          options:
            - Input Value
            - Derived Value

      #Workflow AN4: Select Block of Code (either A or B)
      - anchor:
          name: approach
          # code ref for this anchor "approach" is in "DerivedValue.yml" and "InputValue.yml" files

      #Asking the users if they want to add an additional static line like we did above
      - text:
          name: companySharePriceSelectionQuestion
          text: >
            <p><strong>Do you want to create an additional Constant Value Line?</strong></p>
          style:
            paddingTop: 20px

      - radio:
          name: radioAddLine
          dataIndex: radioAddLine
          title:
          options:
            - Yes
            - No
      # END CODE BLOCK: Line 1
      # Workflow AN6: Decision Point on Repeat Block of Code
      #END OF STATIC LINE SECTION
      - anchor:
          name: lineContainer

      # Workflow NN1
      - aligner:
          align: right
          width: auto
          content:
            - button:
                name: backBtn
                type: default
                title: Back
            # Workflow NN2
            - button:
                name: nextBtn
                type: primary
                title: Next
            # Workflow NN1
            - button:
                name: btnCancel
                type: default
                title: Cancel
