Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MMB-302: Add help text to certificate download type field #85

Merged
merged 1 commit into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CRM/Certificate/Form/CertificateConfigure.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public function buildQuickForm() {
],
]);

$elementWithHelpTexts = ['relationship_types', 'min_valid_from_date', 'max_valid_through_date'];
$elementWithHelpTexts = ['relationship_types', 'min_valid_from_date', 'max_valid_through_date', 'download_type'];

$this->assign('help', $elementWithHelpTexts);
$this->assign('elementNames', $this->getRenderableElementNames());
Expand Down
46 changes: 25 additions & 21 deletions templates/CRM/Certificate/Form/CertificateConfigure.hlp
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{htxt id="relationship_types-title"}
{ts}Download Related Contact Certificates{/ts}
{/htxt}
{htxt id="relationship_types"}
<p>{ts}Contacts who have a CMS user account can download their own CiviCRM certificates, normally from the CiviCRM self service "dashboard", but also from a download certificate.With this setting you can specify contacts who can also download certificates for related contacts based on holding specific relationship types. This might be useful where, for example, a user should be able to download certificates for an organisation record for which they are the main billing contact, or for a partner or spouse. Where no relationship is selected, users will not be able to download certificates from related contacts.{/ts}</p>
<p>{ts}<b>Note:</b> This setting has security implications.
<br/>System should allow the contacts having this permission to access and download the certificates.{/ts}</p>
{/htxt}
{htxt id="relationship_types-title"}
{ts}Download Related Contact Certificates{/ts}
{/htxt}
{htxt id="relationship_types"}
<p>{ts}Contacts who have a CMS user account can download their own CiviCRM certificates, normally from the CiviCRM self service "dashboard", but also from a download certificate.With this setting you can specify contacts who can also download certificates for related contacts based on holding specific relationship types. This might be useful where, for example, a user should be able to download certificates for an organisation record for which they are the main billing contact, or for a partner or spouse. Where no relationship is selected, users will not be able to download certificates from related contacts.{/ts}</p>
<p>{ts}<b>Note:</b> This setting has security implications.
<br/>System should allow the contacts having this permission to access and download the certificates.{/ts}</p>
{/htxt}

{htxt id="min_valid_from_date-title"}
{ts}Min Valid From Date{/ts}
{/htxt}
{htxt id="min_valid_from_date"}
{htxt id="min_valid_from_date-title"}
{ts}Min Valid From Date{/ts}
{/htxt}
{htxt id="min_valid_from_date"}
<p>{ts}The Min and Max Valid Date fields do 2 things: {/ts}</p>
<ol>
<li>
<li>
<p>{ts}<b>Tokens:</b> They will create tokens that can be used on certificates as follows:{/ts}</p>
<ul>
<li>
Expand All @@ -29,16 +29,16 @@
<li>
<p>{ts}<b>Access:</b> It will also only allow users to download the certificate if their membership is valid during the validity period of the certificate. For example if a membership ends on or after the start date or a membership starts before the end date.{/ts}</p>
</li>
<ol>
{/htxt}
<ol>
{/htxt}

{htxt id="max_valid_through_date-title"}
{ts}Max Valid Through Date{/ts}
{/htxt}
{htxt id="max_valid_through_date"}
{htxt id="max_valid_through_date-title"}
{ts}Max Valid Through Date{/ts}
{/htxt}
{htxt id="max_valid_through_date"}
<p>{ts}The Min and Max Valid Date fields do 2 things: {/ts}</p>
<ol>
<li>
<li>
<p>{ts}<b>Tokens:</b> They will create tokens that can be used on certificates as follows:{/ts}</p>
<ul>
<li>
Expand All @@ -54,5 +54,9 @@
<li>
<p>{ts}<b>Access:</b> It will also only allow users to download the certificate if their membership is valid during the validity period of the certificate. For example if a membership ends on or after the start date or a membership starts before the end date.{/ts}</p>
</li>
<ol>
<ol>
{/htxt}

{htxt id="download_type"}
{ts}Specify whether the certificate should be generated dynamically from a CiviCRM message template or be granted access to a downloadable file.{/ts}
{/htxt}
Loading