summaryrefslogtreecommitdiff
path: root/public/app/views/user/registration.php
diff options
context:
space:
mode:
authorGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-05-01 04:33:06 +0300
committerGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-05-01 04:33:06 +0300
commit2b4ed611e7e001ad8ea93ef3e8cdce35bc56dc07 (patch)
tree0da2582de2cef450f6366a9cff28e47353eddb2e /public/app/views/user/registration.php
parent77b3a3ebf23598b82d035ead6df43b2c2ca885f4 (diff)
downloadgyraf1gov-2b4ed611e7e001ad8ea93ef3e8cdce35bc56dc07.tar.gz
gyraf1gov-2b4ed611e7e001ad8ea93ef3e8cdce35bc56dc07.tar.bz2
gyraf1gov-2b4ed611e7e001ad8ea93ef3e8cdce35bc56dc07.zip
form designer; setup main forms of the application
Diffstat (limited to 'public/app/views/user/registration.php')
-rw-r--r--public/app/views/user/registration.php67
1 files changed, 34 insertions, 33 deletions
diff --git a/public/app/views/user/registration.php b/public/app/views/user/registration.php
index 57fbb8f..9eb0ea3 100644
--- a/public/app/views/user/registration.php
+++ b/public/app/views/user/registration.php
@@ -13,7 +13,7 @@
html,body{
padding:0; margin:0;
font-size:1.25em;
- color: #037; background: #eee;
+ color: #037; background: #f6f6f6;
line-height:1.2em;
}
h3 {
@@ -26,60 +26,55 @@
}
.container { display: flex; height: 100vh; align-items:center; }
.content { position: relative;
- max-width:480px; width: 100%;
+ max-width: 540px; width: 100%;
margin: auto auto; padding: .5em;
justify-center: center;
- font-size: .9em;
+ font-size: .78em;
}
.content-form {
padding: 1.5em;
- background: #e3e3e3;
+ background: #eee;
border-radius: 8px;
box-shadow: 1px 5px 7px #7777;
}
.content .info { padding: 1.5em; font-size: .92em; }
- .content .info p { padding: .5em; }
+ .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>Classroom: Εγγραφή</h4>
+ <!--<h4>1o Γυμνάσιο Ραφήνας</h4>
+ <p>1o Γυμνάσιο Ραφήνας: Πλατφόρμα ηλεκτρονικών αιτήσεων και δημιουργίας εγγράφων</p>-->
</div>
<div class='content-form'>
<form method="post">
<div>
- <div class="mb-3">
- <label for="name" class="form-label">Όνομα</label>
- <input type="text" class="form-control form-control-sm" name="name" required>
- </div>
- <div class="mb-3">
- <label for="surname" class="form-label">Επίθετο</label>
- <input type="text" class="form-control form-control-sm" name="surname" required>
- </div>
- <div class="mb-3">
- <label for="exampleInputEmail1" class="form-label">Email</label>
- <input type="email" class="form-control form-control-sm" name="email" aria-describedby="emailHelp" rerquired>
- </div>
- <div class="mb-3">
- <label for="exampleInputPassword1" class="form-label">Κωδικός Πρόσβασης</label>
- <input type="password" class="form-control form-control-sm" name="password" required>
- </div>
- <div class="mb-3">
- <label for="exampleInputPassword2" class="form-label">Επιβεβαίωση Κωδικού Πρόσβασης</label>
- <input type="password" class="form-control form-control-sm" name="password2" required>
- </div>
- <br />
- <button type="submit" class="btn btn-primary btn-sm col-12">Εγγραφή</button>
+ <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>Αν έχετε ήδη λογαρισμό <a href="/login">συνδεθείτε</a>.</p>
- <p>Σε κάθε περίπτωση μπορείτε να επιστρέψετε στην <a href="/">αρχική σελίδα</a>.</p>
- </div>
+ <p>Απαιτείται η συμπλήρωση όλων των στοιχείων προκειμένου να γίνεται γρήγορα η σύνταξη των εγγράφων. Τα στοιχεία σας δεν πρόκειται να δημοσιοποιηθούν και προστατεύονται κατά την εισαγωγή τους με κρυπτογράφιση AES. Παράλληλα η σύνδεση στο site γίνεται με χρήση πιστοποιητικού SSL (RSA 2048 bits).</p>
+ <p>Αν έχετε ενεργοποιήσει ήδη το λογαρισμό σας <a href="/login">μπορείτε να συνδεθείτε</a>.</p>
+
</div>
</div>
</body>
@@ -98,9 +93,15 @@
// prepare data to POST
var data = {
- name: $('input[name=name]').val(),
- surname: $('input[name=surname]').val(),
+ 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()
};