Skip to content

Commit

Permalink
trabajando en el modulo de recursos, listados
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloRN committed Aug 23, 2011
1 parent c50c93e commit c25fd9d
Show file tree
Hide file tree
Showing 18 changed files with 337 additions and 209 deletions.
1 change: 1 addition & 0 deletions apps/front/config/view.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ default:
- main
- markdown
- typography
- recursos

javascripts:

Expand Down
2 changes: 1 addition & 1 deletion apps/front/modules/articulo/templates/_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{
echo _open('li.element');

echo _link($articulo);
echo _link($articulo)->text($articulo->titulo);

echo _close('li');
}
Expand Down
2 changes: 1 addition & 1 deletion apps/front/modules/bibliotecaPersonal/templates/_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{
echo _open('li.element');

echo _link($bibliotecaPersonal);
echo _link($bibliotecaPersonal)->text($bibliotecaPersonal->titulo);

echo _close('li');
}
Expand Down
13 changes: 12 additions & 1 deletion apps/front/modules/documentoLegal/actions/actions.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@
*/
class documentoLegalActions extends myFrontModuleActions
{

public function executeFormWidget(dmWebRequest $request)
{
$form = new documentolegalForm();

if ($request->hasParameter($form->getName()) && $form->bindAndValid($request))
{
$form->save();
$this->redirectBack();
}

$this->forms['documentolegal'] = $form;
}

}
18 changes: 18 additions & 0 deletions apps/front/modules/documentoLegal/actions/components.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,24 @@
*/
class documentoLegalComponents extends myFrontModuleComponents
{
public function executeList()
{
$query = $this->getListQuery();

$this->documentoLegalPager = $this->getPager($query);
}

public function executeShow()
{
$query = $this->getShowQuery();

$this->documentoLegal = $this->getRecord($query);
}

public function executeForm()
{
$this->form = $this->forms['documentolegal'];
}


}
3 changes: 3 additions & 0 deletions apps/front/modules/documentoLegal/templates/_form.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php // Vars: $form

echo $form;
18 changes: 18 additions & 0 deletions apps/front/modules/documentoLegal/templates/_list.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php // Vars: $documentoLegalPager

echo $documentoLegalPager->renderNavigationTop();

echo _open('ul.elements');

foreach ($documentoLegalPager as $documentoLegal)
{
echo _open('li.element');

echo _link($documentoLegal)->text($documentoLegal->titulo);

echo _close('li');
}

echo _close('ul');

echo $documentoLegalPager->renderNavigationBottom();
3 changes: 3 additions & 0 deletions apps/front/modules/documentoLegal/templates/_show.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php // Vars: $bibliotecaPersonal

echo $documentoLegal;
2 changes: 1 addition & 1 deletion apps/front/modules/monografia/templates/_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{
echo _open('li.element');

echo _link($monografia);
echo _link($monografia)->text($monografia->titulo);

echo _close('li');
}
Expand Down
8 changes: 7 additions & 1 deletion apps/front/modules/patente/templates/_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@
{
echo _open('li.element');

echo _link($patente);
echo 'T&iacutetulo: '._link($patente)->text($patente->titulo);
if($patente->resumen){

echo _tag('p', 'Resumen: '.markdown($patente->resumen, '.resumen'));}
else{
echo _tag('p.recurso_list', 'Sin resumen');
}

echo _close('li');
}
Expand Down
2 changes: 1 addition & 1 deletion apps/front/modules/presentacion/templates/_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{
echo _open('li.element');

echo _link($presentacion);
echo _link($presentacion)->text($presentacion->titulo);

echo _close('li');
}
Expand Down
17 changes: 15 additions & 2 deletions apps/front/modules/recurso/templates/_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,21 @@
foreach ($recursoPager as $recurso)
{
echo _open('li.element');

echo _link($recurso);
echo _tag('a.link', _link($recurso)->text($recurso->titulo));
if($recurso->resumen){

echo markdown($recurso->resumen, '.resumen');}
else{
echo _tag('p.recurso_list', 'Sin resumen');
}
echo _tag('p.recurso_infos',
_tag('span', $recurso->createdAt).
'|'.
_tag('span', _link(sprintf('%s/list', $recurso->type)).
'|'.
_link($recurso)->text(__('Leer m&aacutes...'))
));


echo _close('li');
}
Expand Down
2 changes: 1 addition & 1 deletion apps/front/modules/recurso/templates/_show.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php // Vars: $recurso

echo $recurso;
echo $recurso->titulo;
2 changes: 1 addition & 1 deletion apps/front/modules/tesis/templates/_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{
echo _open('li.element');

echo _link($tesis);
echo _link($tesis)->text($tesis->titulo);

echo _close('li');
}
Expand Down
Loading

0 comments on commit c25fd9d

Please sign in to comment.