<!-- When modal is open add .dso-modal-open to body -->

<body class="dso-modal-open dso-scripted-height">
    <!-- Modal markup. Can be placed anywhere inside <body> -->
    <div class="dso-modal" tabindex="-1" role="dialog" aria-labelledby="modal-scripted-height">
        <div class="dso-dialog" role="document">
            <div class="dso-header">
                <h2 id="modal-scripted-height">Activiteit toevoegen</h2>
                <button type="button" class="dso-close" aria-label="Sluiten"></button>
            </div>
            <div class="dso-body">
                <p>What is Lorem Ipsum?
                    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry&#x27;s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
                    Why do we use it?
                    It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using &#x27;Content here, content here&#x27;, making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for &#x27;lorem ipsum&#x27; will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).
                    Where does it come from?
                    Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of &quot;de Finibus Bonorum et Malorum&quot; (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, &quot;Lorem ipsum dolor sit amet..&quot;, comes from a line in section 1.10.32.
                    The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from &quot;de Finibus Bonorum et Malorum&quot; by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.
                    Where can I get some?
                    There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don&#x27;t look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn&#x27;t anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.
                </p>

            </div>
            <div class="dso-footer">
                <button type="submit" class="btn btn-primary">
                    Toevoegen
                </button>
                <button type="button" class="btn btn-link">
                    <span class="icon fas fa-times" aria-hidden="true"></span>
                    Annuleren
                </button>

            </div>
        </div>
    </div>
    <div class="container">
        <!-- Page content -->
        <form>
            <fieldset class="dso-form-fields">
                <legend class="sr-only">Vertical Form</legend>
                <fieldset>
                    <legend>Contact</legend>
                    <div class="form-group dso-input dso-input-text dso-required">
                        <div class="dso-label-container">
                            <label for="voornaam" class="control-label">
                                Voornaam
                            </label>
                        </div>
                        <div class="dso-field-container">
                            <input type="text" id="voornaam" class="form-control" required />
                        </div>
                    </div>
                    <div class="form-group dso-input dso-input-text">
                        <div class="dso-label-container">
                            <label for="achternaam" class="control-label">
                                Achternaam
                            </label>
                        </div>
                        <div class="dso-field-container">
                            <input type="text" id="achternaam" class="form-control" />
                            <p class="dso-help-block" id="helpTextId_achternaam">Mag ook de familienaam zijn</p>
                        </div>
                    </div>
                    <div class="form-group dso-static">
                        <div class="dso-label-container">
                            <label class="control-label">Geslacht</label>
                        </div>
                        <div class="dso-field-container">
                            <p>Man</p>
                        </div>
                    </div>
                    <div class="form-group dso-input dso-input-text has-feedback">
                        <div class="dso-label-container">
                            <label for="geboortedatum" class="control-label">
                                Geboortedatum
                            </label>
                        </div>
                        <div class="dso-field-container">
                            <input type="text" id="geboortedatum" class="form-control" />
                            <span class="fas fa-calendar form-control-feedback" aria-hidden="true"></span>
                        </div>
                    </div>
                    <div class="form-group dso-input dso-input-text dso-required">
                        <div class="dso-label-container">
                            <label for="email" class="control-label">
                                E-mailadres
                            </label>
                        </div>
                        <div class="dso-field-container">
                            <input type="text" id="email" class="form-control" required />
                        </div>
                    </div>
                    <div class="form-group dso-input dso-input-text">
                        <div class="dso-label-container">
                            <label for="password" class="control-label">
                                Wachtwoord
                            </label>
                        </div>
                        <div class="dso-field-container">
                            <input type="text" id="password" class="form-control" />
                        </div>
                    </div>
                    <div class="form-group dso-input dso-input-text">
                        <div class="dso-label-container">
                            <label for="password_bevestig" class="control-label">
                                Wachtwoord (bevestig)
                            </label>
                        </div>
                        <div class="dso-field-container">
                            <input type="text" id="password_bevestig" class="form-control" />
                        </div>
                    </div>
                    <div class="form-group dso-confirm">
                        <div class="dso-field-container">
                            <div class="dso-selectable">
                                <input type="checkbox" id="nieuwsbrief" name="" value="" />
                                <label for="nieuwsbrief">
                                    Stuur mij de maandelijkse nieuwsbrief
                                </label>
                            </div>
                            <p class="dso-help-block" id="helpTextId_nieuwsbrief">Uw gegevens zullen niet worden gedeeld met derden</p>
                        </div>
                    </div>
                </fieldset>
                <fieldset>
                    <legend>Beleg</legend>
                    <div class="form-group dso-select dso-multiple">
                        <div class="dso-label-container">
                            <label for="beleg" class="control-label">
                                Beleg
                            </label>
                        </div>
                        <div class="dso-field-container">
                            <select id="beleg" class="form-control" multiple>
                                <optgroup label="Vlees">
                                    <option value="worst">Worst</option>
                                    <option value="salami">Salami</option>
                                    <option value="geit">Geit</option>
                                </optgroup>
                                <optgroup label="Vis">
                                    <option value="zalm">Zalm</option>
                                    <option value="makreel">Makreel</option>
                                </optgroup>
                            </select>
                        </div>
                    </div>
                </fieldset>
                <fieldset>
                    <legend>Auto merk</legend>
                    <div class="form-group dso-select">
                        <div class="dso-label-container">
                            <label for="auto_merk" class="control-label">
                                Type auto
                            </label>
                        </div>
                        <div class="dso-field-container">
                            <select id="auto_merk" class="form-control">
                                <optgroup label="Europees">
                                    <option value="alfa">Alfa Romeo</option>
                                    <option value="fiat">Fiat</option>
                                    <option value="mercedes" selected>Mercedes</option>
                                    <option value="volkswagen">Volkswagen</option>
                                </optgroup>
                            </select>
                        </div>
                    </div>
                </fieldset>
                <fieldset>
                    <legend>Aanhanger</legend>
                    <fieldset class="form-group dso-radios">
                        <legend class="dso-label-container">
                            <label class="control-label">
                                Welke aanhanger
                            </label>
                        </legend>
                        <div class="dso-field-container">
                            <div class="dso-selectable">
                                <input type="radio" id="aanhanger-0" name="aanhanger" value="bak" />
                                <label for="aanhanger-0">
                                    Bak
                                </label>
                            </div>
                            <div class="dso-selectable">
                                <input type="radio" id="aanhanger-1" name="aanhanger" value="caravan" checked />
                                <label for="aanhanger-1">
                                    Caravan
                                </label>
                            </div>
                            <div class="dso-selectable">
                                <input type="radio" id="aanhanger-2" name="aanhanger" value="fietsendrager" />
                                <label for="aanhanger-2">
                                    Fietsendrager
                                </label>
                            </div>
                            <div class="dso-selectable">
                                <input type="radio" id="aanhanger-3" name="aanhanger" value="oplegger" />
                                <label for="aanhanger-3">
                                    Oplegger
                                </label>
                            </div>
                        </div>
                    </fieldset>
                </fieldset>
                <fieldset>
                    <legend>Vraag</legend>
                    <div class="form-group dso-textarea">
                        <div class="dso-label-container">
                            <label for="gekke_vraag" class="control-label">
                                Waarom heeft een tankstation dat 24 uur per dag open is een slot op de deur?
                            </label>
                        </div>
                        <div class="dso-field-container">
                            <textarea class="form-control" id="gekke_vraag" rows="5"></textarea>
                            <p class="dso-help-block" id="helpTextId_gekke_vraag">Deze vraag heeft een toelichting</p>
                        </div>
                    </div>
                </fieldset>
                <fieldset>
                    <legend>Vraag met infobutton</legend>
                    <fieldset class="form-group dso-radios">
                        <legend class="dso-label-container">
                            <label class="control-label">
                                Blieft u een toelichting?
                            </label>
                            <button type="button" class="btn dso-info-button">
                                <span class="sr-only">
                                    Toelichting
                                </span>
                            </button>
                        </legend>
                        <div class="dso-field-container">
                            <div class="dso-selectable">
                                <input type="radio" id="input-radio-infobutton-0" name="input-radio-infobutton" value="1" checked />
                                <label for="input-radio-infobutton-0">
                                    ja
                                </label>
                                <button type="button" class="btn dso-info-button">
                                    <span class="sr-only">
                                        Toelichting
                                    </span>
                                </button>
                            </div>
                            <div class="dso-selectable">
                                <input type="radio" id="input-radio-infobutton-1" name="input-radio-infobutton" value="2" />
                                <label for="input-radio-infobutton-1">
                                    nee
                                </label>
                            </div>
                        </div>
                    </fieldset>
                </fieldset>
                <fieldset>
                    <legend>Vraag met infobutton uitgeklapt</legend>
                    <fieldset class="form-group dso-radios">
                        <legend class="dso-label-container">
                            <label class="control-label">
                                Toelichting op uw vraag
                            </label>
                            <button type="button" class="btn dso-info-button dso-open">
                                <span class="sr-only">
                                    Toelichting
                                </span>
                            </button>
                        </legend>
                        <div class="dso-field-container">
                            <div class="dso-selectable">
                                <input type="radio" id="input-radio-infobutton-open-0" name="input-radio-infobutton-open" value="1" checked />
                                <label for="input-radio-infobutton-open-0">
                                    ja
                                </label>
                                <button type="button" class="btn dso-info-button">
                                    <span class="sr-only">
                                        Toelichting
                                    </span>
                                </button>
                            </div>
                            <div class="dso-selectable">
                                <input type="radio" id="input-radio-infobutton-open-1" name="input-radio-infobutton-open" value="2" />
                                <label for="input-radio-infobutton-open-1">
                                    nee
                                </label>
                            </div>
                        </div>
                        <div class="dso-info">
                            <button type="button">
                                <span class="sr-only">Sluiten</span>
                            </button>
                            <div class="dso-rich-content">
                                <h4>Let op</h4>
                                <p>Bij verticale formulieren wordt het bij checkboxen en radio's onoverzichtelijk als de toelichting bij de vraag EN opties toont</p>

                            </div>
                        </div>
                    </fieldset>
                </fieldset>
            </fieldset>
            <div class="dso-form-buttons">
                <button type="submit" class="btn btn-primary">
                    Verstuur
                </button>
            </div>
        </form>

    </div>
</body>
<!-- When modal is open add .dso-modal-open to body -->
<body class="dso-modal-open{{#if noMaxHeight }} dso-scripted-height{{/if}}">
  <!-- Modal markup. Can be placed anywhere inside <body> -->
  {{#dialog dialog }}
    <p>{{ body }}</p>
  {{/dialog}}

  <div class="container">
    <!-- Page content -->
    {{render '@form' }}
  </div>
</body>
body: >
  What is Lorem Ipsum?

  Lorem Ipsum is simply dummy text of the printing and typesetting industry.
  Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
  when an unknown printer took a galley of type and scrambled it to make a type
  specimen book. It has survived not only five centuries, but also the leap into
  electronic typesetting, remaining essentially unchanged. It was popularised in
  the 1960s with the release of Letraset sheets containing Lorem Ipsum passages,
  and more recently with desktop publishing software like Aldus PageMaker
  including versions of Lorem Ipsum.

  Why do we use it?

  It is a long established fact that a reader will be distracted by the readable
  content of a page when looking at its layout. The point of using Lorem Ipsum
  is that it has a more-or-less normal distribution of letters, as opposed to
  using 'Content here, content here', making it look like readable English. Many
  desktop publishing packages and web page editors now use Lorem Ipsum as their
  default model text, and a search for 'lorem ipsum' will uncover many web sites
  still in their infancy. Various versions have evolved over the years,
  sometimes by accident, sometimes on purpose (injected humour and the like).

  Where does it come from?

  Contrary to popular belief, Lorem Ipsum is not simply random text. It has
  roots in a piece of classical Latin literature from 45 BC, making it over 2000
  years old. Richard McClintock, a Latin professor at Hampden-Sydney College in
  Virginia, looked up one of the more obscure Latin words, consectetur, from a
  Lorem Ipsum passage, and going through the cites of the word in classical
  literature, discovered the undoubtable source. Lorem Ipsum comes from sections
  1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good
  and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory
  of ethics, very popular during the Renaissance. The first line of Lorem Ipsum,
  "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.

  The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for
  those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et
  Malorum" by Cicero are also reproduced in their exact original form,
  accompanied by English versions from the 1914 translation by H. Rackham.

  Where can I get some?

  There are many variations of passages of Lorem Ipsum available, but the
  majority have suffered alteration in some form, by injected humour, or
  randomised words which don't look even slightly believable. If you are going
  to use a passage of Lorem Ipsum, you need to be sure there isn't anything
  embarrassing hidden in the middle of text. All the Lorem Ipsum generators on
  the Internet tend to repeat predefined chunks as necessary, making this the
  first true generator on the Internet. It uses a dictionary of over 200 Latin
  words, combined with a handful of model sentence structures, to generate Lorem
  Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always
  free from repetition, injected humour, or non-characteristic words etc.
dialog:
  id: modal-scripted-height
  heading: Activiteit toevoegen
  buttons:
    - name: confirmButton
      type: submit
      modifier: primary
      label: Toevoegen
    - name: cancelButton
      type: button
      modifier: link
      icon: icon fas fa-times
      label: Annuleren
noMaxHeight: true

De class .dso-scripted-height verwijdert op .dso-body in de large viewport de max-height-property.