Merx

Sections

Merx provides the most basic sections. You can overwrite them with your own sections and/or use them in your own blueprints.

order

type: fields
fields:
  headlineOrder:
    label: Order
    type: headline
    numbered: false
  items:
    label: Items
    type: structure
    width: 2/3
    fields:
      id:
        label: ID
        type: text
      quantity:
        label: Quantity
        type: text
      price:
        label: Price
        type: text
      tax:
        label: Tax
        type: text
  infoOrder:
    label: Info
    type: info
    width: 1/3
    text: >
      Invoice Number: {{ page.invoiceNumber }}<br>
      Sum: {{ page.formattedSum }}<br>
      Invoice Date: {{ page.invoiceDate }}<br>
      Payed Date: {{ page.payedDate }}<br>

orders

type: pages
parent: site.find("orders")
template: order
sortBy: num desc
text: "#{{ page.invoiceNumber }}"
info: "{{ page.formattedSum }}"

payment-method

type: fields
fields:
  paymentMethod:
    label: Payment Method
    type: text
    required: true
    width: 1/2
  paymentComplete:
    label: Payment Complete
    type: toggle
    width: 1/2
    text:
      - "No"
      - "Yes"