extends ../partials/page-templates/_layout.pug
include ../partials/mixins-demo/_nav-components.pug
include ../partials/mixins/_data-box.pug

block append variables
  -var active_nav_item = "components"
  -var sidebar = true
  - var page_title = "Component: Data Box"

block content

  .page__content__block
    .text--stamp Component
    h1 
      | A box for
      | 
      strong displaying editable data
    p A box with a list of data and a button that links to a form, where the data can be edited and updated.  
      
    +data-box("Your details", true, "#", true, "en")
      dt Name
      dd Bjarke Frederiksen
      dt Email
      dd bjarke.f@post.au.dk
      dt Student ID
      dd 2019638724
      dt Phone 
      dd 12 34 56 78


    p If only part of the data is editable, you can spilt it into two boxes. Whene the first one contain the none editable data and does not have edit link. And the last one snaps to the box above it.

    +data-box("Your details", false, "#", true, "en")
      dt Name
      dd Bjarke Frederiksen
      dt Email
      dd bjarke.f@post.au.dk
      dt Student ID
      dd 2019638724
    +data-box("Contact", true, "#", true, "en").data-box--hide-header  
      dt Phone 
      dd 12 34 56 78

    p A data item can also be empty.
    +data-box("Your details", true, "#", true, "en")
      dt Name
      dd Bjarke Frederiksen
      dt Email
      dd.data-box__empty-item Not provided

    p The data does not need to be a list. It can also be text.
    +data-box("Notes", true, "#", false, "en")
      p Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
      p Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

    p The data does not need to be a list. It can also be text.
    +data-box("Selected courses", true, "#", false, "en")
      h4.data-box__subtitle First course
      dl.dl.dl--dense
        dt Name
        dd Advanced Data Unboxing
        dt Points
        dd 10 ECTS
      h4.data-box__subtitle Second course
      dl.dl.dl--dense
        dt Name
        dd Business Data Analysis
        dt Points
        dd 10 ECTS







block sidebar

  +components-nav("data-box")
