<h3 class="headline medium"><?=ucfirst($_view["step"]); ?></h3>

<form method="post" id="interviewForm" action="<?= $_con->getLink(["interview", "interviewForm"]); ?>">
    <input type="hidden" name="step" value="<?= $_view["step"] ?>">

    <?php
        foreach ($_view["questions"] as $question) {
            echo $_con->getRenderedView("interview/question.partial", ["question" => $question, "formData" => $_view["formData"]]);
        }
    ?>

    <div class="row g-2 space-mt-md justify-content-center">
        <?php if ($_view["step"] != "company") { ?>
        <div class="col-6 col-sm-6 text-end">
            <div class="btn lg btn-secondary w-xs-100 ico left">
                <span class="icon"></span>Zurück<input type="submit"  name="back" value="Zurück">
            </div>
        </div>
        <?php } ?>
        <div class="col-6 col-sm-6">
            <div class="btn lg btn-primary score w-xs-100 ico right">
                <input type="submit" name="continue" value="Weiter">Weiter<span class="icon"></span>
            </div>
        </div>
    </div>
     <div class="row g-2 mt-2 justify-content-center">   
        <div class="col-12 col-sm-6 text-end">
            <div class="btn sm btn-secondary w-xs-100 ico left">
                <span class="icon"></span>Neu beginnen
                <input type="submit" name="reset" value="Neu beginnen" onclick="return confirm('Sind Sie sicher? Alle Eingaben werden gelöscht.');">
            </div>
        </div>
        <div class="col-12 col-sm-6">
            <div class="btn sm btn-secondary w-xs-100 ico left">
                <span class="icon"></span>Als Entwurf speichern<input type="submit" name="draft" value="Als Entwurf speichern">
            </div>
        </div>
        
    </div>
</form>