Exemple #1
0
 function preProcess()
 {
     parent::preProcess();
     CRM_Utils_System::setTitle(ts('Settings - Addresses'));
     // add all the checkboxes
     $this->_cbs = array('address_options' => ts('Address Fields'));
 }
 function preProcess()
 {
     $msDoc = CRM_Utils_System::docURL2('Multi Site Installation', NULL, NULL, NULL, NULL, "wiki");
     CRM_Utils_System::setTitle(ts('Multi Site Settings'));
     $this->_varNames = array(CRM_Core_BAO_Setting::MULTISITE_PREFERENCES_NAME => array('is_enabled' => array('html_type' => 'checkbox', 'title' => ts('Enable Multi Site Configuration'), 'weight' => 1, 'description' => ts('Make CiviCRM aware of multiple domains. You should configure a domain group if enabled') . ' ' . $msDoc), 'domain_group_id' => array('html_type' => 'entity_reference', 'title' => ts('Domain Group'), 'weight' => 3, 'options' => array('entity' => 'group', 'select' => array('minimumInputLength' => 0)), 'description' => ts('Contacts created on this site are added to this group'))));
     parent::preProcess();
 }
Exemple #3
0
 /**
  * Process the form submission.
  *
  *
  * @return void
  */
 public function preProcess()
 {
     $config = CRM_Core_Config::singleton();
     CRM_Utils_System::setTitle(ts('CiviContribute Component Settings'));
     $this->_varNames = array(CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME => array('invoice_prefix' => array('html_type' => 'text', 'title' => ts('Invoice Prefix'), 'weight' => 1, 'description' => ts('Enter prefix to be display on PDF for invoice')), 'credit_notes_prefix' => array('html_type' => 'text', 'title' => ts('Credit Notes Prefix'), 'weight' => 2, 'description' => ts('Enter prefix to be display on PDF for credit notes.')), 'due_date' => array('html_type' => 'text', 'title' => ts('Due Date'), 'weight' => 3), 'due_date_period' => array('html_type' => 'select', 'title' => ts('For transmission'), 'weight' => 4, 'description' => ts('Select the interval for due date.'), 'option_values' => array('select' => ts('- select -'), 'days' => ts('Days'), 'months' => ts('Months'), 'years' => ts('Years'))), 'notes' => array('html_type' => 'wysiwyg', 'title' => ts('Notes or Standard Terms'), 'weight' => 5, 'description' => ts('Enter note or message to be displayed on PDF invoice or credit notes '), 'attributes' => array('rows' => 2, 'cols' => 40)), 'is_email_pdf' => array('html_type' => 'checkbox', 'title' => ts('Automatically email invoice when user purchases online'), 'weight' => 6), 'tax_term' => array('html_type' => 'text', 'title' => ts('Tax Term'), 'weight' => 7), 'tax_display_settings' => array('html_type' => 'select', 'title' => ts('Tax Display Settings'), 'weight' => 8, 'option_values' => array('Do_not_show' => ts('Do not show breakdown, only show total -i.e ' . $config->defaultCurrencySymbol . '120.00'), 'Inclusive' => ts('Show [tax term] inclusive price - i.e. ' . $config->defaultCurrencySymbol . '120.00 (includes [tax term] of ' . $config->defaultCurrencySymbol . '20.00)'), 'Exclusive' => ts('Show [tax term] exclusive price - i.e. ' . $config->defaultCurrencySymbol . '100.00 + ' . $config->defaultCurrencySymbol . '20.00 [tax term]')))));
     parent::preProcess();
 }
Exemple #4
0
 function preProcess()
 {
     $msDoc = CRM_Utils_System::docURL2('Multi Site Installation', NULL, NULL, NULL, NULL, "wiki");
     CRM_Utils_System::setTitle(ts('Multi Site Settings'));
     $this->_varNames = array(CRM_Core_BAO_Setting::MULTISITE_PREFERENCES_NAME => array('is_enabled' => array('html_type' => 'checkbox', 'title' => ts('Enable Multi Site Configuration'), 'weight' => 1, 'description' => ts('Multi Site provides support for sharing a single CiviCRM database among multiple sites.') . ' ' . $msDoc), 'uniq_email_per_site' => array('html_type' => 'checkbox', 'title' => ts('Ensure multi sites have a unique email per site'), 'weight' => 2, 'description' => NULL), 'domain_group_id' => array('html_type' => 'text', 'title' => ts('Parent group for this domain'), 'weight' => 3, 'description' => ts('Enter the group ID (civicrm_group.id).')), 'event_price_set_domain_id' => array('html_type' => 'text', 'title' => ts('Domain for event price sets'), 'weight' => 4, 'description' => NULL)));
     parent::preProcess();
 }
Exemple #5
0
 function preProcess()
 {
     parent::preProcess();
     CRM_Utils_System::setTitle(ts('Settings - Site Preferences'));
     // add all the checkboxes
     $this->_cbs = array('contact_view_options' => ts('Viewing Contacts'), 'contact_edit_options' => ts('Editing Contacts'), 'advanced_search_options' => ts('Contact Search'), 'user_dashboard_options' => ts('Contact Dashboard'));
 }
Exemple #6
0
 public function preProcess()
 {
     CRM_Utils_System::setTitle(ts('Settings - Addresses'));
     // Address Standardization
     $addrProviders = array('' => '- select -') + CRM_Core_SelectValues::addressProvider();
     $this->_varNames = array(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME => array('address_options' => array('html_type' => 'checkboxes', 'title' => ts('Address Fields'), 'weight' => 1), 'address_format' => array('html_type' => 'textarea', 'title' => ts('Display Format'), 'description' => NULL, 'weight' => 2), 'mailing_format' => array('html_type' => 'textarea', 'title' => ts('Mailing Label Format'), 'description' => NULL, 'weight' => 3)), CRM_Core_BAO_Setting::ADDRESS_STANDARDIZATION_PREFERENCES_NAME => array('address_standardization_provider' => array('html_type' => 'select', 'title' => ts('Provider'), 'option_values' => $addrProviders, 'weight' => 4), 'address_standardization_userid' => array('html_type' => 'text', 'title' => ts('User ID'), 'description' => NULL, 'weight' => 5), 'address_standardization_url' => array('html_type' => 'text', 'title' => ts('Web Service URL'), 'description' => NULL, 'weight' => 6)));
     parent::preProcess();
 }
Exemple #7
0
 function preProcess()
 {
     CRM_Utils_System::setTitle(ts('CiviEvent Component Settings'));
     // pass "wiki" as 6th param to docURL2 if you are linking to a page in wiki.civicrm.org
     $docLink = CRM_Utils_System::docURL2("CiviEvent Cart Checkout", NULL, NULL, NULL, NULL, "wiki");
     $this->_varNames = array(CRM_Core_BAO_Setting::EVENT_PREFERENCES_NAME => array('enable_cart' => array('html_type' => 'checkbox', 'title' => ts('Use Shopping Cart Style Event Registration'), 'weight' => 1, 'description' => ts('This feature allows users to register for more than one event at a time. When enabled, users will add event(s) to a "cart" and then pay for them all at once. Enabling this setting will affect online registration for all active events. The code is an alpha state, and you will potentially need to have developer resources to debug and fix sections of the codebase while testing and deploying it. %1', array(1 => $docLink)))));
     parent::preProcess();
 }
 function preProcess()
 {
     CRM_Utils_System::setTitle(ts('Settings - Display Preferences'));
     if (defined('CIVICRM_ACTIVITY_ASSIGNEE_MAIL') && CIVICRM_ACTIVITY_ASSIGNEE_MAIL) {
         CRM_Core_Session::setStatus(ts('Your civicrm.settings.php file contains CIVICRM_ACTIVITY_ASSIGNEE_MAIL but this constant is no longer used. Please remove this from your config file and set your "Notify Activity Assignees" preference below.'));
     }
     $this->_varNames = array(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME => array('contact_view_options' => array('html_type' => 'checkboxes', 'title' => ts('Viewing Contacts'), 'weight' => 1), 'contact_edit_options' => array('html_type' => 'checkboxes', 'title' => ts('Editing Contacts'), 'weight' => 2), 'advanced_search_options' => array('html_type' => 'checkboxes', 'title' => ts('Contact Search'), 'weight' => 3), 'activity_assignee_notification' => array('html_type' => 'checkbox', 'title' => ts('Notify Activity Assignees'), 'weight' => 5), 'contact_ajax_check_similar' => array('html_type' => 'checkbox', 'title' => ts('Check for Similar Contacts'), 'weight' => 5), 'user_dashboard_options' => array('html_type' => 'checkboxes', 'title' => ts('Contact Dashboard'), 'weight' => 6), 'display_name_format' => array('html_type' => 'textarea', 'title' => ts('Individual Display Name Format'), 'weight' => 7), 'sort_name_format' => array('html_type' => 'textarea', 'title' => ts('Individual Sort Name Format'), 'weight' => 8), 'editor_id' => array('html_type' => NULL, 'weight' => 9)));
     parent::preProcess();
 }
Exemple #9
0
 public function preProcess()
 {
     CRM_Utils_System::setTitle(ts('CiviEvent Component Settings'));
     // pass "wiki" as 6th param to docURL2 if you are linking to a page in wiki.civicrm.org
     $docLink = CRM_Utils_System::docURL2("CiviEvent Cart Checkout", NULL, NULL, NULL, NULL, "wiki");
     // build an array containing all selectable option values for show_events
     $optionValues = array();
     for ($i = 10; $i <= 100; $i += 10) {
         $optionValues[$i] = $i;
     }
     $this->_varNames = array(CRM_Core_BAO_Setting::EVENT_PREFERENCES_NAME => array('enable_cart' => array('html_type' => 'checkbox', 'title' => ts('Use Shopping Cart Style Event Registration'), 'weight' => 1, 'description' => ts('This feature allows users to register for more than one event at a time. When enabled, users will add event(s) to a "cart" and then pay for them all at once. Enabling this setting will affect online registration for all active events. The code is an alpha state, and you will potentially need to have developer resources to debug and fix sections of the codebase while testing and deploying it. %1', array(1 => $docLink))), 'show_events' => array('html_type' => 'select', 'title' => ts('Dashboard entries'), 'weight' => 2, 'description' => ts('Configure how many events should be shown on the dashboard. This overrides the default value of 10 entries.'), 'option_values' => array('' => ts('- select -')) + $optionValues + array(-1 => ts('show all')))));
     parent::preProcess();
 }
Exemple #10
0
 public function preProcess()
 {
     CRM_Utils_System::setTitle(ts('Settings - Display Preferences'));
     $this->_varNames = array(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME => array('contact_view_options' => array('html_type' => 'checkboxes', 'title' => ts('Viewing Contacts'), 'weight' => 1), 'contact_smart_group_display' => array('html_type' => 'radio', 'title' => ts('Viewing Smart Groups'), 'weight' => 2), 'contact_edit_options' => array('html_type' => 'checkboxes', 'title' => ts('Editing Contacts'), 'weight' => 3), 'advanced_search_options' => array('html_type' => 'checkboxes', 'title' => ts('Contact Search'), 'weight' => 4), 'activity_assignee_notification' => array('html_type' => 'checkbox', 'title' => ts('Notify Activity Assignees'), 'weight' => 5), 'activity_assignee_notification_ics' => array('html_type' => 'checkbox', 'title' => ts('Include ICal Invite to Activity Assignees'), 'weight' => 6), 'contact_ajax_check_similar' => array('html_type' => 'checkbox', 'title' => ts('Check for Similar Contacts'), 'weight' => 7), 'user_dashboard_options' => array('html_type' => 'checkboxes', 'title' => ts('Contact Dashboard'), 'weight' => 8), 'display_name_format' => array('html_type' => 'textarea', 'title' => ts('Individual Display Name Format'), 'weight' => 9), 'sort_name_format' => array('html_type' => 'textarea', 'title' => ts('Individual Sort Name Format'), 'weight' => 10), 'editor_id' => array('html_type' => NULL, 'weight' => 11), 'ajaxPopupsEnabled' => array('html_type' => 'checkbox', 'title' => ts('Enable Popup Forms'), 'weight' => 12)));
     parent::preProcess();
 }
 function preProcess()
 {
     CRM_Utils_System::setTitle(ts('CiviCampaign Component Settings'));
     $this->_varNames = array(CRM_Core_BAO_Setting::CAMPAIGN_PREFERENCES_NAME => array('tag_unconfirmed' => array('html_type' => 'text', 'title' => ts('Tag for Unconfirmed Petition Signers'), 'weight' => 1, 'description' => ts('If set, new contacts that are created when signing a petition are assigned a tag of this name.')), 'petition_contacts' => array('html_type' => 'text', 'title' => ts('Petition Signers Group'), 'weight' => 2, 'description' => ts('All contacts that have signed a CiviCampaign petition will be added to this group. The group will be created if it does not exist (it is required for email verification).'))));
     parent::preProcess();
 }
Exemple #12
0
 public function preProcess()
 {
     CRM_Utils_System::setTitle(ts('CiviMember Component Settings'));
     $this->_varNames = array(CRM_Core_BAO_Setting::MEMBER_PREFERENCES_NAME => array('default_renewal_contribution_page' => array('html_type' => 'select', 'title' => ts('Default online membership renewal page'), 'option_values' => array('' => ts('- select -')) + CRM_Contribute_PseudoConstant::contributionPage(), 'weight' => 1, 'description' => ts('If you select a default online contribution page for self-service membership renewals, a "renew" link pointing to that page will be displayed on the Contact Dashboard for memberships which were entered offline. You will need to ensure that the membership block for the selected online contribution page includes any currently available memberships.'))));
     parent::preProcess();
 }
 function preProcess()
 {
     CRM_Utils_System::setTitle(ts('CiviMail Component Settings'));
     $this->_varNames = array(CRM_Core_BAO_Setting::MAILING_PREFERENCES_NAME => array('profile_double_optin' => array('html_type' => 'checkbox', 'title' => ts('Enable Double Opt-in for Profile Group(s) field'), 'weight' => 1, 'description' => ts('When CiviMail is enabled, users who "subscribe" to a group from a profile Group(s) checkbox will receive a confirmation email. They must respond (opt-in) before they are added to the group.')), 'profile_add_to_group_double_optin' => array('html_type' => 'checkbox', 'title' => ts('Enable Double Opt-in for Profiles which use the "Add to Group" setting'), 'weight' => 2, 'description' => ts('When CiviMail is enabled and a profile uses the "Add to Group" setting, users who complete the profile form will receive a confirmation email. They must respond (opt-in) before they are added to the group.')), 'track_civimail_replies' => array('html_type' => 'checkbox', 'title' => ts('Track replies using VERP in Reply-To header'), 'weight' => 3, 'description' => ts('If checked, mailings will default to tracking replies using VERP-ed Reply-To.')), 'civimail_workflow' => array('html_type' => 'checkbox', 'title' => ts('Enable workflow support for CiviMail'), 'weight' => 4, 'description' => ts('Drupal-only. Rules module must be enabled (beta feature - use with caution).')), 'civimail_multiple_bulk_emails' => array('html_type' => 'checkbox', 'title' => ts('Enable multiple bulk email address for a contact.'), 'weight' => 5, 'description' => ts('CiviMail will deliver a copy of the email to each bulk email listed for the contact.')), 'civimail_server_wide_lock' => array('html_type' => 'checkbox', 'title' => ts('Enable global server wide lock for CiviMail'), 'weight' => 6, 'description' => NULL), 'include_message_id' => array('html_type' => 'checkbox', 'title' => ts('Enable CiviMail to generate Message-ID header'), 'weight' => 7, 'description' => NULL)));
     parent::preProcess();
 }
Exemple #14
0
 public function preProcess()
 {
     CRM_Utils_System::setTitle(ts('CiviMail Component Settings'));
     $this->_varNames = array(CRM_Core_BAO_Setting::MAILING_PREFERENCES_NAME => array('profile_double_optin' => array('html_type' => 'checkbox', 'title' => ts('Enable Double Opt-in for Profile Group(s) field'), 'weight' => 1, 'description' => ts('When CiviMail is enabled, users who "subscribe" to a group from a profile Group(s) checkbox will receive a confirmation email. They must respond (opt-in) before they are added to the group.')), 'profile_add_to_group_double_optin' => array('html_type' => 'checkbox', 'title' => ts('Enable Double Opt-in for Profiles which use the "Add to Group" setting'), 'weight' => 2, 'description' => ts('When CiviMail is enabled and a profile uses the "Add to Group" setting, users who complete the profile form will receive a confirmation email. They must respond (opt-in) before they are added to the group.')), 'track_civimail_replies' => array('html_type' => 'checkbox', 'title' => ts('Track replies using VERP in Reply-To header'), 'weight' => 3, 'description' => ts('If checked, mailings will default to tracking replies using VERP-ed Reply-To.')), 'civimail_workflow' => array('html_type' => 'checkbox', 'title' => ts('Enable workflow support for CiviMail'), 'weight' => 4, 'description' => ts('Drupal-only. Rules module must be enabled (beta feature - use with caution).')), 'civimail_multiple_bulk_emails' => array('html_type' => 'checkbox', 'title' => ts('Enable multiple bulk email address for a contact.'), 'weight' => 5, 'description' => ts('CiviMail will deliver a copy of the email to each bulk email listed for the contact.')), 'civimail_server_wide_lock' => array('html_type' => 'checkbox', 'title' => ts('Enable global server wide lock for CiviMail'), 'weight' => 6, 'description' => NULL), 'include_message_id' => array('html_type' => 'checkbox', 'title' => ts('Enable CiviMail to generate Message-ID header'), 'weight' => 7, 'description' => NULL), 'write_activity_record' => array('html_type' => 'checkbox', 'title' => ts('Enable CiviMail to create activities on delivery'), 'weight' => 8, 'description' => NULL), 'disable_mandatory_tokens_check' => array('html_type' => 'checkbox', 'title' => ts('Disable check for mandatory tokens'), 'weight' => 9, 'description' => ts('Don\'t check for presence of mandatory tokens (domain address; unsubscribe/opt-out) before sending mailings. WARNING: Mandatory tokens are a safe-guard which facilitate compliance with the US CAN-SPAM Act. They should only be disabled if your organization adopts other mechanisms for compliance or if your organization is not subject to CAN-SPAM.')), 'dedupe_email_default' => array('html_type' => 'checkbox', 'title' => ts('CiviMail dedupes e-mail addresses by default'), 'weight' => 10, 'description' => NULL), 'hash_mailing_url' => array('html_type' => 'checkbox', 'title' => ts('Hashed Mailing URL\'s'), 'weight' => 11, 'description' => 'If enabled, a randomized hash key will be used to reference the mailing URL in the mailing.viewUrl token, instead of the mailing ID')));
     parent::preProcess();
 }