<div id="docContent">
    <style>
        .btn-file {
            position: relative;
            overflow: hidden;
        }
        .btn-file input[type=file] {
            position: absolute;
            top: 0;
            right: 0;
            min-width: 100%;
            min-height: 100%;
            font-size: 100px;
            text-align: right;
            filter: alpha(opacity=0);
            opacity: 0;
            outline: none;
            background: white;
            cursor: inherit;
            display: block;
        }
    </style>
    <form action="index.php?module=changerequest&amp;class=attachments&amp;event=create" method="POST" enctype="multipart/form-data" id="UploadFile" class="form-horizontal form-label-left">

        <input type="hidden" name="id" value="[% $id %]" />



        <div class="card panel-fcs-border shadow-sm">
            <div class="card-header">
                <span class="fcs-card-title h2">
                    [% $user->gettext('Neues Dokument') %]
                </span>
            </div>
            <div class="card-body">
                <div class="card panel-info shadow-sm rounded">
                    <div class="card-body text-center">
                        <input type="submit" class="btn btn-outline-primary" value="[% $user->gettext('Speichern') %]">
                    </div>
                </div>
                <div class="card panel-info shadow-sm rounded">
                    <div class="card-header">
                        <span class="fcs-card-title h3">
                            [% $user->gettext('Dokument erstellen') %]
                        </span>
                    </div>
                    <div class="card-body">
                        [% if $error != '' %]
                            <div class="alert alert-danger">
                                [% $error %]
                            </div>
                        [% /if %]
                        <div class="form-group row mb-3">
                            <label class="col-lg-3 control-label">
                                [% $user->gettext('Kurzbeschreibung') %]:
                            </label>
                            <div class="col-lg-9">
                                <input type="text" name="ShortDescr" value="[% $ShortDescr %]" class="form-control" />
                            </div>
                        </div>

                        <div class="form-group row mb-3">
                            <label class="col-lg-3 control-label">
                                [% $user->gettext('Hyperlink') %]:
                            </label>
                            <div class="col-lg-9">
                                <input type="text" name="URL"  value="[% $URL %]" class="form-control" />
                            </div>
                        </div>

                        <div class="form-group row mb-3">
                            <label class="col-lg-3 control-label">
                                [% $user->gettext('Beschreibung') %]:
                            </label>
                            <div class="col-lg-9">
                                <textarea id="LongDescr" name="LongDescr" rows="10" class="form-control" >[% $LongDescr %]</textarea>
                            </div>
                        </div>

                        <div class="form-group row mb-3">
                            <label class="col-lg-3 control-label">
                                [% $user->gettext('Datei') %]:
                            </label>
                            <div class="col-lg-9">
                                <span class="btn btn-outline-primary btn-file">
                                    [% $user->gettext('Datei wählen')%] <input type="file" class="form-control" name="UploadFile" value="" />
                                </span>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </form>
</div>