File indexing completed on 2024-12-29 05:24:37

0001 <?php
0002 /**
0003  *  ocs-webserver
0004  *
0005  *  Copyright 2016 by pling GmbH.
0006  *
0007  *    This file is part of ocs-webserver.
0008  *
0009  *    This program is free software: you can redistribute it and/or modify
0010  *    it under the terms of the GNU Affero General Public License as
0011  *    published by the Free Software Foundation, either version 3 of the
0012  *    License, or (at your option) any later version.
0013  *
0014  *    This program is distributed in the hope that it will be useful,
0015  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
0016  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0017  *    GNU Affero General Public License for more details.
0018  *
0019  *    You should have received a copy of the GNU Affero General Public License
0020  *    along with this program.  If not, see <http://www.gnu.org/licenses/>.
0021  **/
0022 ?>
0023 
0024 <style>
0025 main#reg-page section#register-wrap {
0026       z-index: 1000;
0027 }
0028 @media (max-width:767px) {
0029   main#reg-page section#register-wrap {
0030     position: absolute;
0031     top: 150px;
0032     left: 5%;
0033     margin-left: 0;
0034     width: 90%;
0035   }
0036 
0037   main#reg-page section#register-wrap #register h3 {
0038     margin: 0 0 30px 0;
0039   }
0040 
0041   main#reg-page section#register-wrap #register #register-box {
0042     width: 100%;
0043   }
0044   main#reg-page section#register-wrap #register #register-box #register-form-box {
0045     width: 100%;
0046   }
0047   main#reg-page section#register-wrap #register #register-box #register-form-box ul.errors {
0048     text-align: left;
0049     margin: 0;
0050     padding-left: 20px;
0051     font-size: 12px;
0052   }
0053   main#reg-page section#register-wrap #register #register-box #register-form-box .form-group {
0054     margin-bottom: 5px;
0055   }
0056   main#reg-page section#register-wrap button#login {
0057     margin-top: 8px;
0058     width: 100%;
0059     margin-bottom: 10px;
0060   }
0061   main#reg-page section#register-wrap #register #social-register {
0062     float: right;
0063     padding: 0;
0064     width: 100%;
0065   }
0066   main#reg-page section#register-wrap #register #social-register #social-login-elements {
0067     margin-bottom: 0;
0068   }
0069 }
0070 </style>
0071 
0072 <div id="register-form-box" class="well">
0073     <h3><?= $this->translate('Join the community') ?></h3>
0074 
0075     <div id="error" class="center text-error help-block">
0076         <?php if ($this->error && isset($this->errorText)): ?>
0077             <p class="errors">
0078                 <?= $this->translate($this->errorText) ?>
0079             </p>
0080             <p class="errors">
0081                 <?php echo $this->formErrors(); ?>
0082             </p>
0083 
0084         <?php endif; ?>
0085     </div>
0086     <form class="standard-form row-fluid center" id="<?= $this->formRegister->getAttrib('id'); ?>"
0087           action="<?= $this->formRegister->getAction(); ?>"
0088           method="<?= $this->formRegister->getMethod(); ?>"
0089           data-target="#register-box"
0090           data-load-state="#<?= $this->formRegister->login->getId() ?>"
0091     >
0092         
0093         <input type="hidden" name="ipv4" id="ipv4" value="">
0094         <input type="hidden" name="ipv6" id="ipv6" value=""> 
0095         
0096         <?= $this->formRegister->csrfRegister ?>
0097         <div class="form-group has-feedback"><?= $this->formRegister->username ?>
0098             <ul class="errors" style="visibility: hidden;"><li></li></ul>
0099         </div>
0100         <div class="form-group has-feedback"><?= $this->formRegister->mail ?>
0101             <ul class="errors" style="visibility: hidden;"><li></li></ul>
0102         </div>
0103         <div class="form-group has-feedback"><?= $this->formRegister->password1 ?>
0104             <ul class="errors" style="visibility: hidden;"><li></li></ul>
0105         </div>
0106         <div class="form-group has-feedback"><?= $this->formRegister->password2 ?>
0107             <ul class="errors" style="visibility: hidden;"><li></li></ul>
0108         </div>
0109         <div class="form-group has-feedback"><?= $this->formRegister->grecaptcharesponse?></div>
0110 
0111         <button name="<?= $this->formRegister->login->getName() ?>" id="<?= $this->formRegister->login->getId() ?>" type="submit" class="btn btn-min-width btn-native"><?= $this->formRegister->login->getLabel() ?> <i id="load-state" class="fa fa-spinner fa-pulse hidden" aria-hidden="true"></i></button>
0112     </form>
0113 
0114     <div class="small light lightgrey center">
0115         By clicking register you agree to the <br/>
0116         <a href="/content/terms"
0117            class="lightblue"><?= $this->translate('Terms &amp; Conditions') ?></a> <?= $this->translate('and') ?> <a
0118             href="/content/privacy" class="lightblue"><?= $this->translate('privacy policy') ?></a>
0119     </div>
0120 </div>