]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - html/html/captive/template.html
captive: Verify that the user actually accepted the terms and conditions
[ipfire-2.x.git] / html / html / captive / template.html
index cf0f54c707119a67fd716e31ff1e25cdb34e1e4e..6e39d87dbf18d545d6f51de57d9beda0c61e01e3 100644 (file)
                                                </div>
 
                                                <div class="box-block">
-                                                       <TMPL_IF NAME="VOUCHER">
-                                                               <h4><TMPL_VAR NAME="L_HEADING_VOUCHER"></h4>
-                                                       <TMPL_ELSE>
-                                                               <h4><TMPL_VAR NAME="L_HEADING_TAC"></h4>
-                                                       </TMPL_IF>
+                                                       <h4><TMPL_VAR NAME="L_HEADING"></h4>
 
                                                        <form action="" method="POST">
                                                                <input type="hidden" name="ACTION" value="SUBMIT">
                                                                <input type="hidden" name="url" value="<TMPL_VAR NAME="URL">">
 
-                                                               <TMPL_IF NAME="VOUCHER">
-                                                                               <input class="form-text" type="text" name="VOUCHER">
+                                                               <TMPL_IF NAME="COUPON">
+                                                                               <input class="form-text <TMPL_IF NAME="ERROR">form-error</TMPL_IF>" type="text" name="COUPON">
                                                                                <input class="form-submit" type="submit"
                                                                                        value="<TMPL_VAR NAME="L_ACTIVATE">">
                                                                <TMPL_ELSE>
                                                                                        value="<TMPL_VAR NAME="L_GAIN_ACCESS">">
                                                                </TMPL_IF>
 
-                                                               <TMPL_IF NAME="TAC">
+                                                               <TMPL_IF NAME="ERROR">
+                                                                       <div class="text-error">
+                                                                               <TMPL_VAR NAME="ERROR">
+                                                                       </div>
+                                                               </TMPL_IF>
+
+                                                               <TMPL_IF NAME="TERMS">
                                                                        <div class="checkbox">
                                                                                <label>
-                                                                                       <input class="form-checkbox" type="checkbox">
-                                                                                       <TMPL_VAR NAME="L_AGREE_TAC">
+                                                                                       <input class="form-checkbox <TMPL_IF NAME="ERROR">error</TMPL_IF>" type="checkbox" name="TERMS">
+                                                                                       <TMPL_VAR NAME="L_AGREE_TERMS">
                                                                                </label>
                                                                        </div>
                                                                </TMPL_IF>
                                                        </form>
                                                </div>
 
-                                               <TMPL_IF NAME="TAC">
-                                                       <TMPL_VAR NAME="TAC">
+                                               <TMPL_IF NAME="TERMS">
+                                                       <TMPL_VAR NAME="TERMS">
                                                </TMPL_IF>
                                        </div>
                                </div>