mail.tpl 6.15 KB
Newer Older
1
2
3
4
5
6
7
8
<TMPL_INCLUDE NAME="header.tpl">

<div id="mailcontent" class="container">

  <TMPL_IF NAME="AUTH_ERROR">
  <div class="message message-<TMPL_VAR NAME="AUTH_ERROR_TYPE"> alert"><TMPL_VAR NAME="AUTH_ERROR"></div>
  </TMPL_IF>

9
10
  <div class="panel panel-default">

11
12
13
  <TMPL_IF NAME="DISPLAY_FORM">

    <form action="#" method="post" class="login" role="form">
14
    <div class="form">
15

16
    <input type="hidden" name="skin" value="<TMPL_VAR NAME="SKIN">" />
17
18
19
    <TMPL_IF NAME="CHOICE_VALUE">
      <input type="hidden" id="authKey" name="<TMPL_VAR NAME="CHOICE_PARAM">" value="<TMPL_VAR NAME="CHOICE_VALUE">" />
    </TMPL_IF>
20

21
22
    <h3><lang en="Forgot your password?" fr="Mot de passe oubli&eacute; ?"/></h3>

23
    <div class="form-group input-group">
24
      <span class="input-group-addon"><i class="glyphicon glyphicon-envelope"></i> </span>
25
      <input name="mail" type="text" value="<TMPL_VAR NAME="MAIL">" class="form-control" placeholder="<lang en="Mail" fr="Adresse mail"/>" required />
26
27
28
29
30
31
    </div>

    <TMPL_IF NAME=CAPTCHA_IMG>
    <div class="form-group">
      <img src="<TMPL_VAR NAME=CAPTCHA_IMG>" class="img-thumbnail" />
    </div>
32
    <div class="form-group input-group">
33
      <span class="input-group-addon"><i class="glyphicon glyphicon-eye-open"></i> </span>
34
      <input type="text" name="captcha_user_code" size="<TMPL_VAR NAME=CAPTCHA_SIZE>" class="form-control" placeholder="Captcha" required />
35
    </div>
36
    <input type="hidden" name="captcha_code" value="<TMPL_VAR NAME=CAPTCHA_CODE>" />
37
38
    </TMPL_IF>

39
    <button type="submit" class="btn btn-success" >
40
41
42
      <span class="glyphicon glyphicon-send"></span>
      <lang en="Send me a new password" fr="Envoyez-moi un nouveau mot de passe" />
    </button>
43
44
    
    </div>
45
46
47
48
49
    </form>
  </TMPL_IF>

  <TMPL_IF NAME="DISPLAY_RESEND_FORM">

50
    <form action="#" method="post" class="login" role="form">
51
    <div class="form">
52

53
      <input type="hidden" name="skin" value="<TMPL_VAR NAME="SKIN">" />
54
55
56
57
58
59
60
61
62
      <TMPL_IF NAME="CHOICE_VALUE">
        <input type="hidden" id="authKey" name="<TMPL_VAR NAME="CHOICE_PARAM">" value="<TMPL_VAR NAME="CHOICE_VALUE">" />
      </TMPL_IF>
      <TMPL_IF NAME="MAIL">
        <input type="hidden" value="<TMPL_VAR NAME="MAIL">" name="mail">
      </TMPL_IF>

      <h3><lang en="Resend confirmation mail?" fr="Renvoyer le mail de confirmation ?"/></h3>

63
      <p class="alert alert-info">
64
        <lang en="A password reset request was already issued on " fr="Une demande de r&eacute;initialisation de mot de passe a d&eacute;j&agrave; &eacute;t&eacute; faite le " />
65
        <TMPL_VAR NAME="STARTMAILDATE">.
66
        <lang en="Do you want the confirmation mail to be resent?" fr="Voulez-vous que le message de confirmation soit renvoy&eacute; ?" />
67
68
      </p>

69
70
71
72
73
74
75
76
77

      <div class="checkbox">
        <label for="resendconfirmation">
          <input id="resendconfirmation" type="checkbox" name="resendconfirmation">
          <lang en="Yes, resend the mail" fr="Oui, renvoyer le mail"/>
        </label>
      </div>

      <div class="form-group">
78
        <button type="submit" class="btn btn-success">
79
80
81
          <lang en="Submit" fr="Valider" />
        </button>
      </div>
82

83
    </div>
84
85
86
87
88
    </form>
  </TMPL_IF>

  <TMPL_IF NAME="DISPLAY_PASSWORD_FORM">
    <div id="password">
89
      <form action="#" method="post" class="password" role="form">
90
      <div class="form">
91

92
        <input type="hidden" name="skin" value="<TMPL_VAR NAME="SKIN">" />
93
94
95
        <TMPL_IF NAME="CHOICE_VALUE">
          <input type="hidden" id="authKey" name="<TMPL_VAR NAME="CHOICE_PARAM">" value="<TMPL_VAR NAME="CHOICE_VALUE">" />
        </TMPL_IF>
96

97
98
99
        <TMPL_IF NAME="MAIL_TOKEN">
          <input type="hidden" id="mail_token" name="mail_token" value="<TMPL_VAR NAME="MAIL_TOKEN">" />
        </TMPL_IF>
100

101
        <h3><lang en="Change your password" fr="Changez votre mot de passe" /></h3>
102

103
        <div class="form-group input-group">
104
          <span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i> </span>
105
          <input name="newpassword" type="password" class="form-control" placeholder="<lang en="New password" fr="Nouveau mot de passe" />" />
106
107
        </div>

108
        <div class="form-group input-group">
109
          <span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i> </span>
110
          <input name="confirmpassword" type="password" class="form-control" placeholder="<lang en="Confirm password" fr="Confirmez le mot de passe" />" />
111
112
113
114
        </div>

        <div class="checkbox">
          <label for="reset">
115
            <input id="reset" type="checkbox" name="reset" />
116
            <lang en="Generate the password automatically" fr="G&eacute;n&eacute;rer le mot de passe automatiquement" />
117
118
119
120
          </label>
        </div>

        <div class="form-group">
121
          <button type="submit" class="btn btn-success">
122
123
124
125
            <lang en="Submit" fr="Soumettre" />
          </button>
        </div>

126
      </div>
127
128
129
130
131
      </form>
    </div>
  </TMPL_IF>

  <TMPL_IF NAME="DISPLAY_CONFIRMMAILSENT">
132
    <form action="#" method="post" class="login" role="form">
133
    <div class="form">
134
      <h3>
135
        <lang en="A message has been sent to your mail address." fr="Un message a &eacute;t&eacute; envoy&eacute; &agrave; votre adresse mail." />
136
      </h3>
137
      <p class="alert alert-info">
138
        <lang en="This message contains a link to reset your password, this link is valid until " fr="Ce message contient un lien pour r&eacute;initialiser votre mot de passe, ce lien est valide jusqu'au " />
139
140
        <TMPL_VAR NAME="EXPMAILDATE">.
      </p>
141
    </div>
142
143
144
145
    </form>
  </TMPL_IF>

  <TMPL_IF NAME="DISPLAY_MAILSENT">
146
    <form action="#" method="post" class="login" role="form">
147
    <div class="form">
148
      <h3>
149
        <lang en="Your new password has been sent to your mail address." fr="Votre nouveau mot de passe a &eacute;t&eacute; envoy&eacute; &agrave; votre adresse mail." />
150
      </h3>
151
    </div>
152
153
154
    </form>
  </TMPL_IF>

155
156
  </div>

157
  <div class="buttons">
158
    <a href="<TMPL_VAR NAME="PORTAL_URL">?skin=<TMPL_VAR NAME="SKIN">" class="btn btn-primary" role="button">
159
      <span class="glyphicon glyphicon-home"></span>
160
161
162
163
164
165
166
      <lang en="Go back to portal" fr="Retourner au portail" />
    </a>
  </div>

</div>

<TMPL_INCLUDE NAME="footer.tpl">