diff --git a/app/resources/locales/en_US/field.po b/app/resources/locales/en_US/field.po index 5afbfafcb..ee3fa25f9 100644 --- a/app/resources/locales/en_US/field.po +++ b/app/resources/locales/en_US/field.po @@ -1006,7 +1006,7 @@ msgid "TermsAndConditions.mostly_static_page_id" msgstr "T&C via Mostly Static Page" msgid "TermsAndConditions.mostly_static_page_id.desc" -msgstr "Content of Terms and Conditions, as defined in a Mostly Static Page (this or URL must be specified)" +msgstr "Content of Terms and Conditions, as defined in a Mostly Static Page
(this or URL must be specified)" msgid "TermsAndConditions.cou_id.desc" msgstr "If set, these Terms and Conditions only apply to People with a Person Role in the specified COU" @@ -1015,7 +1015,7 @@ msgid "TermsAndConditions.url" msgstr "T&C via URL" msgid "TermsAndConditions.url.desc" -msgstr "URL to web page holding Terms and Conditions (this or Mostly Static Page must be specified)" +msgstr "URL to web page holding Terms and Conditions
(this or Mostly Static Page must be specified)" msgid "Types.case_insensitive" msgstr "Case Insensitive" diff --git a/app/resources/locales/en_US/operation.po b/app/resources/locales/en_US/operation.po index 810994840..e3e654228 100644 --- a/app/resources/locales/en_US/operation.po +++ b/app/resources/locales/en_US/operation.po @@ -258,6 +258,9 @@ msgstr "Login" msgid "logout" msgstr "Logout" +msgid "manage.a" +msgstr "Manage {0}" + msgid "next" msgstr "Next" diff --git a/app/templates/TermsAndConditions/fields.inc b/app/templates/TermsAndConditions/fields.inc index aa667a564..cbadbd763 100644 --- a/app/templates/TermsAndConditions/fields.inc +++ b/app/templates/TermsAndConditions/fields.inc @@ -28,8 +28,21 @@ $fields = [ 'description', 'status', + 'mostly_static_page_id' => [ + 'afterField' => + $this->Html->link( + __d('operation','manage.a',[__d('controller','MostlyStaticPages', 99)]), + [ + 'controller' => 'MostlyStaticPages', + 'action' => 'index', + '?' => [ + 'co_id' => $vv_cur_co->id + ] + ], + ['class' => 'manage-link'] + ) + ], 'url', - 'mostly_static_page_id', 'cou_id', 'agreement_duration', 'agree_to_updates', diff --git a/app/webroot/css/co-base.css b/app/webroot/css/co-base.css index 157880f2d..686b69cce 100644 --- a/app/webroot/css/co-base.css +++ b/app/webroot/css/co-base.css @@ -1639,6 +1639,12 @@ ul.form-list select { ul.form-list .not-set { padding: 4px 6px; } +ul.form-list .manage-link { + display: inline-block; + margin: 0.5em 0; + font-size: 0.9em; + font-style: italic; +} .form-select:disabled { background-color: var(--cmg-color-bg-009); } diff --git a/app/webroot/css/co-responsive.css b/app/webroot/css/co-responsive.css index dcff0b7d4..0d06aa9c4 100644 --- a/app/webroot/css/co-responsive.css +++ b/app/webroot/css/co-responsive.css @@ -599,6 +599,11 @@ #changelog .accordion-body { overflow-x: unset; } + /* SPECIAL */ + .fields-mostly_static_page_id .field-info { + display: flex; + gap: 1em; + } /* FOOTER */ #co-footer { position: static;