Commit f6712b91 authored by okhin's avatar okhin 🚴

Merge branch '32-nouveau-front' into 'preprod'

Deploiement de la page perso et des nouvelles CSS

See merge request !17
parents 6c8f8f95 3171b757
Pipeline #2068 passed with stages
in 1 minute and 19 seconds
...@@ -10,6 +10,8 @@ vendor/ ...@@ -10,6 +10,8 @@ vendor/
pdf/ pdf/
app/env app/env
.php_cs.cache .php_cs.cache
.DS_Store
__MAC
tests/_data tests/_data
tests/_output tests/_output
......
...@@ -27,4 +27,14 @@ ...@@ -27,4 +27,14 @@
<link rel="stylesheet" href="/static/css/modals.css" media="all"> <link rel="stylesheet" href="/static/css/modals.css" media="all">
<link rel="stylesheet" href="/static/css/collapsibles.css" media="all"> <link rel="stylesheet" href="/static/css/collapsibles.css" media="all">
<link rel="stylesheet" href="/static/css/layouts.css" media="all"> <link rel="stylesheet" href="/static/css/layouts.css" media="all">
<!-- Custom Styles pour la version 2018 -->
<link rel="stylesheet" href="./static/css/custom.css" media="all">
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
</head> </head>
...@@ -5,440 +5,382 @@ ...@@ -5,440 +5,382 @@
<em class="text-center"> {{ _("Cette page vous permet de modifier votre pi-xel et vos informations personnelles, <br> de choisir vos contreparties, et liste vos précédents dons.")}}</em> <em class="text-center"> {{ _("Cette page vous permet de modifier votre pi-xel et vos informations personnelles, <br> de choisir vos contreparties, et liste vos précédents dons.")}}</em>
</div> </div>
</div> </div>
<div class="white-pure"> </section>
<div class="row"> <section id="wrapper" class="container-fluid">
<h2 class="text-center">{{ _("Mes informations personnelles")}}</h2> <div id="subtitle" class="row">
<div class="page-header">
<h1 class="text-left">{{ _("Merci &lt;3&nbsp;!")}}</h1>
</div> </div>
<div class="row"> </div>
<div class="col-md-4"> <div class="row">
<div class="sky-blue well"> <div class="col-md-4"><!-- Form infos du compte -->
<form method="POST" action="{{ 'infos' | alias }}"> <div class="panel panel-default" style="margin-right:2em;">
<input type="hidden" name="csrf" value="{{ @CSRF }}" /> <div class="panel-heading" role="tab" id="headingInfos">
<div class="form-group"> <div class="panel-title col-xs text-left">
<label for="pseudo">{{ _("Pseudo") }}</label> <a role="button" data-toggle="collapse" href="#collapseInfos" aria-expanded="flase" aria-controls="collapseInfos">
<input type="text" class="form-control" id="pseudo" name="pseudo" value="{{ @infos.pseudo }}"> {{ _("Compte")}}
</div> </a>
<div class="form-group"> <div class="panel-title col-xs-2 text-right">
<label for="email">{{ _("Adresse mail")}}</label> <a role="button" data-toggle="collapse" href="#collapseInfos" aria-expanded="true" aria-controls="collapseInfos">
<input type="email" class="form-control" name="email" id="email" value="{{ @infos.email }}"> <span class="caret"></span>
</div> </a>
<div class="form-group">
<label for="password">{{ _("Mot de passe")}}</label>
<input type="password" class="form-control" name="password" id="password">
</div>
<div class="form-group">
<label for="password_confirmation">{{ _("Confirmation de mot de passe")}}</label>
<input type="password" class="form-control" name="password_confirmation" id="password_confirmation">
</div> </div>
<input type="submit" class="btn btn-lg btn-default" value="{{ _("Mettre à jour") }}"> </div>
</form>
</div> </div>
</div> <div id="collapseInfos" class="panel-collapse collapse" aria-labelledby="headingInfos">
<div class="col-md-8" id="section-addresses"> <div class="panel-body text-left">
<h3 class="text-center">Mes adresses</h3> <form method="POST" action="{{ 'infos' | alias }}">
<check if="{{ count(@adresses) > 0 }}"> <input type="hidden" name="csrf" value="{{ @CSRF }}" />
<div class="sky-blue well"> <div class="form-group">
<h3>Modifier une adresse existante</h3> <label for="pseudo">{{ _("Pseudo") }}</label>
<repeat group="{{ @adresses }}" value="{{ @adresse }}"> <input type="text" class="form-control" id="pseudo" name="pseudo" value="{{ @infos.pseudo }}">
<div class="panel panel-default sky-blue collapsible"> </div>
<input id="action{{ @adresse.id }}" type="checkbox"> <div class="form-group">
<div class="panel-heading"> <label for="email">{{ _("Adresse mail")}}</label>
<h4> <input type="email" class="form-control" name="email" id="email" value="{{ @infos.email }}">
<label for="action{{ @adresse.id }}"> </div>
{{ @adresse.alias }}<check if="{{@adresse.defaut > 0}}">{{ _(" - Adresse par défaut") }}</check> <div class="form-group">
<span class="panel-caret pull-right"></span> <label for="password">{{ _("Mot de passe")}}</label>
</label> <input type="password" class="form-control" name="password" id="password">
</h4>
</div>
<div class="collapsed">
<div class="panel-body sky-blue">
<form method="POST" id="up{{ @adresse.id }}" action="{{ 'adresses' | alias }}">
<input type="hidden" name="csrf" value="{{ @CSRF }}" />
<input type="hidden" name="action" value="UPDATE" />
<input type="hidden" name="id" value="{{ @adresse.id }}" />
<div class="row">
<div class="form-group col-sm-12">
<label for="alias">{{ _("Nom de l'adresse")}}</label>
<input type="text" class="form-control" name="alias" value="{{ @adresse.alias }}">
</div>
<div class="form-group col-sm-12">
<label for="nom">{{ _("Destinataire") }}</label>
<input type="text" class="form-control" name="nom" value="{{ @adresse.nom }}">
</div>
</div>
<div class="row">
<div class="form-group col-sm-12">
<label for="adresse">{{ _("Adresse")}}</label>
<input type="text" class="form-control" name="adresse" value="{{ @adresse.adresse }}">
</div>
</div>
<div class="row">
<div class="form-group col-sm-12">
<label for="adresse2">{{ _("Complément d'adresse")}}</label>
<input type="text" class="form-control" name="adresse2" value="{{ @adresse.adresse2 }}">
</div>
</div>
<div class="row">
<div class="form-group col-sm-6">
<label for="codepostal">{{ _("Code Postal")}}</label>
<input type="text" class="form-control" name="codepostal" value="{{ @adresse.codepostal }}">
</div>
<div class="col-sm-6 form-group">
<label for="ville">{{ _("Ville")}}</label>
<input type="text" class="form-control" name="ville" value="{{ @adresse.ville }}">
</div>
</div>
<div class="row">
<div class="form-group col-sm-6">
<label for="state">{{ _("Province / État")}}</label>
<input type="text" class="form-control" name="state" value="{{ @adresse.etat }}">
</div>
<div class="form-group col-sm-6">
<label for="pays">{{ _("Pays")}}</label>
<input type="text" class="form-control" name="pays" value="{{ @adresse.pays }}">
</div>
</div>
<div class="row">
<div class="form-group col-md-12">
<label for="defaut">
<input type="checkbox" name="defaut" value="true" <check if="{{ @adresse.defaut > 0 }}">checked</check>>{{ _("Utiliser comme adresse par défaut.") }}</label>
</div>
</div>
</form>
<form method="POST" id="del{{ @adresse.id}}" action="{{ 'adresses' | alias }}">
<input type="hidden" name="csrf" value="{{ @CSRF }}" />
<input type="hidden" name="action" value="DELETE" />
<input type="hidden" name="id" value="{{ @adresse.id }}" />
</form>
</div> </div>
<div class="panel-footer sky-blue"> <div class="form-group">
<input type="submit" form="del{{ @adresse.id }}" class="btn btn-lg btn-modal" value="{{ _("Supprimer") }}"> <label for="password_confirmation">{{ _("Confirmation de mot de passe")}}</label>
<input type="submit" form="up{{ @adresse.id }}" class="btn btn-lg btn-modal" value="{{ _("Modifier") }}"> <input type="password" class="form-control" name="password_confirmation" id="password_confirmation">
</div> </div>
<input type="submit" class="btn btn-lg btn-primary c-boutonslongs" value="{{ _("Mettre à jour") }}">
</form>
</div>
</div>
</div>
</div><!-- /Form infos du compte -->
<div class="col-md-4"><!-- Form addresses -->
<div class="panel panel-default" style="margin-right: 1em; margin-left: 1em;">
<div class="panel-heading" role="tab" id="headingAdresses">
<div class="row">
<div class="panel-title col-xs-10 text-left">
<a role="button" data-toggle="collapse" href="#collapseAdresses" aria-expanded="false" aria-controls="collapseAdresses">
{{ _("Adresses")}}
</a>
</div>
<div class="panel-title col-xs-2 text-right">
<a role="button" data-toggle="collapse" href="#collapseAdresses" aria-expanded="false" aria-controls="collapseAdresses">
<span class="caret"></span>
</a>
</div> </div>
</div> </div>
</repeat>
</div> </div>
<h3 class="strike-through text-center">{{ _("Ou") }}</h3> <div id="collapseAdresses" class="panel-collapse collapse" href="#collapseAdresses" aria-expanded="false" aria-controls="collapseAdresses">
</check> <div class="panel-body text-left">
<div class="sky-blue well"> <check if="{{ count(@adresses) > 0 }}">
<h3>{{ _("Ajouter une nouvelle adresse") }}</h3> <h3>{{ _("Modifier une adresse")</h3>
<form method="POST" action="{{ 'adresses' | alias }}" id="create-address-form"> <form>
<input type="hidden" name="csrf" value="{{ @CSRF }}" /> <div class="form-group">
<input type="hidden" name="action" value="ADD" /> <label for="">{{ _("Modifier une adresse")}}</label>
<div class="row"> <select class="form-control">
<div class="form-group col-sm-12"> <repeat group="{{ @adresses }}" value="{{ @adresse }}">
<label for="alias">{{ _("Nom de l'adresse")}}</label> <option value="{{ @adresse.id }}">{{ @adresse.alias }}</option>
<input type="text" value="principale" class="form-control" name="alias" id="alias"> </select>
</div> </div>
<div class="form-group col-sm-12"> </form>
<h3>{{ _("Ajouter une nouvelle adresse</h3>
<form method="POST" action="{{ 'adresses' | alias }}" id="create-adress-form">
<input type="hidden" name="csrf" value="{{ @CSRF }}" />
<input type="hidden" name="action" value="ADD" />
<input type="hidden" name="id" value="{{ @adresse.id }}" />
<div class="form-group">
<label for="alias">{{ _("Nom de l'adresse")}}</label>
<input type="text" class="form-control" name="alias" value="{{ @adresse.alias }}">
</div>
<div class="form-group">
<label for="nom">{{ _("Destinataire") }}</label> <label for="nom">{{ _("Destinataire") }}</label>
<input type="text" class="form-control" name="nom" id="nom"> <input type="text" class="form-control" name="nom" value="{{ @adresse.nom }}">
</div> </div>
</div> <div class="form-group">
<div class="row">
<div class="form-group col-sm-12">
<label for="adresse">{{ _("Adresse")}}</label> <label for="adresse">{{ _("Adresse")}}</label>
<input type="text" class="form-control" id="adresse" name="adresse"> <input type="text" class="form-control" name="adresse" value="{{ @adresse.adresse }}">
</div> </div>
</div> <div class="form-group">
<div class="row">
<div class="form-group col-sm-12">
<label for="adresse2">{{ _("Complément d'adresse")}}</label> <label for="adresse2">{{ _("Complément d'adresse")}}</label>
<input type="text" class="form-control" id="adresse2" name="adresse2"> <input type="text" class="form-control" name="adresse2" value="{{ @adresse.adresse2 }}">
</div> </div>
</div> <div class="form-group">
<div class="row">
<div class="form-group col-sm-6">
<label for="codepostal">{{ _("Code Postal")}}</label> <label for="codepostal">{{ _("Code Postal")}}</label>
<input type="text" class="form-control" id="codepostal" name="codepostal"> <input type="text" class="form-control" name="codepostal" value="{{ @adresse.codepostal }}">
</div> </div>
<div class="col-sm-6 form-group"> <div class="form-group">
<label for="ville">{{ _("Ville")}}</label> <label for="ville">{{ _("Ville")}}</label>
<input type="text" class="form-control" id="ville" name="ville"> <input type="text" class="form-control" name="ville" value="{{ @adresse.ville }}">
</div> </div>
</div> <div class="form-group">
<div class="row">
<div class="form-group col-sm-6">
<label for="state">{{ _("Province / État")}}</label> <label for="state">{{ _("Province / État")}}</label>
<input type="text" class="form-control" id="state" name="state"> <input type="text" class="form-control" name="state" value="{{ @adresse.etat }}">
</div> </div>
<div class="form-group col-sm-6"> <div class="form-group">
<label for="pays">{{ _("Pays")}}</label> <label for="pays">{{ _("Pays")}}</label>
<input type="text" class="form-control" id="pays" name="pays"> <input type="text" class="form-control" name="pays" value="{{ @adresse.pays }}">
</div> </div>
</div> <div class="form-group">
<div class="row"> <label for="default">
<div class="form-group col-md-12"> <input type="checkbox" name="defaut" value="true" <check if="{{ @adresse.defaut > 0 }}">checked</check>>{{ _("Utiliser comme adresse par défaut.") }}
<label for="defaut"> </label>
<input type="checkbox" name="defaut" value="true" checked>{{ _("Utiliser comme adresse par défaut.") }}</label>
</div> </div>
<input type="submit" class="btn btn-lg c-boutonslongs" value="{{ _("Créer cette adresse"}}">
</form>
</div>
</div>
</div>
</div><!-- / Form Adresses -->
<div class="col-md-4"><!-- Form historique -->
<div class="panel panel-default" style="margin-left: 2em;">
<div class="panel-heading" role="tab" id="headingHistorique">
<div class="row">
<div class="panel-title col-xs-10 text-left">
<a role="button" data-toggle="collapse" href="#collapseHistorique" aria-expanded aria-controls="collapseHistorique">
{{ _("Historique")}}
</a>
</div> </div>
<input type="submit" class="btn btn-lg btn-modal" value="{{ _("Créer cette adresse") }}"> </div>
</form> </div>
<div id="collapseHistorique" class="panel-collapse collapse" aria-labelledby="headingHistorique">
<div class="panel-body text-left">
<table class="table text-left">
<tr>
<th>{{ _("Date") }}</th>
<th>{{ _("Dons") }}</th>
<th>{{ _("Récurent") }}</th>
<th>{{ _("Contreparties") }}</th>
</tr>
<!-- FIXME: Modifier la vue pour avoir le bon historique" -->
<repeat group="{{ @dons_recurrents }}" value="{{ @don }}">
<tr>
<td>{{ @don.datec }}</td>
<td>{{ @don.somme }}</td>
<td>{{ @don.status }}</td>
<td><?td>
</tr>
</repeat>
</table>
</div>
</div> </div>
</div> </div>
</div> </div><!-- / Form historique -->
</div> </div>
</section> </section>
<section class="container-fluid light-blue"> <section id="wrapper" class="text-center container-fluid">
<div class="white-pure"> <div id="subtitle" class="row">
<h2 class="text-center">{{ _("Mes dons")}}</h2> <div class="page-header">
<div class="row"> <h2 class="text-left">{{ _("Vos dons")}}</h2>
<div class="col-md-12"> </div>
<div class="sky-blue well"> </div>
<h3 class="text-center">{{ _("Mes dons cumulés")}}</h3> <div id="" class="row">
<div class="form-group form-inline display-only"> <div class="col-md-4"><!-- déjà donné -->
<label for="total1">{{ _("Vous avez donnés un total de&nbsp;:")}}</label> <div class="panel panel-default">
<input id="total1" type="text" readonly class="pull-right" value="{{ @infos.total}} €"> <div class="panel-heading" role="tab" id="headingOne">
<div class="panel-title">
<p>{{ _("Vous avez déjà donné")}}</p>
</div> </div>
</div> </div>
<div class="panel-body c-pannelfondblanc">
<p class="c-groschiffre">{{ @infos.total }}&nbsp;</p>
</div>
</div> </div>
</div> </div><!-- / Déjà donné -->
<div class="row"> <div class="col-md-4"><!-- disponible -->
<div class="col-md-6"> <div class="panel panel-default">
<div class="sky-blue well"> <div class="panel-heading" role="tab" id="headingOne">
<h3>{{ _("Mes dons programmés")}}</h3> <div class="panel-title">
<table class="table-dons"> <p>{{ _("Disponible pour demander des contreparties")}}</p>
<thead> </div>
<th>{{ _("Date de création") }}</th> </div>
<th>{{ _("Montant") }}</th> <div class="panel-body c-pannelfondblanc">
<th>{{ _("Status") }}</th> <p class="c-groschiffre">{{ @infos.cumul }}&nbsp;</p>
<th>{{ _("Piplome") }}</th>
<th>{{ _("Actions") }}</th>
</thead>
<repeat group="{{ @dons_recurrents }}" value="{{ @don }}">
<tr>
<td>{{ @don.datec }}</td>
<td>{{ @don.somme }}</td>
<td>{{ @don.status }}</td>
<td><check if="{{ @don.pdf == '' }}">
<a href="/cron/piplome/{{ @don.id }}">{{ _("Générer") }}</a>
<false>
<a href="{{ PIPLOME_URL }}/{{ @don.pdf }}.pdf" target="_blank">{{ @pdfs[@don.pdf].decimale }}</a>
</false>
</check>
</td>
<td><a href="{{ 'cancel', 'id='.@don.identifier | alias }}"><span class="glyphicon glyphicon-remove" sr-only="{{ _("Suspendre") }}" aria-hidden="true"></span></a>&nbsp;<a href="/receipt/{{ @don.id }}"><span class="glyphicon glyphicon-print" sr-only="{{ _("Reçu") }}" aria-hidden="true"></span></a>
</td>
</tr>
</repeat>
</table>
</div> </div>
</div> </div>
<div class="col-md-6"> </div><!-- / disponible -->
<div class="sky-blue well"> <div class="col-md-4"><!-- prochain -->
<h3>{{ _("Mes dons effectués")}}</h3> <div class="panel panel-default">
<table class="table-dons"> <div class="panel-heading" role="tab" id="headingOne">
<thead> <div class="panel-title">
<th>{{ _("Date de prélèvement") }}</th> <p>{{ _("Prochain bonus disponible dans")}}</p>
<th>{{ _("Montant") }}</th> </div>
<th>{{ _("Type") }}</th> </div>
<th>{{ _("Piplome") }}</th> <div class="panel-body c-pannelfondblanc">
<th>{{ _("Status") }}</th> <p class="c-groschiffre"><!-- FIXME calculer le prochain palier -->XX</p>
<th>{{ _("Action") }}</th>
</thead>
<repeat group="{{ @dons }}" value="{{ @don }}">
<tr>
<td>{{ @don.datec }}</td>
<td>{{ @don.somme }}</td>
<td><check if="{{ in_array(@don.status, [100, 101, 102]) }}"><true>{{ _("Récurrent") }}</true><false>{{ _("Ponctuel") }}</false></check></td>
<td>
<check if="{{ @don.status == '102' }}">
N/A
<false>
<check if="{{ @don.pdf == '' }}">
<a href="/cron/piplome/{{ @don.id }}">{{ _("Générer") }}</a>
<false>
<a href="{{ PIPLOME_URL }}/{{ @pdfs[@don.pdf].pdf }}.pdf" target="_blank">{{ @pdfs[@don.pdf].decimale }}</a>
</false>
</check>
</false>
</check>
</td>
<td>{{ @don.status }}</td>
<td><a href="/receipt/{{ @don.id }}"><span class="glyphicon glyphicon-print" sr-only="{{ _("Reçu") }}" aria-hidden="true"></span></a>
</tr>
</repeat>
</table>
</div> </div>
</div> </div>
</div><!-- / prochain -->
</div>
<div class="row"><!-- nouveau don -->
<div class="row">
<button type="button" class="btn btn-primary c-boutonslongs" data-toggle="modal" data-target="#ModaleConfirmation">{{ _("Faire un nouveau don")}}</button>
</div> </div>
</div> </div>
</section> </section>
<section class="container-fluid light-blue">
<div class="white-pure"> <section id="wrapper" class="text-center container-fluid">
<h2 class="text-center">{{ _("Mes contreparties")}}</h2> <div id=subtitle" class="row">
<div class="well sky-blue"> <div class="page-header">
<div class="row"> <h2 class="text-left">{{ _("Demander des contreparties")}}</h2>
<div class="col-md-6 form-group form-inline display-only"> </div>
<span class="col-md-8">{{ _("Vous avez cumulé un total de") }}</span> <!-- FIXME: Lien page contrepartie -->
<input type="text" name="total2" class="form-control col-md-4" value="{{ @infos.total }} €" readonly> <p class="text-left">{{ _("Pour débloquer les objets associés à un bonus, cliquez sur l'icône de celui-ci. Le monant disponible pour les objets sera déduit du montant du palier et les objets seront disponibles sur la page <a href="#">Mes contreparties</a> pour en demander la livraison.")}}</p>
</div> <div id="" class="row">
<div class="col-md-6 form-group form-inline display-only"> <form method="POST" action="{{ 'add_contrepartie' | alias }}" name="contreparties">
<span class="col-md-8">{{ _("Vous pouvez obtenir des contreparties à hauteur de") }}</span> <input type="hidden" name="csrf" value="{{ @CSRF }}">
<input type="text" name="cumul" class="form-control col-md-4" value="{{ @infos.cumul }} €" readonly> <check if="{{ infos.cumul >= 30 }}">
<div class="col-md-8 col-md-offset-2"><!-- piplome -->
<div class="panel panel-default">
<div class="panel-body c-panelcontrepartie">
<div class="col-md-1">
<input type="checkbox" name="quoi" id="quoi1" class="" checked <check if="{{ @infos.cumul < 30 }}">disabled</check> value="piplome">
</div>
<div class="col-md-3 text-center">
<p>
<img class="" src="/static/img/piplome.svg" alt="">
</p>
</div>
<div class="col-md-8">
<div class="form-group text-left">
<label for="quoi1">
<h3 class="text-left">{{ _("Piplôme")}}</h3>
</label>
<form class="text-left">
<label for="piplome_id">{{ _("Titulaire du Piplôme")}}</label>
<input type="text" class="form-control" id="piplome_id" name="piplome_id" value="" placeholder="Nom, prénom, pseudonyme, etc …">
</form>
</div>
</div>
<div class="c-prixcontrepartie">
<p>30&nbsp;</p>
</div>
</div>
</div> </div>
</div> </div><!-- piplome -->
<hr> </check>
<div class="row"> <check if="{{ infos.cumul >= 50 }}">
<div class="col-md-3"> <div class="col-md-8 col-md-offset-2"><!-- Pibag -->
<em>Choisissez la contrepartie que vous voulez recevoir</em> <div class="panel panel-default">
<div class="panel-nody c-panelcontrepartie">
<div class="col-md-1">
<input type="checkbox" class="" id="quoi2" name="quoi" <check if="{{ @infos.cumul < 50 }}">disabled</check> value="pibag">
</div>
<div class="col-md-3 text-center">
<p>
<img class="" src="/static/img/pibag.svg" alt="">
</p>
</div>
<div class="col-md-8">
<div class="form-group text-left">
<label for="quoi2">
<h3 class="text-left">{{ _("Pibag")}}</h3>
</label>
</div>
</div>
<div class="c-prixcontrepartie">
<p>50&nbsp;</p>
</div>
</div>
</div> </div>
<form method="POST" action="{{ 'add_contrepartie' | alias }}" name="contreparties"> </div><!-- / Pibag -->
<input type="hidden" name="csrf" value="{{ @CSRF }}"> </check>
<div class="col-md-9 img-list"> <check if="{{ @infos.cumul >= 100 }}">
<check if="{{ @infos.cumul >= 30}}"> <div class="col-md-8 col-md-offset-2"><!-- Pishirt -->
<div class="col-md-6"> <div class="panel panel-default">
<input type="radio" name="quoi" id="quoi1" class="radio" checked <check if="{{ @infos.cumul < 30 }}">disabled</check> value="piplome"> <div class="panel-body c-panelcontrepartie">
<label for="quoi1"> <div class="col-md-1">
<img class="media-objet" src="/static/img/contreparties_piplome-01.png" alt=""> <input type="checkbox" class="" id="quoi3" name="quoi"<check if="{{ @infos.cumul < 100 }}">disabled</check> value="pishirt">
<div class="media-body">
<em>30 €</em>
<small>{{ _("Un piplome") }}</small>
</div>
</label>
<label for="piplome_id">{{ _("Piplome a imprimer") }}</label>
<select name="piplome_id">
<repeat group="{{ @pdfs }}" value="{{ @pdf }}">
<option value="{{ @pdf.id }}">{{ @pdf.decimale }}</option>
</repeat>
</select>
<div class="clearfix"></div>
</div> </div>
</check> <div class="col-md-3 text-center">
<check if="{{ @infos.cumul >= 50}}"> <p>
<div class="col-md-6"> <img class="" src="/static/img/pishirt.svg" alt="">
<input type="radio" class="radio" id="quoi2" name="quoi" <check if="{{ @infos.cumul < 50 }}">disabled</check> value="pibag"> </p>
<label for="quoi2">
<img class="media-object" src="/static/img/contreparties_pibag-01.png" alt="">
<div class="media-body">
<em>50 €</em>
<small>{{ _("Un pibag") }}</small>
</div>
</label>
<div class="clearfix"></div>
</div> </div>
</check> <div class="col-md-8">
<check if="{{ @infos.cumul >= 100}}"> <div class="form-group text-left">
<div class="col-md-6"> <label for="quoi3">
<input type="radio" class="radio" id="quoi3" name="quoi"<check if="{{ @infos.cumul < 100 }}">disabled</check> value="pishirt"> <h3 class="text-left">{{ _("Pi-Shirt")}}</h3>
<label for="quoi3"> </label>
<img class="media-object" src="/static/img/contreparties_pishirt-01.png" alt=""> <form class="text-left">