don.html 2.04 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<section id="ajout">
<check if="{{ @id>0 }}">
<true>
<h2>Modification d'un don</h2>
</true>
<false>
<h2>Ajout d'un don</h2>
</false>
</check>
<form name="f" method="POST" action="{{ 'modify_support' | alias }}">
    <input type="hidden" name="id" id="id" value="{{ @id }}" />
    <input type="hidden" id="csrf" name="csrf" value="{{ @CSRF }}" />

    <label for="email">Email</label>
    <input type="text" id="email" name="email" size="30" value="{{ @don.email }}" required/>
    <br />

    <label for="pseudo">Pseudo</label>
    <input type="text" id="pseudo" name="pseudo" size="30" value="{{ @don.pseudo }}" required/>
    <br />

    <label for="somme">Montant</label>
    <input type="text" id="somme" name="somme" size="7" value="{{ @don.somme }}" required/>
    <br />

    <label for="lang">Langue</label>
    <select name="lang" id="lang">
        <option value="fr" <check if="{{ @don.lang=='fr' }}">selected</check> >Français</option>
        <option value="en" <check if="{{ @don.lang=='en' }}">selected</check> >English</option>
    </select>
    <br />

    <label for="abo">Abonnement</label>
    <input type="checkbox" name="abo" id="abo" <check if="{{ @don.abo>0 }}">checked</check> />
    <br />

    <label for="public">Public</label>
    <input type="checkbox" name="public" id="public" <check if="{{ @don.public>0 }}">checked</check> />
    <br />

    <check if="{{ @id>0 }}">
    <true>
    <input type="submit" value="Modifier ce don" />
    </true>
    <false>
    <input type="submit" value="Ajouter ce don" />
    </false>
    </check>
</form>
<form name="f2" method="POST" action="{{ 'admin' | alias }}">
    <input type="hidden" name="texte" id="texte" value="{{ @id }}" />
    <input type="submit" value="Voir ce don" />
</form>
<br />
55
56
<check if="{{ @SESSION.error }}"> <message messages="{{ @SESSION.error }}" class="alert alert-danger" /> </check>
<check if="{{ @SESSION.message }}"> <message messages="{{ @SESSION.message }}" class="alert alert-default" /> </check>
57
58
59
60
61
</section>

<script type="text/javascript">
document.forms['f'].nom.focus();
</script>