Skip to content

Commit

Permalink
added steps - Closes #5
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Mar 25, 2010
1 parent acfbba3 commit d38252f
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/front/modules/inscription/templates/_creerCollecte.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
echo _tag('p', 'Votre email a bien été enregistré.');
}

include_partial('inscription/steps', array('step' => 2));

echo $form->open();

echo _open('ul');
Expand Down
2 changes: 2 additions & 0 deletions apps/front/modules/inscription/templates/_diffuser.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
echo _tag('p', 'Aidez nous à diffuser nos actions plus largement. Plus nous serons nombreux à les recevoir, plus nous serons efficaces.');
}

include_partial('inscription/steps', array('step' => 2));

/*
* Affichage du formulaire
*/
Expand Down
2 changes: 2 additions & 0 deletions apps/front/modules/inscription/templates/_presentation.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
echo _tag('p', 'Votre email a bien été enregistré.');
}

include_partial('inscription/steps', array('step' => 1));

echo $form->open();

echo _open('ul');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

include_partial('inscription/steps', array('step' => 3));

echo _tag('h2', 'Abonnement annuel');

echo _tag('p', "Abonnez vous pour soutenir l'association et recevez pendant une année :
Expand Down
2 changes: 2 additions & 0 deletions apps/front/modules/inscription/templates/_soutenir.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

include_partial('inscription/steps', array('step' => 4));

echo _tag('h2', "Pour soutenir l'association");

echo _link('http://diem-project.org')->param('email', $email)->text('Faire un don');
Expand Down
24 changes: 24 additions & 0 deletions apps/front/modules/inscription/templates/_steps.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

$steps = array(
1 => 'Vos informations',
2 => 'Diffusez ce site',
3 => 'Recevez les cartes pétitions',
4 => 'Soutenez l\'association'
);

echo _open('ol.steps');

foreach($steps as $number => $name)
{
if($step == $number)
{
echo _tag('li.current', _tag('strong', $name));
}
else
{
echo _tag('li', $name);
}
}

echo _close('ol');

0 comments on commit d38252f

Please sign in to comment.