(dev/core#1615) Import civicrm-setup code
[civicrm-core.git] / setup / plugins / blocks / sample-data.tpl.php
1 <?php if (!defined('CIVI_SETUP')): exit("Installation plugins must only be loaded by the installer.\n"); endif; ?>
2 <h2><?php echo ts('Sample Data'); ?></h2>
3
4 <p>
5 <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 />
6 <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 />
7 </p>
8
9 <script type="text/javascript">
10 csj$(function(){
11 function hideLang() {
12 if (csj$('[name=lang]').val() == 'en_US') {
13 csj$('#loadGenerated').prop('disabled', false);
14 }
15 else {
16 csj$('#loadGenerated').prop('disabled', true).prop('checked', false);
17 }
18 setTimeout(hideLang, 100);
19 }
20 setTimeout(hideLang, 100);
21 });
22 </script>