<!-- fid_adlr: fid - user - office-address-fieldset --> <?php /** * Copyright (C) 2019 Leipzig University Library * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * @author Sebastian Kehr <kehr@ub.uni-leipzig.de> * @license http://opensource.org/licenses/gpl-2.0.php GNU GPLv2 */ use fid\Service\DataTransferObject\Address; use Zend\Form\Fieldset; use Zend\Form\Element; /** @var Fieldset $address */ $address = $this->address; ?> <hr/> <h3><?= $this->translate('fid::' . $address->getLabel()) ?></h3> <?php /* id */ ?> <?= $this->formElement($address->get('id')) ?> <?php /* third line */ ?> <?php /** @var Element\Text $college */ $college = $this->form->get('college'); $college->setLabelAttributes(['class' => 'col-md-4']); $college->setAttributes(['class' => 'form-control']); ?> <div class="form-group"> <?= $this->formLabel($college) ?> <?= $this->formElement($college) ?> <?= $this->formElementErrors($college) ?> </div> <?php /* second line (here firstly) */ ?> <?php /** @var Element\Text $elemLine2 */ $elemLine2 = $address->get('line2'); $elemLine2->setLabelAttributes(['class' => 'col-md-4']); $elemLine2->setAttributes(['class' => 'form-control']); ?> <div class="form-group"> <?= $this->formLabel($elemLine2) ?> <?= $this->formElement($elemLine2) ?> <?= $this->formElementErrors($elemLine2) ?> </div> <?php /* first line (here secondly) */ ?> <?php /** @var Element\Text $elemLine1 */ $elemLine1 = $address->get('line1'); $elemLine1->setLabelAttributes(['class' => 'col-md-4']); $elemLine1->setAttributes(['class' => 'form-control']); ?> <div class="form-group"> <?= $this->formLabel($elemLine1) ?> <?= $this->formElement($elemLine1) ?> <?= $this->formElementErrors($elemLine1) ?> </div> <?php /* address zip */ ?> <?php /** @var Element\Text $elemZip */ $elemZip = $address->get('zip'); $elemZip->setLabelAttributes(['class' => 'col-md-4']); $elemZip->setAttributes(['class' => 'form-control']); ?> <div class="form-group"> <?= $this->formLabel($elemZip) ?> <?= $this->formElement($elemZip) ?> <?= $this->formElementErrors($elemZip) ?> </div> <?php /* city */ ?> <?php /** @var Element\Text $elemCity */ $elemCity = $address->get('city'); $elemCity->setLabelAttributes(['class' => 'col-md-4']); $elemCity->setAttributes(['class' => 'form-control']); ?> <div class="form-group"> <?= $this->formLabel($elemCity) ?> <?= $this->formElement($elemCity) ?> <?= $this->formElementErrors($elemCity) ?> </div> <?php /* country */ ?> <?php /** @var Element\Text $elemCountry */ $elemCountry = $address->get('country'); $elemCountry->setLabelAttributes(['class' => 'col-md-4']); $elemCountry->setAttributes(['class' => 'form-control']); ?> <div class="form-group"> <?= $this->formLabel($elemCountry) ?> <?= $this->formElement($elemCountry) ?> <?= $this->formElementErrors($elemCountry) ?> </div> <hr/> <!-- fid_adlr: fid - user - office-address-fieldset - END -->