summaryrefslogtreecommitdiff
path: root/public/app/views/templates
diff options
context:
space:
mode:
Diffstat (limited to 'public/app/views/templates')
-rw-r--r--public/app/views/templates/admin_users.php134
-rw-r--r--public/app/views/templates/application.php2
-rw-r--r--public/app/views/templates/create_pdf.php2
-rw-r--r--public/app/views/templates/invite.php8
-rw-r--r--public/app/views/templates/penalty.php4
5 files changed, 144 insertions, 6 deletions
diff --git a/public/app/views/templates/admin_users.php b/public/app/views/templates/admin_users.php
new file mode 100644
index 0000000..baa2e58
--- /dev/null
+++ b/public/app/views/templates/admin_users.php
@@ -0,0 +1,134 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="utf-8">
+ <title><?=SITE_TITLE?> - Control Panel</title>
+
+ <?php // header includes
+ ////////////////////////////////////////////////////////////////////////
+ Render::view('components/header_includes');
+ ?>
+<style>
+:root { /* login-form overides */
+ --form-content-font-size: 1rem;
+ --form-input-height: 34px;
+ --select2-arrow-top: 1px;
+}
+</style>
+</head>
+<body class="office central-form left-menu">
+
+ <div class='container'>
+ <div class='content row'>
+
+ <div class="col-sm-12">
+
+<div class="manage">
+ <!-- title bar -->
+ <div class="title-bar">
+ <div class="row">
+ <h5 class="col-md-10">Διαχείριση Χρηστών</h5>
+ <div class="col-md-2">
+ <a type="button" class="btn btn-sm btn-back2panel pull-right" href="/panel">
+ Επιστροφή
+ </a>
+ </div>
+ </div>
+
+ </div>
+
+
+ <div class="row">
+ <div class="col-md-12">
+
+ <div id="petitions">
+
+ <table id="dt-petitions" class="table table-responsive dt-table" style="width:100%">
+ <thead>
+ <th class="dt-last_name">Επίθετο</th>
+ <th class="dt-first_name">Όνομα</th>
+ <th class="dt-email">email</th>
+ <th class="dt-sector">Τομέας</th>
+ <th class="dt-status">Status</th>
+ <th class="dt-actions"></th>
+ </thead>
+ </table>
+
+ </div>
+
+ </div>
+ </div>
+
+</div><!-- /manage -->
+
+ </div>
+
+ </div>
+ </div>
+
+
+
+
+ <!-- MODAL for set protocol number -->
+ <div class="modal fade" id="managePetition" aria-labelledby="myModalLabel" aria-hidden="true">
+ <div class="modal-dialog modal-lg" role="document">
+ <div class="modal-content">
+
+ <form method="post" action="">
+
+ <div class="modal-header">
+ <h4 class="modal-title" id="myModalLabel">Ενημέρωση αριθμού πρωτόκολλου</h4>
+ <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
+ </div><!-- /modal-header -->
+
+ <!-- modal-body -->
+ <div class="modal-body">
+
+ <div class="row form-group">
+ <label class="control-label col-sm-12" for="protocol">Αριθμός Πρψτοκόλλου</label>
+ <div class="col-sm-12">
+ <input class="form-control form-control-sm" type="text" name="protocol" value="" required="">
+ </div>
+ </div>
+
+ <div class="row form-group"><!-- hiddens -->
+ <input type="hidden" name="id" value="0"><!-- petition-id -->
+ <input type="hidden" name="signature" value=""><!-- signature -->
+ </div>
+
+ </div><!-- /modal body -->
+
+ <div class="modal-footer">
+ <div class="row form-actions" style="width: 50%;">
+
+ <div class="col-sm-4">
+ <button type="button" class="btn btn-default js-modal-close col-12" data-bs-dismiss="modal">Κλείσιμο</button>
+ </div>
+ <div class="col-sm-8">
+ <button class="btn btn-primary col-12" type="submit">Καταχώριση</button>
+ </div>
+
+ </div>
+ </div><!-- /modal-footer -->
+
+ </form><!-- /form -->
+
+ </div>
+ </div>
+ </div>
+
+ </body>
+
+<script src="/assets/js/panel/admin_users.js"></script>
+
+ <!-- scripts
+ * handle show petition request
+
+ if admin:
+ * modal + give protocol-number
+ -->
+<?php // credits
+ //////////////////////////////////////////////////////////////////////////////
+ Render::view('js/credits');
+?>
+</html>
diff --git a/public/app/views/templates/application.php b/public/app/views/templates/application.php
index 35b1435..72c9251 100644
--- a/public/app/views/templates/application.php
+++ b/public/app/views/templates/application.php
@@ -6,7 +6,7 @@
<?php // header includes
////////////////////////////////////////////////////////////////////////
- Render::view('components/header_includes');
+ Render::view('components/header_includes', [ 'no_dataTables' => true ]);
?>
</head>
diff --git a/public/app/views/templates/create_pdf.php b/public/app/views/templates/create_pdf.php
index 19b2894..6b5c164 100644
--- a/public/app/views/templates/create_pdf.php
+++ b/public/app/views/templates/create_pdf.php
@@ -58,7 +58,7 @@ pdfMake.fonts = {
// bolditalics: 'https://example.com/fonts/fontFile4.ttf'
},
FiraMono: {
- normal: '<?=SITE_URL?>/assets/fonts/FiraMono-Regular.ttf',
+ normal: '<?=SITE_URL?>/assets/fonts/FiraMono-Regular.ttf'
}
}
diff --git a/public/app/views/templates/invite.php b/public/app/views/templates/invite.php
index d7947da..ab0f12c 100644
--- a/public/app/views/templates/invite.php
+++ b/public/app/views/templates/invite.php
@@ -59,7 +59,7 @@
</form>
</div>
- <div class="info">
+ <div class="info clear-read">
<p>
Χρησιμοποιήστε τη φόρμα για να προσκαλέσετε νέους χρήστες
ή για reset ενός account.
@@ -120,7 +120,11 @@ $(document).ready(function() {
window.location.href = '/panel';
} else {
- alert('Τα στοιχεία πρόσβασης που δώσατε είναι λάθος. Παρακαλώ προσπαθήστε ξανά.');
+ alert([
+ 'Κατάσταση αποστολής προσλήσεων:\\n\n',
+ data.sent,
+ 'Υπήρξαν προβλήματα στην αποστολή κάποιων προσκλήσεων.'
+ ].join(''));
}
});
diff --git a/public/app/views/templates/penalty.php b/public/app/views/templates/penalty.php
index cad9221..232e8a8 100644
--- a/public/app/views/templates/penalty.php
+++ b/public/app/views/templates/penalty.php
@@ -6,7 +6,7 @@
<?php // header includes
////////////////////////////////////////////////////////////////////////
- Render::view('components/header_includes');
+ Render::view('components/header_includes', [ 'no_dataTables' => true ]);
?>
</head>
@@ -93,7 +93,7 @@
-<!-- DEPRICATED:
+<!-- DEPRECATED:
<script>
$(document).ready(function() {