<h2>
    {tmpl_var name='installation_txt'}: {tmpl_var name='pkg_name'} {tmpl_var name='pkg_version'}-{tmpl_var name='pkg_release'}
    <span style="float:right">
        <tmpl_if name='pkg_icon' op='!=' value=''>
            <img src="{tmpl_var name='pkg_icon'}" height="32" width="32" alt="{tmpl_var name='pkg_name'}" style="vertical-align:text-bottom;" /> 
        </tmpl_if>
    </span>
</h2>
    
<tmpl_if name='error'>
    <div id="errorMsg"><h3>ERROR</h3><ol>{tmpl_var name='error'}</ol></div>
</tmpl_if>


        
            <legend>{tmpl_var name='basic_settings_txt'}</legend>
            <div class="form-group">
                <label for="main_domain" class="col-sm-3 control-label">{tmpl_var name='install_location_txt'}</label>
                <div class="resetButton">http(s)://&nbsp;</div>DOMAIN_LIST_SPACE<div style="float:left;">&nbsp;/&nbsp;</div>
                <div class="col-sm-9"><input type="text" name="main_location" id="main_location" value="{tmpl_var name='inp_main_location'}" class="form-control" />
            </div></div>
            <tmpl_if name='pkg_requirements_database' op='!=' value=''>
                <div class="form-group">
                    <label for="main_database_password" class="col-sm-3 control-label">{tmpl_var name='new_database_password_txt'}</label>
                    <div class="col-sm-9"><input type="text" class="form-control" name="main_database_password" id="main_database_password" value="{tmpl_var name='inp_main_database_password'}" />
                </div></div>
            </tmpl_if>
                
            PKG_SETTINGS_SPACE
                
            <legend>{tmpl_var name='license_txt'}</legend>
            <div class="form-group">
                <label for="license" class="col-sm-3 control-label">{tmpl_var name='license_txt'}</label>
                <tmpl_if name='pkg_license_content' op='==' value=''>{tmpl_var name='pkg_license_name'}<br /></tmpl_if>
                <tmpl_if name='pkg_license_type' op='==' value='url'>
                    <a href="{tmpl_var name='pkg_license_content'}" target="_blank">{tmpl_var name='pkg_license_content'}</a>
                    <tmpl_elseif name='pkg_license_content'>
                        <div class="col-sm-9"><textarea rows="10" cols="80" id="license_text">{tmpl_var name='pkg_license_content'}</textarea></div>
                </tmpl_if>
            </div>
            <div class="form-group">
                <label for="license" class="col-sm-3 control-label">{tmpl_var name='acceptance_txt'}</label>
                <div class="col-sm-9"><input type="checkbox" name="license" id="license" <tmpl_if name='inp_license' op='==' value='true'>checked</div></tmpl_if> />&nbsp;&nbsp;{tmpl_var name='acceptance_text'}
            </div>
        
            
        <input type="hidden" name="install" value="0" />
        <div class="clear"><div class="right">
            <button class="btn btn-default formbutton-success" type="button" value="{tmpl_var name='btn_install_txt'}" name="btn_install" onclick="document.pageForm.install.value=1; submitForm('pageForm','sites/aps_install_package.php?id={tmpl_var name='pkg_id'}');">{tmpl_var name='btn_install_txt'}</button>
            <button class="btn btn-default formbutton-default" type="button" value="{tmpl_var name='btn_cancel_txt'}" data-load-content="sites/aps_availablepackages_list.php">{tmpl_var name='btn_cancel_txt'}</button>
        </div></div>
