<form action = 'index.php?module=backlog&event=addTicketToBacklog' method='post' class="form-horizontal form-label-left">
    <input type="hidden" value="1" name="save">
    <input type='hidden' value='[% $id %]' name='ticketid'>
    <div class='card panel-fcs-border shadow-sm'>
        <div class='card-header'>
            <div class="row">
                <div class="col-sm-7">
                    <div class='fcs-card-title h3'>
                        [% $user->gettext(sprintf('Ticket (#%u) einem Backlog / Sprint zufügen', $id)) %]
                    </div>
                </div>
                <div class="col-sm-5 text-end">
                    <input type="submit" class='btn btn-outline-primary' value="[% $user->gettext('Hinzufügen') %]">
                </div>
            </div>
        </div>
        <div class="card-body">
            <div class="card panel-info shadow-sm rounded">
                <div class="card-header">
                    <h3 class="card-title">[% $user->gettext('Backlog / Sprint wählen') %]</h3>
                </div>
                <div class="card-body">
                    <div class="row">
                        <div class="col-lg-12">
                            <div class="form-group row mb-3">
                                <label class="col-lg-4 control-label">[% $user->gettext('Wählen Sie bitte ein Backlog / Sprint aus') %]</label>
                                <div class="col-lg-8">
                                    <select class="form-control" name="BacklogID">
                                        [% foreach from=$backlogs item=$bl %]
                                            <option value="[% $bl.id %]_[% $bl.sprintid %]">[% $bl.name %]</option>
                                        [% /foreach %]
                                    </select>
                                </div>
                            </div>           
                        </div>
                    </div>
                </div>
            </div>         
        </div>
    </div>
</form>
