summaryrefslogtreecommitdiff
path: root/public/app/views/user/panel.php
blob: 01a37774c4c6b94ccfa771be71da0e6cf9ce020a (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
<!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>

</body>

<!-- scripts 
  * handle show petition request

  if admin:
  * modal + give protocol-number
-->

</html>