Commit | Line | Data |
---|---|---|
cfb48750 TO |
1 | <?php if (!defined('CIVI_SETUP')): exit("Installation plugins must only be loaded by the installer.\n"); |
2 | endif; ?> | |
4bcd4c62 TO |
3 | <h2><?php echo ts('Sample Data'); ?></h2> |
4 | ||
5 | <p> | |
6 | <label for="loadGenerated"><span>Load sample data:</span><input id="loadGenerated" type="checkbox" name="civisetup[loadGenerated]" value=1 <?php echo $model->loadGenerated ? "checked='checked'" : ""; ?> /></label> <br /> | |
7 | <span class="advancedTip"><?php echo ts("Check this box to pre-populate CiviCRM with sample English contact records, online contribution pages, profile forms, etc. These examples can help you learn about CiviCRM features."); ?></span><br /> | |
8 | </p> | |
9 | ||
10 | <script type="text/javascript"> | |
11 | csj$(function(){ | |
12 | function hideLang() { | |
13 | if (csj$('[name=lang]').val() == 'en_US') { | |
14 | csj$('#loadGenerated').prop('disabled', false); | |
15 | } | |
16 | else { | |
17 | csj$('#loadGenerated').prop('disabled', true).prop('checked', false); | |
18 | } | |
19 | setTimeout(hideLang, 100); | |
20 | } | |
21 | setTimeout(hideLang, 100); | |
22 | }); | |
23 | </script> |