ElectionInvitation.html 2.16 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
<fieldset class="form-section">
    <div class="form-group">
        <label>
            <f:translate key="model.elector.field.electionInvitations">Election Invitations</f:translate>
        </label>
        <div class="form-control-wrap" style="max-width: 480px">
            <f:if condition="{elector.electionInvitations}">
                <f:then>
                    <table class="table">
                        <thead>
                        <th>Election Circular</th>
                        <th>Sent</th>
                        <th>Voted</th>
                        <th></th>
                        </thead>
                        <tbody>
                        <f:for each="{elector.electionInvitations}" as="electionInvitation">
                            <tr>
                                <td>{electionInvitation.electionCircular.subject}</td>
                                <td>{f:if(condition:'{electionInvitation.success}',then:'yes',else:'no')}</td>
                                <td>{f:if(condition:'{electionInvitation.voted}',then:'yes',else:'no')}</td>
                                <td>
                                    <f:if condition="{electionInvitation.voted}">
                                        <f:then></f:then>
                                        <f:else>
                                            <f:link.action action="resendElectionInvitation" arguments="{elector:elector, electionInvitation:electionInvitation}" class="btn btn-default">
                                                <core:icon identifier="actions-move-right"/> resend election invitation
                                            </f:link.action>
                                        </f:else>
                                    </f:if>
                                </td>
                            </tr>
                        </f:for>
                        </tbody>
                    </table>
                </f:then>
                <f:else>
                    <f:translate key="model.elector.field.electionInvitations_empty">There are no election invitations</f:translate>
                </f:else>
            </f:if>
        </div>
    </div>
</fieldset>