dons.html 3.65 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
<section>
<h2>Gestion des dons</h2>
<form name="f" method="POST" action="{{ 'admin' | alias }}">
    <input type="hidden" id="action" name="action" value="" />
    <input type="hidden" id="id" name="id" value="" />
    <input type="hidden" id="csrf" name="csrf" value="{{ @CSRF }}" />

    <label for="texte">Id/Nom/Email/Adresse</label>
    <input type="text" id="texte" name="texte" size="30" value="{{ @texte }}" />

    <label for="somme">Montant</label>
    <input type="text" id="somme" name="somme" size="3" value="{{ @somme }}" />

    <label for="public">Public</label>
    <select name="public" id="public">
        <option value="">-- Tous --</option>
        <option value="0" <check if="{{ @public=='0' }}">selected</check> >Soutien non public</option>
        <option value="1" <check if="{{ @public=='1' }}">selected</check> >Soutien public</option>
    </select>

    <label for="status">Statut</label>
    <select name="status" id="status">
        <option value="">-- Tous les status --</option>
        <option value="0,100" <check if="{{ @status=='0,100' }}">selected</check> >Non validé</option>
        <option value="1,4,101" <check if="{{ @status=='1,4,101' }}">selected</check> >Validé</option>
        <option value="">------</option>
        <option value="0" <check if="{{ @status=='0' }}">selected</check> >Ponctuel non validé</option>
        <option value="1" <check if="{{ @status=='1' }}">selected</check> >Ponctuel validé</option>
        <option value="">------</option>
        <option value="100" <check if="{{ @status=='100' }}">selected</check> >Récurrent non validé</option>
        <option value="4,101" <check if="{{ @status=='4,101' }}">selected</check> >Récurrent validé</option>
    </select>

34 35 36 37 38 39
    <label for="date1">Depuis le</label>
    <input type="date" id="date1" name="date1" value="{{ @date1 }}" />

    <label for="date2">Jusqu'au</label>
    <input type="date" id="date2" name="date2" value="{{ @date2 }}" />

40 41
    <label for="limite">Limite</label>
    <input type="text" id="limite" name="limite" size="3" value="{{ @limite }}" />
42

okhin's avatar
okhin committed
43 44
    <label for="page">Page</label>
    <input type="text" id="page" name="page" size="3" value="{{ @page }}" />
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66

    <input type="submit" value="Filtrer" />
</form>
<check if="{{ @row_count }}"><b>{{ @row_count }} résultats</b>
<br />
<table cellspacing="0" cellpadding="0">
<theader>
    <th>ID</th>
    <th>Date</th>
    <th>Nom</th>
    <th>Email</th>
    <th>Don</th>
    <th>Adresse</th>
    <th>PDF</th>
    <th>Statut</th>
    <th>Actions</th>
</theader>
<tbody>
    <repeat group="{{ @data }}" value="{{ @row }}">
    <tr>
        <td>{{ @row.id }}</td>
        <td class="inline">{{ @row.datec }}</td>
67 68
        <td>{{ @row.pseudo }}</td>
        <td><a href="{{ 'user_info','id='.@row.user_id | alias }}">{{ @row.email }}</a></td>
69 70 71 72 73 74 75 76 77 78 79 80 81 82
        <td>{{ @row.somme }}</td>
        <td>
        {{ @row.adresse }}<br />
        {{ @row.adresse2 }}<br />
        {{ @row.codepostal }} {{ @row.ville }}<br />
        {{ @row.pays }}
        </td>
        <td><a href="{{ @piplome_url.@row.pdf }}.pdf">{{ @row.pdf }}</a></td>
        <td class="inline">{{ @DONS_STATUTS[@row.status] }}</td>
        <td>
		<a href="{{ 'edit_support', 'id='.@row.id | alias }}">Editer</a>
        -
        <check if="{{ @row.status==0 || @row.status==100 }}" >
        <true>
83
        <a href="{{ 'validate_support', 'id='.@row.id | alias }}">Valider</a>
84 85
        </true>
        <false>
86
            <a href="{{ 'invalidate_support', 'id='.@row.id | alias }}">Invalider</a>
87
            -
88
            <a href="{{ 'validate_support', 'id='.@row.id | alias }}">PDF</a>
89 90 91 92 93 94 95 96
        </false>
        </check>
        </td>
    </tr>
    </repeat>
</tbody>
</table>
</section>