diff options
Diffstat (limited to 'public/app/views/user')
| -rw-r--r-- | public/app/views/user/panel.php | 13 | ||||
| -rw-r--r-- | public/app/views/user/update_properties.php | 70 |
2 files changed, 71 insertions, 12 deletions
diff --git a/public/app/views/user/panel.php b/public/app/views/user/panel.php index 80f4071..fbfdd0c 100644 --- a/public/app/views/user/panel.php +++ b/public/app/views/user/panel.php @@ -38,18 +38,6 @@ ]); ?> - <!-- content - ** petitions datatable - * change password -> link out (?) - * update properties -> link out (?) - ** admin petitions datatable - * send invitations -> link out (?) - * create member -> link out (?) - - TODO: - switch / case (?) - --> - </div> </div> @@ -110,6 +98,7 @@ </body> + <script src="/assets/js/panel/<?=$content?>.js"></script> <!-- scripts * handle show petition request diff --git a/public/app/views/user/update_properties.php b/public/app/views/user/update_properties.php new file mode 100644 index 0000000..35a1b1e --- /dev/null +++ b/public/app/views/user/update_properties.php @@ -0,0 +1,70 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="utf-8"> + <title><?=SITE_TITLE?> - Ενημέρωση στοιχείων</title> + + <?php // header includes + //////////////////////////////////////////////////////////////////////// + Render::view('components/header_includes'); + ?> +</head> +<body class="office central-form"> + + <div class='container'> + <div class="content max540px"> + + <div class='content-form'> + <form method="post"> + <div> + <h4>Ενημέρωση στοιχείων</h4> + <hr/> + + <?=$form['html']?> + + <br /> + <button type="submit" class="btn btn-primary btn-sm col-12">Ενημέρωση</button> + + </div> + </form> + </div> + + </div> + </div> + +</body> + +<script>// initialize needed global variables + var values = {}; + var empty = ''; +</script> + + +<?php // include select2 supplementary functions + //////////////////////////////////////////////////////////////////////////// + Render::view('js/select2-supplementary'); +?> + +<script> +$(document).ready(function() { + + // intializations from form-definition + //////////////////////////////////////////////////////////////////////////// + + <?=$form['init_js']?> + + + // set known values + //////////////////////////////////////////////////////////////////////////// + + <?=$form['values_js']?> + +}); +</script> + + +<?php // handle form submition + //////////////////////////////////////////////////////////////////////////// + Render::view('js/submit/invitation-form'); +?> +</html> |
