<?php
$profile = $data['profile'];
?>
<h1 class="headline"><?php echo AdminText::get('PROFILE_EDIT_HEADLINE'); ?></h1>

<div id="admin_edit_sidebar" class="admin_onethird right">
    <?php PA::showImageUploader('headerimage',
                                'header_small',
                                $profile->id,
                                $profile->company_header_path,
                                AdminText::get('PROFILE_LABEL_HEADERIMAGE')); ?>
    <?php PA::showImageUploader('logoimage',
                                'logo_medium',
                                $profile->id,
                                $profile->company_logo_path,
                                AdminText::get('PROFILE_LABEL_COMPANYLOGO')); ?>
</div>

<div id="login_box_2" class="admin_twothird left">
    <form action="<?php echo PA::getURL(); ?>profiles/update/<?php
                  echo $profile->id; ?>" name="userProfile" method="post">

        <label for="companyName" class="form_label"><span><?php echo AdminText::get('PROFILE_LABEL_COMPANYNAME'); ?></span></label>
        <input type="text"
               name="companyName"
               class="form_element"
               placeholder="<?php echo AdminText::get('PROFILE_INPUT_PLACEHOLDER_COMPANYNAME'); ?>"
               value="<?php echo PA::formValue($profile->company_name); ?>">
        <label for="companyClaim" class="form_label"><span><?php echo AdminText::get('PROFILE_LABEL_COMPANYSLOGAN'); ?></span></label>
        <input type="text"
               name="companyClaim"
               class="form_element"
               placeholder="<?php echo AdminText::get('PROFILE_INPUT_PLACEHOLDER_COMPANYSLOGAN'); ?>"
               value="<?php echo $profile->company_claim; ?>">
        <label for="companyShortInfo" class="form_label"><span><?php echo AdminText::get('PROFILE_LABEL_COMPANYDESCRIPTION'); ?></span></label>
        <textarea type="text"
               name="companyShortInfo"
               class="form_element"
               placeholder="<?php echo AdminText::get('PROFILE_INPUT_PLACEHOLDER_COMPANYDESCRIPTION'); ?>"
               rows="3"><?php
            echo $profile->company_short_info; ?></textarea>
        <label for="companyInfo" class="form_label"><span><?php echo AdminText::get('PROFILE_LABEL_COMPANYDESCRIPTION_LONG'); ?></span></label>
        <textarea type="text"
               name="companyInfo"
               class="form_element"
               placeholder="<?php echo AdminText::get('PROFILE_INPUT_PLACEHOLDER_COMPANYDESCRIPTION_LONG'); ?>"
               rows="6"><?php
            echo $profile->company_info; ?></textarea>
        <label for="companyOpenHours" class="form_label"><span><?php echo AdminText::get('PROFILE_LABEL_COMPANYOPENINGHOURES'); ?></span></label>
        <textarea type="text"
               name="companyOpeningHours"
               class="form_element"
               placeholder="<?php echo AdminText::get('PROFILE_INPUT_PLACEHOLDER_COMPANYOPENINGHOURES'); ?>"
               rows="3"><?php
            echo $profile->company_opening_hours; ?></textarea>
        <label for="companyContactPerson" class="form_label"><span><?php echo AdminText::get('PROFILE_LABEL_CONTACT_PERSON'); ?></span></label>
        <input type="text"
               name="companyContactPerson"
               class="form_element"
               placeholder="<?php echo AdminText::get('PROFILE_INPUT_PLACEHOLDER_CONTACT_PERSON'); ?>"
               value="<?php echo $profile->company_contact_person; ?>">
        <label for="companyPhone" class="form_label"><span><?php echo AdminText::get('PROFILE_LABEL_CONTACT_TEL'); ?></span></label>
        <input type="text"
               name="companyPhone"
               class="form_element"
               placeholder="<?php echo AdminText::get('PROFILE_INPUT_PLACEHOLDER_CONTACT_TEL'); ?>"
               value="<?php echo $profile->company_phone; ?>">
        <label for="companyFax" class="form_label"><span><?php echo AdminText::get('PROFILE_LABEL_CONTACT_FAX'); ?></span></label>
        <input type="text"
               name="companyFax"
               class="form_element"
               placeholder="<?php echo AdminText::get('PROFILE_INPUT_PLACEHOLDER_CONTACT_FAX'); ?>"
               value="<?php echo $profile->company_fax; ?>">
        <label for="companyEmail" class="form_label"><span><?php echo AdminText::get('PROFILE_LABEL_CONTACT_EMAIL'); ?></span></label>
        <input type="email"
               name="companyEmail"
               class="form_element"
               placeholder="<?php echo AdminText::get('PROFILE_INPUT_PLACEHOLDER_CONTACT_EMAIL'); ?>"
               value="<?php echo $profile->company_email; ?>">
        <label for="companyWebsite" class="form_label"><span><?php echo AdminText::get('PROFILE_LABEL_CONTACT_WEB'); ?></span></label>
        <input type="url"
               name="companyWebsite"
               class="form_element"
               placeholder="<?php echo AdminText::get('PROFILE_INPUT_PLACEHOLDER_CONTACT_WEB'); ?>"
               value="<?php echo $profile->company_website; ?>">
        <label for="companyAddressStreet" class="form_label"><span><?php echo AdminText::get('PROFILE_LABEL_CONTACT_ADDRESS'); ?></span></label>
        <div class="admin_twothird left">
        <input type="text"
               name="companyAddressStreet"
               class="form_element"
               placeholder="<?php echo AdminText::get('PROFILE_INPUT_PLACEHOLDER_ADDRESS_STREET'); ?>"
               value="<?php echo $profile->company_address_street; ?>">
        </div>
        <div class="admin_onethird right">
        <input type="text"
               name="companyAddressStreetNumber"
               class="form_element"
               placeholder="<?php echo AdminText::get('PROFILE_INPUT_PLACEHOLDER_ADDRESS_NUMBER'); ?>"
               value="<?php echo $profile->company_address_street_number; ?>">
        </div>
        <div class="clear"></div>
        <div class="admin_onethird left">
        <input type="text"
               name="companyAddressZipcode"
               class="form_element"
               placeholder="<?php echo AdminText::get('PROFILE_INPUT_PLACEHOLDER_ADDRESS_ZIPCODE'); ?>"
               value="<?php echo $profile->company_address_zipcode; ?>">
        </div>
        <div class="admin_twothird right">
        <input type="text"
               name="companyAddressCity"
               class="form_element"
               placeholder="<?php echo AdminText::get('PROFILE_INPUT_PLACEHOLDER_ADDRESS_TOWN'); ?>"
               value="<?php echo $profile->company_address_city; ?>">
        </div>
        <div class="clear"></div>
        <div class="admin_half left">
        <input type="text"
               name="companyAddressState"
               class="form_element"
               placeholder="<?php echo AdminText::get('PROFILE_INPUT_PLACEHOLDER_ADDRESS_STATE'); ?>"
               value="<?php echo $profile->company_address_state; ?>">
        </div>
        <div class="admin_half right">
        <input type="text"
               name="companyAddressCountry"
               class="form_element"
               placeholder="<?php echo AdminText::get('PROFILE_INPUT_PLACEHOLDER_ADDRESS_COUNTRY'); ?>"
               value="<?php echo $profile->company_address_country; ?>">
        </div>
        <!--<label for="companyAddressLat" class="form_label"><span><?php //echo AdminText::get('PROFILE_LABEL_GEOCOORDINATES'); ?></span></label>

        <div class="clear"></div>
        <div class="half left">
        <input type="text"
               name="companyAddressLat"
               class="form_element"
               placeholder="<?php //echo AdminText::get('PROFILE_INPUT_PLACEHOLDER_ADDRESS_LAT'); ?>"
               value="<?php //echo $details->company_address_lat; ?>">
        </div>
        <div class="half right">
        <input type="text"
               name="companyAddressLong"
               class="form_element"
               placeholder="<?php //echo AdminText::get('PROFILE_INPUT_PLACEHOLDER_ADDRESS_LONG'); ?>"
               value="<?php //echo $details->company_address_long; ?>">
        </div>-->
        <input type="submit" name="saveProfile" value="<?php echo AdminText::get('PROFILE_SUBMIT_VALUE'); ?>" class="form_submit">
    </form>
</div>
<div class="clear"></div>
<?php
PA::showFooter();
?>