Skip to content

Commit

Permalink
Merge pull request #22 from PabloRN/master
Browse files Browse the repository at this point in the history
Terminé el buscador, trabajo en los show de los recursos, terminado la función solicitar aviso de prestamo
  • Loading branch information
rafix committed Sep 2, 2011
2 parents 1455cb6 + 162c242 commit fab651b
Show file tree
Hide file tree
Showing 61 changed files with 2,069 additions and 279 deletions.
16 changes: 16 additions & 0 deletions apps/admin/modules/autor/actions/actions.class.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

require_once dirname(__FILE__).'/../lib/autorGeneratorConfiguration.class.php';
require_once dirname(__FILE__).'/../lib/autorGeneratorHelper.class.php';

/**
* autor actions.
*
* @package bibliocnic
* @subpackage autor
* @author Your name here
* @version SVN: $Id: actions.class.php 12474 2008-10-31 10:41:27Z fabien $
*/
class autorActions extends autoAutorActions
{
}
38 changes: 38 additions & 0 deletions apps/admin/modules/autor/config/generator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
generator:
class: dmAdminDoctrineGenerator
param:
model_class: Autor
theme: dmAdmin
non_verbose_templates: true
with_show: false
route_prefix: autor
with_doctrine_route: false
config:
actions: ~
fields:
recursos_list:
label: Recursos
list:
display:
- '=id'
- nombre
- apellidos
sort:
- apellidos
- asc
table_method: getAdminListQuery
table_count_method: ~
sortable: false
filter:
display:
- id
- nombre
- apellidos
form:
display:
Recursos: [recursos_list]
Others: [nombre, apellidos]
class: AutorAdminForm
fields: { }
edit: ~
new: ~
12 changes: 12 additions & 0 deletions apps/admin/modules/autor/lib/AutorAdminExport.class.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

/**
* autor admin export
*
* @package bibliocnic
* @subpackage autor
* @author Your name here
*/
class AutorAdminExport extends myDoctrineTableExport
{
}
18 changes: 18 additions & 0 deletions apps/admin/modules/autor/lib/AutorAdminForm.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

/**
* autor admin form
*
* @package bibliocnic
* @subpackage autor
* @author Your name here
*/
class AutorAdminForm extends BaseAutorForm
{
public function configure()
{
parent::configure();
$this->validatorSchema['nombre'] = new sfValidatorRegex(array ('pattern' => '(^[a-zA-Z]+$)', 'required' => false), array('invalid' => 'El nombre no debe contener n&uacutemeros o s&iacutembolos'));
$this->validatorSchema['apellidos'] = new sfValidatorRegex(array ('pattern' => '(^[a-zA-Z]+$)', 'required' => false), array('invalid' => 'Los apellidos no deben contener n&uacutemeros o s&iacutembolos'));
}
}
13 changes: 13 additions & 0 deletions apps/admin/modules/autor/lib/autorGeneratorConfiguration.class.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

/**
* autor module configuration.
*
* @package bibliocnic
* @subpackage autor
* @author Your name here
* @version SVN: $Id: configuration.php 12474 2008-10-31 10:41:27Z fabien $
*/
class autorGeneratorConfiguration extends BaseAutorGeneratorConfiguration
{
}
13 changes: 13 additions & 0 deletions apps/admin/modules/autor/lib/autorGeneratorHelper.class.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

/**
* autor module helper.
*
* @package bibliocnic
* @subpackage autor
* @author Your name here
* @version SVN: $Id: helper.php 12474 2008-10-31 10:41:27Z fabien $
*/
class autorGeneratorHelper extends BaseAutorGeneratorHelper
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@ public function configure()

$this->widgetSchema['fecha_inicial'] = new sfWidgetFormDmDate(array(
'format' => '%month%/%day%/%year%',
'with_time' => false,
'required' => false
'with_time' => false

));
$this->validatorSchema['fecha_inicial'] = new dmValidatorDate(array(
'with_time' => false,
'required' => false
'with_time' => false


));
$this->widgetSchema['fecha_final'] = new sfWidgetFormDmDate(array(
'format' => '%month%/%day%/%year%',
'with_time' => false,
'required' => false
'with_time' => false

));
$this->validatorSchema['fecha_final'] = new dmValidatorDate(array(
'with_time' => false,
'required' => false
'with_time' => false

));


Expand Down
2 changes: 2 additions & 0 deletions apps/admin/modules/monografia/config/generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ generator:
- num_inventario
- slide_id
- tematicas_list
- autors_list
- created_at
- updated_at
- created_by
Expand All @@ -57,6 +58,7 @@ generator:
- ciudad_pub
- editorial
- isbn
- num_inventario
- created_at
- updated_at
- created_by
Expand Down
16 changes: 16 additions & 0 deletions apps/admin/modules/prestamo/actions/actions.class.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

require_once dirname(__FILE__).'/../lib/prestamoGeneratorConfiguration.class.php';
require_once dirname(__FILE__).'/../lib/prestamoGeneratorHelper.class.php';

/**
* prestamo actions.
*
* @package bibliocnic
* @subpackage prestamo
* @author Your name here
* @version SVN: $Id: actions.class.php 12474 2008-10-31 10:41:27Z fabien $
*/
class prestamoActions extends autoPrestamoActions
{
}
49 changes: 49 additions & 0 deletions apps/admin/modules/prestamo/config/generator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
generator:
class: dmAdminDoctrineGenerator
param:
model_class: Prestamo
theme: dmAdmin
non_verbose_templates: true
with_show: false
route_prefix: prestamo
with_doctrine_route: false
config:
actions: ~
fields: { }
list:
display:
- '=id'
- dm_user_id
- recurso_id
- recurso_id
- recurso_id
- recurso_id
- recurso_id
- recurso_id
- recurso_id
- recurso_id
- fecha_prestamo
- fecha_devolucion
- prorroga
sort:
- id
- asc
table_method: getAdminListQuery
table_count_method: ~
sortable: false
filter:
display:
- id
- prorroga
- dm_user_id
- recurso_id
- fecha_prestamo
- fecha_devolucion
form:
display:
NONE: [prorroga, dm_user_id, recurso_id, recurso_id, recurso_id, recurso_id, recurso_id, recurso_id, recurso_id, recurso_id]
Others: [fecha_prestamo, fecha_devolucion]
class: PrestamoAdminForm
fields: { }
edit: ~
new: ~
12 changes: 12 additions & 0 deletions apps/admin/modules/prestamo/lib/PrestamoAdminExport.class.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

/**
* prestamo admin export
*
* @package bibliocnic
* @subpackage prestamo
* @author Your name here
*/
class PrestamoAdminExport extends myDoctrineTableExport
{
}
16 changes: 16 additions & 0 deletions apps/admin/modules/prestamo/lib/PrestamoAdminForm.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

/**
* prestamo admin form
*
* @package bibliocnic
* @subpackage prestamo
* @author Your name here
*/
class PrestamoAdminForm extends BasePrestamoForm
{
public function configure()
{
parent::configure();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

/**
* prestamo module configuration.
*
* @package bibliocnic
* @subpackage prestamo
* @author Your name here
* @version SVN: $Id: configuration.php 12474 2008-10-31 10:41:27Z fabien $
*/
class prestamoGeneratorConfiguration extends BasePrestamoGeneratorConfiguration
{
}
13 changes: 13 additions & 0 deletions apps/admin/modules/prestamo/lib/prestamoGeneratorHelper.class.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

/**
* prestamo module helper.
*
* @package bibliocnic
* @subpackage prestamo
* @author Your name here
* @version SVN: $Id: helper.php 12474 2008-10-31 10:41:27Z fabien $
*/
class prestamoGeneratorHelper extends BasePrestamoGeneratorHelper
{
}
4 changes: 2 additions & 2 deletions apps/admin/modules/recurso/config/generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ generator:
filter:
display:
- id
- aprobado
- prestado
- is_active
- formato_duro
- titulo
Expand Down Expand Up @@ -105,7 +105,7 @@ generator:
- updated_by
form:
display:
NONE: [aprobado, is_active, formato_duro]
NONE: [prestado, is_active, formato_duro]
Slide: [slide_id_form, slide_id_view]
Others: [titulo, anno, resumen, idioma, palabras_claves, type, pais, institucion, total_paginas, num_internacional, organismo, tipo_dc, cant_registros, fecha_inicial, ciudad_pub, editorial, isbn, volumen, num_revista, pagina_inicial, pagina_final, issn, num_diapositivas, departamento, ciudad, tutor, tipo]
class: RecursoAdminForm
Expand Down
16 changes: 16 additions & 0 deletions apps/admin/modules/solicitudPrestamo/actions/actions.class.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

require_once dirname(__FILE__).'/../lib/solicitudPrestamoGeneratorConfiguration.class.php';
require_once dirname(__FILE__).'/../lib/solicitudPrestamoGeneratorHelper.class.php';

/**
* solicitudPrestamo actions.
*
* @package bibliocnic
* @subpackage solicitudPrestamo
* @author Your name here
* @version SVN: $Id: actions.class.php 12474 2008-10-31 10:41:27Z fabien $
*/
class solicitudPrestamoActions extends autoSolicitudPrestamoActions
{
}
39 changes: 39 additions & 0 deletions apps/admin/modules/solicitudPrestamo/config/generator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
generator:
class: dmAdminDoctrineGenerator
param:
model_class: SolicitudPrestamo
theme: dmAdmin
non_verbose_templates: true
with_show: false
route_prefix: solicitud_prestamo
with_doctrine_route: false
config:
actions: ~
fields: { }
list:
display:
- '=id'
- dm_user_id
- recurso_id
- created_at
- updated_at
sort:
- created_at
- desc
table_method: getAdminListQuery
table_count_method: ~
sortable: false
filter:
display:
- id
- dm_user_id
- recurso_id
- created_at
- updated_at
form:
display:
NONE: [dm_user_id, recurso_id]
class: SolicitudPrestamoAdminForm
fields: { }
edit: ~
new: ~
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

/**
* solicitudPrestamo admin export
*
* @package bibliocnic
* @subpackage solicitudPrestamo
* @author Your name here
*/
class SolicitudPrestamoAdminExport extends myDoctrineTableExport
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

/**
* solicitudPrestamo admin form
*
* @package bibliocnic
* @subpackage solicitudPrestamo
* @author Your name here
*/
class SolicitudPrestamoAdminForm extends BaseSolicitudPrestamoForm
{
public function configure()
{
parent::configure();
}
}
Loading

0 comments on commit fab651b

Please sign in to comment.