- Tarea #1105 -> Ordenar la lista de poblaciones
- Mejoras visuales git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_PROFIND_Web/trunk@40 3fe1ab16-cfe0-e34b-8c9f-7d8c168d430d
This commit is contained in:
parent
7aa32d3238
commit
ecdaf2c772
@ -72,6 +72,15 @@ class Poblacion extends CActiveRecord
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array Default scope for this model.
|
||||||
|
*/
|
||||||
|
public function defaultScope() {
|
||||||
|
return array (
|
||||||
|
'order' => 'poblacion'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieves a list of models based on the current search/filter conditions.
|
* Retrieves a list of models based on the current search/filter conditions.
|
||||||
* @return CActiveDataProvider the data provider that can return the models based on the search/filter conditions.
|
* @return CActiveDataProvider the data provider that can return the models based on the search/filter conditions.
|
||||||
|
|||||||
@ -47,7 +47,7 @@
|
|||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<link rel="stylesheet" href="chosen/chosen.css" />
|
<link rel="stylesheet" href="chosen.css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<form>
|
<form>
|
||||||
@ -1308,7 +1308,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script>
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script>
|
||||||
<script src="chosen/chosen.jquery.js" type="text/javascript"></script>
|
<script src="chosen.jquery.js" type="text/javascript"></script>
|
||||||
<script type="text/javascript"> $(".chzn-select").chosen(); $(".chzn-select-deselect").chosen({allow_single_deselect:true}); </script>
|
<script type="text/javascript"> $(".chzn-select").chosen(); $(".chzn-select-deselect").chosen({allow_single_deselect:true}); </script>
|
||||||
</form>
|
</form>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@ -1,3 +1,14 @@
|
|||||||
|
<?php Yii::app()->clientScript->registerCssFile(Yii::app()->theme->baseUrl . '/lib/uniform/css/uniform.default.css'); ?>
|
||||||
|
<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . '/lib/uniform/jquery.uniform.min.js', CClientScript::POS_END); ?>
|
||||||
|
|
||||||
|
<?php Yii::app()->clientScript->registerScript(
|
||||||
|
'uniform', "
|
||||||
|
$(document).ready(function(){
|
||||||
|
$('.uni_style').uniform();
|
||||||
|
});
|
||||||
|
", CClientScript::POS_END);
|
||||||
|
?>
|
||||||
|
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
<div class="span12">
|
<div class="span12">
|
||||||
<h3 class="heading"><?php echo Yii::t('profind', 'Empresa'); ?></h3>
|
<h3 class="heading"><?php echo Yii::t('profind', 'Empresa'); ?></h3>
|
||||||
@ -78,7 +89,7 @@
|
|||||||
$lista,
|
$lista,
|
||||||
array(
|
array(
|
||||||
'empty' => '',
|
'empty' => '',
|
||||||
'class'=>'input-xlarge',
|
'class'=>'uni_style input-xlarge',
|
||||||
));
|
));
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
@ -86,7 +97,7 @@
|
|||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<?php echo $form->labelEx($model, 'descripcion', array('class' => 'control-label')); ?>
|
<?php echo $form->labelEx($model, 'descripcion', array('class' => 'control-label')); ?>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<?php echo $form->textArea($model, 'descripcion', array('class' => 'input-xlarge')); ?>
|
<?php echo $form->textArea($model, 'descripcion', array('class' => 'input-xlarge', 'rows'=>7)); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
<?php Yii::app()->clientScript->registerCssFile(Yii::app()->theme->baseUrl . '/lib/uniform/css/uniform.default.css'); ?>
|
<?php Yii::app()->clientScript->registerCssFile(Yii::app()->theme->baseUrl . '/lib/uniform/css/uniform.default.css'); ?>
|
||||||
<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . '/lib/uniform/jquery.uniform.min.js', CClientScript::POS_END); ?>
|
<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . '/lib/uniform/jquery.uniform.min.js', CClientScript::POS_END); ?>
|
||||||
<?php
|
<?php Yii::app()->clientScript->registerScript(
|
||||||
Yii::app()->clientScript->registerScript(
|
|
||||||
'uniform', "
|
'uniform', "
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
$('.uni_style').uniform();
|
$('.uni_style').uniform();
|
||||||
|
|||||||
@ -6,7 +6,8 @@
|
|||||||
'chosen', "
|
'chosen', "
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
$('#Usuario_localidad').chosen({
|
$('#Usuario_localidad').chosen({
|
||||||
allow_single_deselect: true
|
allow_single_deselect: true,
|
||||||
|
no_results_text: 'Localidad no encontrada:'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
", CClientScript::POS_END);
|
", CClientScript::POS_END);
|
||||||
@ -99,7 +100,6 @@
|
|||||||
<span class="add-on"><i class="icon-envelope"></i></span>
|
<span class="add-on"><i class="icon-envelope"></i></span>
|
||||||
<?php echo $form->textField($model, 'email', array('class' => 'input-xlarge')); ?>
|
<?php echo $form->textField($model, 'email', array('class' => 'input-xlarge')); ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -144,7 +144,7 @@
|
|||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<?php echo $form->labelEx($model, 'descripcion', array('class' => 'control-label')); ?>
|
<?php echo $form->labelEx($model, 'descripcion', array('class' => 'control-label')); ?>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<?php echo $form->textArea($model, 'descripcion', array('class' => 'input-xlarge')); ?>
|
<?php echo $form->textArea($model, 'descripcion', array('class' => 'input-xlarge', 'rows'=>7)); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user