
<form class="form-horizontal form-label-left" action="index.php?module=criteria&event=create" method="post" id="hm1">
    <div class="card panel-fcs-border shadow-sm">
        <div class="card-header">
            <div class="row">
                <div class="col-sm-6">
                    <span class="fcs-card-title h2">[% $user->gettext('Kriterium erstellen') %]</span>
                </div>
                <div class="col-sm-6 text-end">
                    <a href="javascript:checkForm();" class="btn btn-outline-primary">[% $user->gettext('Speichern') %]</a>
                </div>
            </div>
        </div>
        <div class="card-body">
            [% if $errMessage %]
                <div class="alert alert-danger">[%  $errMessage %]</div>
            [% /if %]
            <div class="form-group row mb-3">
                <label class="col-sm-3">
                    [% $user->gettext('Name des Kriteriums') %]
                </label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" name="cName">
                </div>
            </div>
            <div class="form-group row mb-3">
                <label class="col-sm-3">
                    [% $user->gettext('Kommentar') %]
                </label>
                <div class="col-sm-9">
                    <textarea class="form-control" name="cComment"></textarea>
                </div>
            </div>
        </div>
    </div>
</form>

<script>
    function checkForm() {
        $("#hm1").submit();
    }
</script>