Esempio n. 1
0
 public function getFieldSite($entity)
 {
     $conditions = array('_id' => $entity->fieldsite_id);
     return FieldSites::first(compact('conditions'));
 }
Esempio n. 2
0
<?php

$this->title("AFDC Leagues");
$subtitle = 'Manage League';
$breadcrumbs = array('Leagues' => 'Leagues::index', $league->name => array('Leagues::view', 'id' => $league->_id), 'Add League Games' => '');
use app\models\FieldSites;
$fieldSites = FieldSites::find('list', array('conditions' => array('active' => true)));
asort($fieldSites);
?>

<?php 
echo $this->_render('element', 'PageHeader', compact('subtitle', 'breadcrumbs'));
?>

<?php 
echo $this->_render('element', 'menus/leagueManager', compact('subtitle', 'breadcrumbs'));
?>

<div class="row">
    <!-- Form -->
    <div class="span5">
        <?php 
echo $this->form->create(null, array('class' => 'form-horizontal', 'id' => 'createForm'));
?>
        <?php 
echo $this->security->requestToken();
?>
        <h3>Games to Create</h3>
        <div class="hide">
            <?php 
echo $this->form->field('one_per_team', array('type' => 'checkbox', 'label' => 'One Per Team?', 'checked' => true, 'id' => 'onePerTeamBox'));
Esempio n. 3
0
 public function index()
 {
     $fieldList = FieldSites::all(array('conditions' => array('active' => true), 'order' => array('name' => 1)));
     return compact('fieldList');
 }