1 <?php
if (!defined('CIVI_SETUP')): exit("Installation plugins must only be loaded by the installer.\n");
3 <h2 id
="components"><?php
echo ts('Components'); ?
></h2
>
5 <p
class="comp-error-required"><?php
echo ts('At least one component must be enabled.'); ?
></p
>
8 <?php
foreach ($model->getField('components', 'options') as $comp => $label): ?
>
9 <input
class="comp-cb sr-only" style
="display: none;" type
="checkbox" name
="civisetup[components][<?php echo $comp; ?>]" id
="civisetup[components][<?php echo $comp; ?>]" <?php
echo in_array($comp, $model->components
) ?
'checked' : '' ?
>>
10 <label
class="comp-box" for="civisetup[components][<?php echo $comp; ?>]">
11 <span
class="comp-label"><?php
echo $label; ?
></span
>
12 <span
class="comp-desc"><?php
echo $_tpl_block['component_labels'][$comp] ?
></span
>
18 <strong
><?php
echo ts('Tip'); ?
></strong
>:
19 <?php
echo ts('Not sure? That\'s OK. After installing, you can enable and disable components at any time.'); ?
>
22 <script type
="text/javascript">
24 $
('.comp-cb').useValidator(function(){
25 $
('.comp-error-required').toggleError($
('.comp-cb:checked').length
== 0);