diff options
| author | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-05-04 03:02:01 +0300 |
|---|---|---|
| committer | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-05-04 03:02:01 +0300 |
| commit | 63f714d5a78b765c117ebf6bbdfdbd748dd45644 (patch) | |
| tree | 87a4db40e1ff699222ccfdf699a3904d1c665bfc /public/app/views/user/registration.php | |
| parent | 931a93cd7bae092e2752064568cebe407d2bf46e (diff) | |
| download | gyraf1gov-63f714d5a78b765c117ebf6bbdfdbd748dd45644.tar.gz gyraf1gov-63f714d5a78b765c117ebf6bbdfdbd748dd45644.tar.bz2 gyraf1gov-63f714d5a78b765c117ebf6bbdfdbd748dd45644.zip | |
authentication; invitation; activation; base form setup
Diffstat (limited to 'public/app/views/user/registration.php')
| -rw-r--r-- | public/app/views/user/registration.php | 121 |
1 files changed, 0 insertions, 121 deletions
diff --git a/public/app/views/user/registration.php b/public/app/views/user/registration.php deleted file mode 100644 index 9eb0ea3..0000000 --- a/public/app/views/user/registration.php +++ /dev/null @@ -1,121 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> -<head> - <meta charset="utf-8"> - <title><?=SITE_TITLE?> - Εγγραφή</title> - - <?php // header includes - //////////////////////////////////////////////////////////////////////// - Render::view('components/header_includes'); - ?> - - <style> - html,body{ - padding:0; margin:0; - font-size:1.25em; - color: #037; background: #f6f6f6; - line-height:1.2em; - } - h3 { - font-size: 2em; font-style: normal; - font-weight: 400; - color: #05a; - margin: 0; padding: 5px; - opacity: 0.27; - border-bottom: 1px solid #05a; - } - .container { display: flex; height: 100vh; align-items:center; } - .content { position: relative; - max-width: 540px; width: 100%; - margin: auto auto; padding: .5em; - justify-center: center; - font-size: .78em; - } - .content-form { - padding: 1.5em; - background: #eee; - border-radius: 8px; - box-shadow: 1px 5px 7px #7777; - } - .content .info { padding: 1.5em; font-size: .92em; } - .content .info p { padding: .5em; color: #444; font-size: .82em } - .form-label { margin-bottom: .25rem; } - label { font-size: 14px; } - </style> -</head> -<body class="classroom"> - <div class='container'> - <div class="content"> - <div class="info"> - <!--<h4>1o Γυμνάσιο Ραφήνας</h4> - <p>1o Γυμνάσιο Ραφήνας: Πλατφόρμα ηλεκτρονικών αιτήσεων και δημιουργίας εγγράφων</p>--> - </div> - <div class='content-form'> - <form method="post"> - <div> - <p>1o Γυμνάσιο Ραφήνας /<br /> - Πλατφόρμα ηλεκτρονικών αιτήσεων και δημιουργίας διαδικαστικών εγγράφων</p> - - <h2>Πρόσκληση #</h2> - - <?php - $form = JsonToForm::make_a_form(REGISTRATION_FORM); - ?> - - <?=$form['html']?> - - <br /> - <button type="submit" class="btn btn-primary btn-sm col-12">Εγγραφή</button> - - </div> - </form> - </div> - - <div class="info"> - <p>Απαιτείται η συμπλήρωση όλων των στοιχείων προκειμένου να γίνεται γρήγορα η σύνταξη των εγγράφων. Τα στοιχεία σας δεν πρόκειται να δημοσιοποιηθούν και προστατεύονται κατά την εισαγωγή τους με κρυπτογράφιση AES. Παράλληλα η σύνδεση στο site γίνεται με χρήση πιστοποιητικού SSL (RSA 2048 bits).</p> - <p>Αν έχετε ενεργοποιήσει ήδη το λογαρισμό σας <a href="/login">μπορείτε να συνδεθείτε</a>.</p> - - </div> - </div> -</body> - -<script> - // When form is submited - // ------------------------------------------------------------------------- - - $('.content-form form').submit( event => { - event.preventDefault(); - - if ($('input[name=password]').val() != $('input[name=password2]').val()) { - alert('Τα δυο passrods δεν ταιριάζουν!'); - - } else { - - // prepare data to POST - var data = { - first_name: $('input[name=first_name]').val(), - last_name: $('input[name=last_name]').val(), - email: $('input[name=email]').val(), - registration_number: $('input[name=registration_number]').val(), - sector: $('input[name=sector]').val(), - belonging_school: $('input[name=belonging_school]').val(), - working_shcool: $('input[name=working_shcool]').val(), - position_type_id: $('input[name=position_type_id]').val(), - phone: $('input[name=phone]').val(), - password: $('input[name=password]').val() - }; - - // select action url (add or update) - var request = '/account/register'; - - // send POST request - $.post(request, data) - .done(function( data ) { - $('.classroom .content-form').html(data.message) - }); - } - - }); -</script> - -</html> |
