<div class="card panel-fcs-border shadow-sm">
    <div class="card-header">
        <span class="fcs-card-title h2">
            [% if $create %]
                [% $user->gettext('Katalog anlegen') %]
            [% else %]
                [% $user->gettext('Katalog bearbeiten') %]
            [% /if %]
        </span>
    </div>
    <div class="card-body">
        <form  action="index.php?module=assets&class=swproductcatalogs&event=saveCatalog" method="post" name="hm" id="hm" class="form-horizontal form-label-left">
            <input type="hidden" name="save" value="1">
            <input type="hidden" name="swproductcatalogid" value="[% $catalog.swproductcatalogid %]">
            <div class="card panel-info shadow-sm rounded">
                <div class="card-header">
                    <span class="fcs-card-title h3">[% $user->gettext('Katalog') %]</span>

                    <span class='pull-right'>
                        <a href="index.php?module=assets&class=swproductcatalogs" class='btn btn-outline-secondary'>[% $user->gettext('Liste') %]</a>
                        <button class='btn btn-outline-secondary'>[% $user->gettext('Speichern') %]</button>
                    </span>
                </div>
                <div class="card-body">
                    <div class="card panel-info shadow-sm rounded">                  
                        <div class="card-body">
                            <div class="row">
                                <div class="col-sm-6">
                                    <div class="form-group row mb-3">
                                        <label class="col-sm-4 control-label">[% $user->gettext('Produktname')%]</label>
                                        <div class='col-sm-8'>
                                            <input type='text' name='prodname' class='form-control' value="[% $catalog.prodname %]">
                                        </div>
                                    </div>

                                    <div class="form-group row mb-3">
                                        <label class="col-sm-4 control-label">[% $user->gettext('Version')%]</label>
                                        <div class='col-sm-8'>
                                            <input type='text' name='prodversion' class='form-control' value="[% $catalog.prodversion %]">
                                        </div>
                                    </div>

                                    <div class="form-group row mb-3">
                                        <label class="col-sm-4 control-label">[% $user->gettext('Sprache')%]</label>
                                        <div class='col-sm-8'>
                                            <input type='text' name='prodlanguage' class='form-control' value="[% $catalog.prodlanguage %]">
                                        </div>
                                    </div>
                                </div>
                                <div class="col-sm-6">
                                    <div class="form-group row mb-3">
                                        <label class="col-sm-4 control-label">[% $user->gettext('Vendor')%]</label>
                                        <div class='col-sm-8'>
                                            <input type='text' name='prodvendor' class='form-control' value="[% $catalog.prodvendor %]">
                                        </div>
                                    </div>

                                    <div class="form-group row mb-3">
                                        <label class="col-sm-4 control-label">[% $user->gettext('Beschreibung')%]</label>
                                        <div class='col-sm-8'>
                                            <input type='text' name='descr' class='form-control' value="[% $catalog.descr %]">
                                        </div>
                                    </div>
                                </div>
                            </div>


                        </div>
                    </div>

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