- container:
    name: "customIndex"
    title: "customIndex"
    content:
      # BEGIN CODE BLOCK: Index 1
      - divider:
          name: index_num_
          title: Create Index
          type: primary
      - field:
          name: indexName_num_
          dataIndex: indexName
          type: string
          maxLength: 32
          title: Index Name
      #User defines the contribution approach. For now we will only offer Equal Weighted, but in the future will expand to also have Market Capitalization Weighted.
      - select:
          name: constituentContributionApproach_num_
          dataIndex: constituentContributionApproach
          title: Index Type
          options:
            - Equal Weighted
      # Workflow OW6: User Input Table. The below table is the same as the one we used on the Panel 2: Initial Inputs.
      - table:
          name: defineIndexContituents_num_
          columns:
            # Workflow OW6(a)
            - "#":
                name: Index Constituents
                type: number
                dataIndex: id
            # Workflow OW6(b)
            - Company:
                name: Company Name & Ticker
                type: string
                dataIndex: companyNameAndTicker
            - Remove: # New delete button column
                name: removeCompany
                type: button
                dataIndex: hiddenId  # Use the row's ID to identify deletion target
                iconType: CloseOutlined  # Icon for the button

      # Workflow OW6(c)
      # Workflow OW6(d)
      - aligner:
          align: right
          width: auto
          content:
            - button:
                name: addAPALCompany_num_
                type: primary
                title: Add Company
                style:
                  marginTop: "10px"
                  backgroundColor: "#FFC000"

      #Asking the users if they want to add an additional index like we did above
      - text:
          name: companySharePriceSelectionQuestion
          text: >
            <p><strong>Do you want to create an additional index?</strong></p>
      # Workflow AN2: If the below question is responded yes to, repeat the Index 1 code block
      - radio:
          name: radioAddIndex_num_
          dataIndex: radioAddIndex
          title:
          options:
            - Yes
            - No
      # END CODE BLOCK: Index 1
      #END OF CUSTOM BUILT INDEX SECTION