diff --git a/app/plugins/TermsAgreer/resources/locales/en_US/terms_agreer.po b/app/plugins/TermsAgreer/resources/locales/en_US/terms_agreer.po index b2c8b8cda..35da383df 100644 --- a/app/plugins/TermsAgreer/resources/locales/en_US/terms_agreer.po +++ b/app/plugins/TermsAgreer/resources/locales/en_US/terms_agreer.po @@ -43,15 +43,6 @@ msgstr "Did not receive agreement for \"{0}\" (T&C {1})" msgid "field.AgreementCollectors.t_and_c_mode" msgstr "Terms and Conditions Mode" -msgid "information.AgreementCollectors.external" -msgstr "These Terms and Conditions will be loaded in an external browser window. After review, you must return to this window and click \"Agree\" to continue." - -msgid "information.AgreementCollectors.review" -msgstr "You must review and agree to these Terms and Conditions before continuing." - -msgid "information.AgreementCollectors.review.tc" -msgstr "Review Terms & Conditions" - msgid "result.AgreementCollectors.ignored" msgstr "Terms and Conditions collection disabled" diff --git a/app/plugins/TermsAgreer/templates/AgreementCollectors/dispatch.inc b/app/plugins/TermsAgreer/templates/AgreementCollectors/dispatch.inc index 159fe00ee..594b74e61 100644 --- a/app/plugins/TermsAgreer/templates/AgreementCollectors/dispatch.inc +++ b/app/plugins/TermsAgreer/templates/AgreementCollectors/dispatch.inc @@ -1,6 +1,7 @@ element('flash', []); - -// Make the Form fields editable -$this->Field->enableFormEditMode(); -?> - -
= __d('terms_agreer', 'information.AgreementCollectors.review') ?>
- -Form->create(null, [ - 'id' => 'agreement-form', - 'type' => 'post' -]); - - -?> - -| = __d('controller','TermsAndConditions',[99]) ?> | -= __d('operation','review') ?> | -= __d('operation','agreement') ?> | -
|---|---|---|
| - = $tc['description'] ?> - | -- - url)): // We have a URL based T&C ?> - - - = $this->element('TermsAgreer.agreeDialog', ['vv_tc' => $tc]); ?> - - | -
-
- =
- $this->Form->checkbox(
- 'tc'.$tc['id'],
- ['id' => 'tc'.$tc['id'], 'class' => 'form-check-input tc-agree-checkbox']
- ) .
- $this->Form->label(
- 'tc'.$tc['id'],
- __d('operation','agree'),
- ['class' => 'form-check-label']
- )
- ?>
-
- |
-
| = __d('controller', 'TermsAndConditions', [1]); ?> | -= __d('field', 'status'); ?> | -= __d('field', 'changelog.actor_identifier'); ?> | -= __d('field', 'timestamp.tz', [$vv_tz->getName()]); ?> | -
|---|---|---|---|
|
-
-
- = $t['tandc']->description; ?>
-
-
- id;
- $action_args['vv_actions'] = [];
-
- if($t['status'] != TAndCStatusEnum::Agreed) {
- // T&C that are not current can be agreed to
-
- $action_args['vv_actions'][] = [
- 'order' => $this->Menu->getMenuOrder('Default'),
- 'icon' => 'signature',
- 'url' => [
- 'controller' => 'terms_and_conditions',
- 'action' => 'agree',
- $t['tandc']->id
- ],
- 'label' => __d('operation', 'agree'),
- 'confirm' => [
- 'dg_body_txt' => __d('operation', 'TermsAndConditions.agree.confirm'),
- 'dg_confirm_btn' => __d('operation', 'confirm')
- ]
- ];
- }
+
+
- if(!empty($action_args['vv_actions'])) {
- print $this->element('menuAction', $action_args);
- }
- ?>
- |
- = __d('enumeration', 'TAndCStatusEnum.'.$t['status']); ?> | -= $t['agreement']->identifier ?? "" ?> | -= - !empty($t['agreement']->created) - ? $this->Time->nice($t['agreement']->created, $vv_tz) - : ""; - ?> | -
= __d('information', 'tandc.review') ?>
+ +Form->create(null, [ + 'id' => 'agreement-form', + 'type' => 'post' + ]); + + +?> + +| = __d('controller','TermsAndConditions',[99]) ?> | + += __d('field', 'status'); ?> | += __d('field', 'changelog.actor_identifier'); ?> | += __d('field', 'timestamp.tz', [$vv_tz->getName()]); ?> | + += __d('operation','review') ?> | += __d('operation','agreement') ?> | +
|---|---|---|---|---|---|
| + = $tc['description'] ?> + | + += __d('enumeration', 'TAndCStatusEnum.'.$vv_tandc_statuses[$i]['status']); ?> | += $vv_tandc_statuses[$i]['agreement']->identifier ?? "" ?> | += + !empty($vv_tandc_statuses[$i]['agreement']->created) + ? $this->Time->nice($vv_tandc_statuses[$i]['agreement']->created, $vv_tz) + : ""; + ?> | + ++ + url)): // We have a URL based T&C ?> + + + = $this->element('tandcAgreeDialog', ['vv_tc' => $tc]); ?> + + | +
+
+ =
+ $this->Form->checkbox(
+ 'tc'.$tc['id'],
+ [
+ 'id' => 'tc'.$tc['id'],
+ 'class' => 'form-check-input tc-agree-checkbox',
+ 'checked' => !empty($vv_tandc_statuses) && $vv_tandc_statuses[$i]['status'] == 'Y' ? true : false,
+ ]
+ ) .
+ $this->Form->label(
+ 'tc'.$tc['id'],
+ __d('operation','agree'),
+ [
+ 'class' => 'form-check-label'
+ ]
+ )
+ ?>
+
+ |
+