<div class="card panel-fcs-border shadow-sm">
    <div class="card-header">
        <span class="fcs-card-title h2">
            [% if $create %]
                [% $user->gettext('Softwareprodukt anlegen') %]
            [% else %]
                [% $user->gettext('Softwareprodukt bearbeiten') %]
            [% /if %]
        </span>
    </div>
    <div class="card-body">
        <form  action="index.php?module=assets&class=swproducts&event=saveProduct" method="post" name="hm" id="hm" class="form-horizontal form-label-left">
            <input type="hidden" name="save" value="1">
            <input type="hidden" name="swproductid" value="[% $SWProduct.swproductid %]">
            <input type="hidden" name="deviceid" value="[% $Device.deviceid %]">
            <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('Softwareprodukt') %]</span>

                    <span class='pull-right'>
                        <a href="index.php?module=assets&class=swproducts" 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('Asset')%]</label>
                                        <div class='col-sm-8'>
                                            <a href="index.php?module=assets&assign=1" class="btn btn-outline-secondary openInBigIFrameModal">[% $user->gettext('Asset auswählen') %]</a>
                                            [% if $Device.deviceid %]<span class="fa fa-hard-drive"></span>&nbsp;&nbsp;&nbsp;[%$Device.devicename%][% /if %]
                                        </div>
                                    </div>

                                    <div class="form-group row mb-3">
                                        <label class="col-sm-4 control-label">[% $user->gettext('Hostname')%]</label>
                                        <div class='col-sm-8'>
                                            <input disabled="disabled" type='text' name='' class='form-control' value="[% $Device.hostname %]">
                                        </div>
                                    </div>
                                    <div class="form-group row mb-3">
                                        <label class="col-sm-4 control-label">[% $user->gettext('Buildnummer')%]</label>
                                        <div class='col-sm-8'>
                                            <input type='text' name='buildno' class='form-control' value="[% if $SWProduct.buildno %][% $SWProduct.buildno %][% /if %]">
                                        </div>
                                    </div>

                                    <div class="form-group row mb-3">
                                        <label class="col-sm-4 control-label">[% $user->gettext('Installationsdatum')%]</label>
                                        <div class='col-sm-8'>
                                            <input type='text' name='instdate' class='form-control datepicker' value="[% if $SWProduct.instdate%][% $SWProduct.instdate%][% /if %]">
                                        </div>
                                    </div>
                                    <div class="form-group row mb-3">
                                        <label class="col-sm-4 control-label">[% $user->gettext('Installationsverzeichnis')%]</label>
                                        <div class='col-sm-8'>
                                            <input type='text' name='instdir' class='form-control' value="[% if $SWProduct.instdir%][% $SWProduct.instdir%][% /if %]">
                                        </div>
                                    </div>
                                    
                                </div>
                                <div class="col-sm-6">
                                    <div class="form-group row mb-3">
                                        <label class="col-sm-4 control-label">[% $user->gettext('Software')%]</label>
                                        <div class='col-sm-8'>
                                            [%*<input type='text' name='prodlanguage' class='form-control' value="[% $catalog.prodlanguage %]">*%]
                                            <a href="index.php?module=assets&class=swproductcatalogs&assign=1" class="btn btn-outline-secondary openInBigIFrameModal">[% $user->gettext('Katalogsoftware zuweisen') %]</a>
                                            [% if $Catalog.swproductcatalogid %]<span class="fa fa-folder-open"></span>&nbsp;&nbsp;&nbsp;[%$Catalog.prodname%][% /if %]
                                        </div>
                                    </div>
                                   
                                
                                        <div class="form-group row mb-3">
                                        <label class="col-sm-4 control-label">[% $user->gettext('Produktname')%]</label>
                                        <div class='col-sm-8'>
                                            <input disabled="disabled" type='text' name='' class='form-control' value="[% $Catalog.prodname %]">
                                        </div>
                                    </div>
                                        <div class="form-group row mb-3">
                                        <label class="col-sm-4 control-label">[% $user->gettext('Produktbeschreibung')%]</label>
                                        <div class='col-sm-8'>
                                            <input disabled="disabled" type='text' name='' class='form-control' value="[% $Catalog.descr %]">
                                        </div>
                                    </div>
                                        <div class="form-group row mb-3">
                                        <label class="col-sm-4 control-label">[% $user->gettext('Produktversion')%]</label>
                                        <div class='col-sm-8'>
                                            <input disabled="disabled" type='text' name='' class='form-control' value="[% $Catalog.prodversion %]">
                                        </div>
                                    </div>
                                        <div class="form-group row mb-3">
                                        <label class="col-sm-4 control-label">[% $user->gettext('Produktvendor')%]</label>
                                        <div class='col-sm-8'>
                                            <input disabled="disabled" type='text' name='' class='form-control' value="[% $Catalog.prodvendor %]">
                                        </div>
                                    </div>
                                        
                                        <div class="form-group row mb-3">
                                        <label class="col-sm-4 control-label">[% $user->gettext('Produktsprache')%]</label>
                                        <div class='col-sm-8'>
                                            <input disabled="disabled" type='text' name='' class='form-control' value="[% $Catalog.prodlanguage %]">
                                        </div>
                                    </div>
                                   
                                </div>
                                        
                            </div>


                        </div>
                    </div>

                </div>
            </div>
        </form>                                                    
    </div>
</div>
                                        <script>
                                      
$(".datepicker").datepicker();
function closeIframe() {
    $("#myBigIFrameModal").modal('hide');
    window.location = window.location;
}
                                            </script>
