/protected/views/tracker/admin.php
PHP | 87 lines | 50 code | 6 blank | 31 comment | 0 complexity | 62835dc386969a1d4de253f5bf7b0a5e MD5 | raw file
Possible License(s): GPL-3.0, BSD-3-Clause, AGPL-1.0, GPL-2.0, MIT, LGPL-2.1
- <?php
- /*
- * This file is part of
- * ____ _ __
- * / __ )__ ______ _(_) /_____ _____
- * / __ / / / / __ `/ / __/ __ \/ ___/
- * / /_/ / /_/ / /_/ / / /_/ /_/ / /
- * /_____/\__,_/\__, /_/\__/\____/_/
- * /____/
- * A Yii powered issue tracker
- * http://bitbucket.org/jacmoe/bugitor/
- *
- * Copyright (C) 2009 - 2013 Bugitor Team
- *
- * Permission is hereby granted, free of charge, to any person
- * obtaining a copy of this software and associated documentation files
- * (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge,
- * publish, distribute, sublicense, and/or sell copies of the Software,
- * and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included
- * in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
- * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
- * OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
- * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
- ?>
- <?php
- $this->breadcrumbs=array(
- 'Trackers'=>array('index'),
- 'Manage',
- );
- $this->menu=array(
- array('label'=>'List Tracker', 'url'=>array('index')),
- array('label'=>'Create Tracker', 'url'=>array('create')),
- );
- Yii::app()->clientScript->registerScript('search', "
- $('.search-button').click(function(){
- $('.search-form').toggle();
- return false;
- });
- $('.search-form form').submit(function(){
- $.fn.yiiGridView.update('tracker-grid', {
- data: $(this).serialize()
- });
- return false;
- });
- ");
- ?>
- <h1>Manage Trackers</h1>
- <p>
- You may optionally enter a comparison operator (<b><</b>, <b><=</b>, <b>></b>, <b>>=</b>, <b><></b>
- or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.
- </p>
- <?php echo CHtml::link('Advanced Search','#',array('class'=>'search-button')); ?>
- <div class="search-form" style="display:none">
- <?php $this->renderPartial('_search',array(
- 'model'=>$model,
- )); ?>
- </div><!-- search-form -->
- <?php $this->widget('zii.widgets.grid.CGridView', array(
- 'id'=>'tracker-grid',
- 'dataProvider'=>$model->search(),
- 'filter'=>$model,
- 'columns'=>array(
- 'id',
- 'name',
- 'is_in_chlog',
- 'is_in_roadmap',
- 'position',
- array(
- 'class'=>'CButtonColumn',
- ),
- ),
- )); ?>