<form class="form-horizontal form-label-left">

    <div class="card panel-info shadow-sm rounded">
        <div class="card-header" role="tab" id="headingContact">
            <a class="collapsed" role="button" data-toggle="collapse" data-parent="#DEACTIVEleftAccordion" href="#ContactPanel" aria-expanded="false" aria-controls="collapseContact">
                <div class="row">
                    <div class="col-lg-12">
                        <span class="fcs-card-title">
                            [% $user->gettext('Kontaktdetail') %]
                        </span>
                    </div>

                </div>
            </a>
        </div>
        <div id="ContactPanel" class="panel-collapse collapse" role="tabpane2" aria-labelledby="headingContact">
            <div class="card-body">
                [% if $contact %]
                    <div class="form-group row mb-3">
                        <label class="control-label col-lg-4">[% $user->gettext('Firma') %]</label>
                        <div class="col-lg-8">
                            <p class="form-control-static">[% $contact.company %]</p>
                        </div>
                    </div>

                    <div class="form-group row mb-3">
                        <label class="control-label col-lg-4">[% $user->gettext('Abteilung') %]</label>
                        <div class="col-lg-8">
                            <p class="form-control-static">[% $contact.department %]</p>
                        </div>
                    </div>

                    <div class="form-group row mb-3">
                        <label class="control-label col-lg-4">[% $user->gettext('Name') %]</label>
                        <div class="col-lg-8">
                            <p class="form-control-static">[% $contact.name %]</p>
                        </div>
                    </div>

                    <div class="form-group row mb-3">
                        <label class="control-label col-lg-4">[% $user->gettext('Postition') %]</label>
                        <div class="col-lg-8">
                            <p class="form-control-static">[% $contact.com_position %]</p>
                        </div>
                    </div>

                    <div class="form-group row mb-3">
                        <label class="control-label col-lg-4">[% $user->gettext('Geb&auml;ude') %]</label>
                        <div class="col-lg-8">
                            <p class="form-control-static">[% $contact.building %]</p>
                        </div>
                    </div>

                    <div class="form-group row mb-3">
                        <label class="control-label col-lg-4">[% if $contact.floor != '' %][% $user->gettext('Stockwerk') %] / [% /if %][% $user->gettext('Raum') %]</label>
                        <div class="col-lg-8">
                            <p class="form-control-static">[% if $contact.floor != '' %][% $contact.floor %] / [% /if %][% $contact.room %]</p>
                        </div>
                    </div>

                    <div class="form-group row mb-3">
                        <label class="control-label col-lg-4">[% $user->gettext('Stra&szlig;e') %]</label>
                        <div class="col-lg-8">
                            <p class="form-control-static">[% $contact.street %]</p>
                        </div>
                    </div>

                    <div class="form-group row mb-3">
                        <label class="control-label col-lg-4">[% $user->gettext('PLZ/Ort') %]</label>
                        <div class="col-lg-8">
                            <p class="form-control-static">[% $contact.plz|default:"&nbsp;" %] [% $contact.city|default:"&nbsp;" %]</p>
                        </div>
                    </div>

                    <div class="form-group row mb-3">
                        <label class="control-label col-lg-4">[% $user->gettext('Bundesland') %]</label>
                        <div class="col-lg-8">
                            <p class="form-control-static">[% $contact.state|default:"" %]</p>
                        </div>
                    </div>

                    <div class="form-group row mb-3">
                        <label class="control-label col-lg-4">[% $user->gettext('Land') %]</label>
                        <div class="col-lg-8">
                            <p class="form-control-static">[% $contact.country|default:"" %]</p>
                        </div>
                    </div>

                    <div class="form-group row mb-3">
                        <label class="control-label col-lg-4">[% $user->gettext('Telefon') %]</label>
                        <div class="col-lg-8">
                            <p class="form-control-static">[% $contact.phone %]</p>
                        </div>
                    </div>

                    <div class="form-group row mb-3">
                        <label class="control-label col-lg-4">[% $user->gettext('Mobil') %]</label>
                        <div class="col-lg-8">
                            <p class="form-control-static">[% $contact.mobil %]</p>
                        </div>
                    </div>

                    <div class="form-group row mb-3">
                        <label class="control-label col-lg-4">[% $user->gettext('Fax') %]</label>
                        <div class="col-lg-8">
                            <p class="form-control-static">[% $contact.fax %]</p>
                        </div>
                    </div>

                    <div class="form-group row mb-3">
                        <label class="control-label col-lg-4">[% $user->gettext('Email') %]</label>
                        <div class="col-lg-8">
                            <p class="form-control-static"><a href="mailto:[% $contact.email %]">[% $contact.email %]</a></p>
                        </div>
                    </div>

                    <div class="form-group row mb-3">
                        <label class="control-label col-lg-4">[% $user->gettext('Zusatzinformation') %]</label>
                        <div class="col-lg-8">
                            <p class="form-control-static">[% $contact.misc %]</p>
                        </div>
                    </div>
                [% /if %]
                [% if !$employee && !$contact %]
                    <div class="col-sm-12 col-xs-12 col-lg-12">[% $user->gettext('Mit diesem Benutzer sind keine Kontaktdetails verkn&uuml;pft') %]</div>
                [% /if %]
            </div>                                             
        </div>
    </div>
</form>