<?php
/**
 * Copyright (c) 2017 Serhii Borodai <clarifying@gmail.com>.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 *  all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 *
 */

/** @var $this \Zend\View\Renderer\PhpRenderer */
$this->headScript()
    ->appendFile('/js/script-set-prof.js')
;

$this->headLink()
    ->appendStylesheet('/css/styles-set-prof.css')
;


/** @var \App\Entity\Contacts $contacts */
$contacts = $this->contacts;

?>
<section class="b-content__form">
    <div class="wrapp">
        <form action="<?= $this->url('adm.contacts', [
            'lang' => $this->lang,
        ])?>" method="post" class="b-content__form-set" name="setting">
            <div class="row">
                <label for="phones" class="col sm-2 b-content__form-set-item-label">
                    <p class="text"><?= _t("Телефоны") ?> </p>
                </label>
                <textarea class="col"
                              id="phones"
                              name="phones"
                              rows="6"><?= implode(PHP_EOL, $contacts->getPhones()) ?></textarea>
            </div>
            <div class="row">
                <label for="mails" class="col sm-2 b-content__form-set-item-label">
                    <p class="text"><?= _t("Почта") ?> </p>
                </label>
                <textarea class="col"
                          id="mails"
                          name="mails"
                          rows="3"><?= implode(PHP_EOL, $contacts->getMails()) ?></textarea>
            </div>
            <div class="row">
                <label for="skypes" class="col sm-2 b-content__form-set-item-label">
                    <p class="text"><?= _t("Skype") ?> </p>
                </label>
                <textarea class="col"
                          id="skypes"
                          name="skypes"
                          rows="3"><?= implode(PHP_EOL, $contacts->getSkypes()) ?></textarea>
            </div>
            <div class="row">
                <input class="col" type="submit" name="submit" value="<?= _t('Сохранить') ?>">
            </div>
        </form>
    </div>
</section>

</main>

