protected function getInput()
 {
     $field = new nnFieldColorPicker();
     return $field->getInput($this->name, $this->id, $this->value, $this->element->attributes());
 }
Exemple #2
0
								<?php 
    echo JHtml::_('grid.id', $i, $item->id);
    ?>
							</td>
							<td class="center">
								<?php 
    echo JHtml::_('modules.state', $item->published, $i, $canChange, 'cb');
    ?>
							</td>
							<?php 
    if ($showcolors) {
        ?>
								<td class="center">
									<?php 
        $color = isset($item->params->color) && $item->params->color ? $color = $item->params->color : '';
        $colorpicker = new nnFieldColorPicker();
        $action = 'setColor(\'cb' . $i . '\', this)';
        echo $colorpicker->getInput('color', 'cb' . $i, $color, array('inlist' => 1, 'action' => $action));
        ?>
								</td>
							<?php 
    }
    ?>
							<td class="has-context">
								<div class="pull-left">
									<?php 
    if ($item->checked_out) {
        ?>
										<?php 
        echo JHtml::_('jgrid.checkedout', $i, $item->editor, $item->checked_out_time, 'modules.', $canCheckin);
        ?>