Skip to content
Snippets Groups Projects
Commit db4ee05a authored by Alexander Purr's avatar Alexander Purr Committed by Dorian Merz
Browse files

refs #19288 [fid_bbi] digitization-on-demand form

* remove address
* add policy and terms
* add translation
* comments field to textarea
parent 5c33761b
No related merge requests found
......@@ -14,3 +14,4 @@ permission_full_access = "Zugriff auf lizenzbewehrte Literatur, Direktlieferung
label_college = "Hochschule oder andere affiliierte Institution"
acquisition_fid_name = "FID BBI"
policy_terms_text = "Für dieses Formular gelten die bereits von Ihnen bestätigte %%policy%% und %%terms%%."
\ No newline at end of file
......@@ -10,3 +10,6 @@ permission_extended_access = "Access to FID-Licences"
permission_full_access = "Access to licenced literature, patron driven aquisition & digitise-on-demand"
label_college = "Affiliation"
acquisition_fid_name = "FID BBI"
policy_terms_text = "For this form, the %%policy%% and %%terms%% that you have already confirmed apply."
......@@ -10,18 +10,6 @@ $address = $this->user->getDeliveryAddress();
<th><?= $this->translate("fid::acquisition_order_delivery_name") ?></th>
<td><?= $this->user->getFirstname() ?> <?= $this->user->getLastname() ?></td>
</tr>
<tr>
<th><?= $this->translate("fid::order_delivery_address") ?></th>
<td>
<?php if($user->deliveryAddressIsBusinessAddress() && !empty($college=$user->getCollege())): ?>
<?= $college ?><br>
<?php endif ?>
<?= $address->getLine1() ?><br>
<?= !empty($address->getLine2()) ? $address->getLine2() . '<br>' : '' ?>
<?= $address->getZip() ?> <?= $address->getCity() ?><br>
<?= $address->getCountry() ?>
</td>
</tr>
<tr>
<th><?= $this->translate("Email Address") ?></th>
<td><?= $this->user->getUsername() ?></td>
......
......@@ -47,33 +47,55 @@ $form->setAttribute('class','fid-acquisition-form');
$elemFormat->setAttributes(['class' => 'form-control']);
?>
<? /* comments */ ?>
<?php
/** @var Element\Text $elemComment */
$elemComment = $form->get('comment');
$elemComment->setLabelAttributes(['class' => 'control-label']);
$elemComment->setAttributes(['class' => 'form-control']);
?>
<div class="form-group">
<?= $this->formElementErrors($elemFormat) ?>
<?= $this->formLabel($elemFormat) ?>
<?= $this->formElement($elemFormat) ?>
</div>
<? /* comments */ ?>
<?php
/** @var Element\Textarea $elemComment */
$elemComment = $form->get('comment');
$elemComment->setLabelAttributes(['class' => 'control-label']);
$elemComment->setAttributes(['class' => 'form-control']);
?>
<div class="form-group">
<?= $this->formElementErrors($elemComment) ?>
<?= $this->formLabel($elemComment) ?>
<?= $this->formElement($elemComment) ?>
</div>
<?php // eula privacy policy ?>
<div class="form-group eula">
<div>
<?php
$policy_link = '<a data-lightbox href="'
. $this->url('fid/user/policy')
. '">'
. $this->transEsc("fid::policy")
. '</a>';
$terms_link = '<a data-lightbox href="'
. $this->url('fid/user/terms')
. '">'
. $this->transEsc("fid::terms")
. '</a>';
?>
<?=$this->translate("fid::policy_terms_text", [
'%%policy%%' => $policy_link,
'%%terms%%' => $terms_link
])?>
</div>
</div>
<? /* submit button */ ?>
<?php
/** @var Element\Submit $elemSubmit */
$elemSubmit = $form->get('submit');
$elemSubmit->setAttributes(['class' => 'btn btn-primary']);
?>
<div class="form-group right">
<div class="form-group">
<?= $this->formElement($elemSubmit) ?>
</div>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment