blob: 80f4071e2cc3041a9a20649495245d7dd341126f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
<!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-xs-12 col-sm-3 info">
<?php // menu
//////////////////////////////////////////////////////////////////
Render::view('components/menu', ['is_admin' => $is_admin]);
?>
</div>
<div class="col-xs-12 col-sm-9">
<?php // content sub-section
//////////////////////////////////////////////////////////////////
Render::view('components/'.$content, [
'is_admin' => $is_admin,
'user' => $user
]);
?>
<!-- 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>
</div>
<?php if (($is_admin) && ($content == 'admin_petitions')) : ?>
<!-- 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" style="width: 50%;">
<div class="form-actions">
<div class="col-4">
<button type="button" class="btn btn-default js-modal-close col-sm-12" data-bs-dismiss="modal">Κλείσιμο</button>
</div>
<div class="col-8">
<button class="btn btn-success col-sm-12" type="submit">Καταχώριση</button>
</div>
</div>
</div>
</div><!-- /modal-footer -->
</form><!-- /form -->
</div>
</div>
</div>
<?php endif; ?>
</body>
<!-- scripts
* handle show petition request
if admin:
* modal + give protocol-number
-->
</html>
|