-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from PabloRN/master
Configuración de formularios de registro y de signin, y envio de email
- Loading branch information
Showing
38 changed files
with
2,152 additions
and
1,884 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ generator: | |
|
||
list: | ||
display: | ||
- id | ||
- =username | ||
- is_active | ||
|
16 changes: 16 additions & 0 deletions
16
apps/admin/modules/respuestaBusqueda/actions/actions.class.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
require_once dirname(__FILE__).'/../lib/respuestaBusquedaGeneratorConfiguration.class.php'; | ||
require_once dirname(__FILE__).'/../lib/respuestaBusquedaGeneratorHelper.class.php'; | ||
|
||
/** | ||
* respuestaBusqueda actions. | ||
* | ||
* @package bibliocnic | ||
* @subpackage respuestaBusqueda | ||
* @author Your name here | ||
* @version SVN: $Id: actions.class.php 12474 2008-10-31 10:41:27Z fabien $ | ||
*/ | ||
class respuestaBusquedaActions extends autoRespuestaBusquedaActions | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
generator: | ||
class: dmAdminDoctrineGenerator | ||
param: | ||
model_class: respuestab | ||
theme: dmAdmin | ||
non_verbose_templates: true | ||
with_show: false | ||
route_prefix: respuesta_busqueda | ||
with_doctrine_route: false | ||
config: | ||
actions: ~ | ||
fields: { } | ||
list: | ||
display: | ||
- '=id' | ||
- busqueda_id | ||
- mensaje | ||
- uri | ||
- created_at | ||
- updated_at | ||
sort: | ||
- created_at | ||
- desc | ||
table_method: getAdminListQuery | ||
table_count_method: ~ | ||
sortable: false | ||
filter: | ||
display: | ||
- id | ||
- mensaje | ||
- busqueda_id | ||
- uri | ||
- created_at | ||
- updated_at | ||
form: | ||
display: | ||
NONE: [busqueda_id] | ||
Mensaje: [mensaje] | ||
Others: [uri] | ||
class: respuestabAdminForm | ||
fields: { } | ||
edit: ~ | ||
new: ~ |
13 changes: 13 additions & 0 deletions
13
apps/admin/modules/respuestaBusqueda/lib/respuestaBusquedaGeneratorConfiguration.class.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
/** | ||
* respuestaBusqueda module configuration. | ||
* | ||
* @package bibliocnic | ||
* @subpackage respuestaBusqueda | ||
* @author Your name here | ||
* @version SVN: $Id: configuration.php 12474 2008-10-31 10:41:27Z fabien $ | ||
*/ | ||
class respuestaBusquedaGeneratorConfiguration extends BaseRespuestaBusquedaGeneratorConfiguration | ||
{ | ||
} |
13 changes: 13 additions & 0 deletions
13
apps/admin/modules/respuestaBusqueda/lib/respuestaBusquedaGeneratorHelper.class.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
/** | ||
* respuestaBusqueda module helper. | ||
* | ||
* @package bibliocnic | ||
* @subpackage respuestaBusqueda | ||
* @author Your name here | ||
* @version SVN: $Id: helper.php 12474 2008-10-31 10:41:27Z fabien $ | ||
*/ | ||
class respuestaBusquedaGeneratorHelper extends BaseRespuestaBusquedaGeneratorHelper | ||
{ | ||
} |
12 changes: 12 additions & 0 deletions
12
apps/admin/modules/respuestaBusqueda/lib/respuestabAdminExport.class.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
/** | ||
* respuestaBusqueda admin export | ||
* | ||
* @package bibliocnic | ||
* @subpackage respuestaBusqueda | ||
* @author Your name here | ||
*/ | ||
class respuestabAdminExport extends myDoctrineTableExport | ||
{ | ||
} |
17 changes: 17 additions & 0 deletions
17
apps/admin/modules/respuestaBusqueda/lib/respuestabAdminForm.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
/** | ||
* respuestaBusqueda admin form | ||
* | ||
* @package bibliocnic | ||
* @subpackage respuestaBusqueda | ||
* @author Your name here | ||
*/ | ||
class respuestabAdminForm extends BaserespuestabForm | ||
{ | ||
public function configure() | ||
{ | ||
parent::configure(); | ||
unset($this['created_at'], $this['updated_at']); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ test: | |
dev: | ||
mailer: | ||
param: | ||
delivery_strategy: none | ||
delivery_strategy: realtime | ||
|
||
all: | ||
routing: | ||
|
@@ -43,4 +43,17 @@ all: | |
class: sfViewCacheManager | ||
param: | ||
cache_key_use_vary_headers: true | ||
cache_key_use_host_name: true | ||
cache_key_use_host_name: true | ||
mailer: | ||
param: | ||
logging: %SF_LOGGING_ENABLED% | ||
charset: %SF_CHARSET% | ||
delivery_strategy: realtime | ||
transport: | ||
class: Swift_SmtpTransport | ||
param: | ||
host: 10.36.1.2 | ||
port: 25 | ||
encryptation: ~ | ||
username: [email protected] | ||
password: 123456 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
all: | ||
is_secure: false | ||
is_secure: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php // Vars: $busquedaPager | ||
|
||
echo $busquedaPager->renderNavigationTop(); | ||
|
||
echo _open('ul.elements'); | ||
|
||
foreach ($busquedaPager as $busqueda) | ||
{ | ||
echo _open('li.element'); | ||
|
||
echo _link($busqueda); | ||
|
||
echo _close('li'); | ||
} | ||
|
||
echo _close('ul'); | ||
|
||
echo $busquedaPager->renderNavigationBottom(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?php // Vars: $busqueda | ||
|
||
echo $busqueda; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
<?php | ||
|
||
/*if($sf_user->isAuthenticated()) | ||
if ($sf_user->getFlash('busqueda_form_valid')) | ||
{ | ||
echo _tag('p.felicitaciones', 'Su solicitud ha sido enviada satisfactoriamente y será respondida con la mayor brevedad posible '); | ||
} | ||
if($sf_user->isAuthenticated()) | ||
{ | ||
$image = $sf_user->getUser()->get('Image'); | ||
echo _media($image)->size(50,60); | ||
echo _tag('p', __('Usted ya se encuentra registrado como "%username%", si no es "%username%" por favor cierre la sesión e intente registrarse de nuevo.', array('%username%' => $sf_user->getUsername()))); | ||
echo _tag('p.ya_registrado', __('Usted ya se encuentra registrado como "%username%", si no es "%username%" por favor cierre la sesión e intente registrarse de nuevo.', array('%username%' => $sf_user->getUsername()))); | ||
return; | ||
}*/ | ||
} | ||
|
||
echo $form; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
return; | ||
} | ||
|
||
|
||
echo $form->open('.dm_signin_form action=@signin'); | ||
|
||
echo _tag('ul.dm_form_elements', | ||
|
9 changes: 9 additions & 0 deletions
9
apps/front/modules/respuestaBusqueda/actions/actions.class.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
/** | ||
* Respuesta busqueda actions | ||
*/ | ||
class respuestaBusquedaActions extends myFrontModuleActions | ||
{ | ||
|
||
|
||
} |
25 changes: 25 additions & 0 deletions
25
apps/front/modules/respuestaBusqueda/actions/components.class.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
/** | ||
* Respuesta busqueda components | ||
* | ||
* No redirection nor database manipulation ( insert, update, delete ) here | ||
*/ | ||
class respuestaBusquedaComponents extends myFrontModuleComponents | ||
{ | ||
|
||
public function executeListByBusqueda() | ||
{ | ||
$query = $this->getListQuery(); | ||
|
||
$this->respuestaBusquedaPager = $this->getPager($query); | ||
} | ||
|
||
public function executeShow() | ||
{ | ||
$query = $this->getShowQuery(); | ||
|
||
$this->respuestaBusqueda = $this->getRecord($query); | ||
} | ||
|
||
|
||
} |
18 changes: 18 additions & 0 deletions
18
apps/front/modules/respuestaBusqueda/templates/_listByBusqueda.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php // Vars: $respuestaBusquedaPager | ||
|
||
echo $respuestaBusquedaPager->renderNavigationTop(); | ||
|
||
echo _open('ul.elements'); | ||
|
||
foreach ($respuestaBusquedaPager as $respuestaBusqueda) | ||
{ | ||
echo _open('li.element'); | ||
|
||
echo _link($respuestaBusqueda); | ||
|
||
echo _close('li'); | ||
} | ||
|
||
echo _close('ul'); | ||
|
||
echo $respuestaBusquedaPager->renderNavigationBottom(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?php // Vars: $respuestaBusqueda | ||
|
||
echo $respuestaBusqueda; |
Oops, something went wrong.