<!-- workflow_list.tpl -->
<link rel="stylesheet" type="text/css" href="includes/js/select2/css/select2.min.css"/>
<script type="text/javascript" src="includes/js/select2/js/select2.full.min.js"></script>
<script type="text/javascript" src="includes/js/select2/js/i18n/de.js"></script>

<form action="index.php?module=workflow&event=activate" method="post" name="hm" id="hm" enctype="multipart/form-data" class="form-horizontal form-label-left">
    [% if $popup %]
        <input type="hidden" name="popup" value="1" />
        <input type="hidden" name="ticketid" value="[% $TicketID %]" />
    [% /if %]
    <!-- ###CONTENT### begin -->
    <div class="card panel-fcs-border shadow-sm">
        <div class="card-header">
            <span class="fcs-card-title h2">
                [%$user->gettext('Workflow starten')%]
            </span>
        </div>
        <div class="card-body">
            <div class="col-lg-8 offset-md-2">
                <div class="form-group row mb-3">
                    <label class="control-label col-lg-4">
                        [%$user->gettext('Workflow wählen')%]					
                    </label>
                    <div class="col-lg-8">
                        <select name="wfdid" class="form-control multiple" onchange='submitForm();' style="width:580px;">
                            <option value="0">[% $user->gettext('-- Workflow wählen --') %]</option>
                            [% foreach from=$workflows item=Description key=wfid %]
                                <option value="[% $wfid %]">[% $Description %]</option>
                            [% /foreach %]
                        </select>
                    </div>
                </div>
            </div>
        </div>
    </div>
</form>


<script type="text/javascript" language="javascript">
<!--

    $(document).ready(function () {
        $(".multiple").select2({theme: 'bootstrap-5'});
    });


// -->
</script>
