institutions.tpl 4.41 KB
Newer Older
Naomi Guyer's avatar
Naomi Guyer committed
1
2
{include file="header.tpl"}

3
4
5
6
{if $suspendform}
    <div class="btn-group btn-group-top">{$suspendform|safe}</div>
    <p class="lead">{str tag="suspendinstitutiondescription" section="admin"}</p>
{/if}
Naomi Guyer's avatar
Naomi Guyer committed
7

8
9
10
11
12
13
14
15
16
17

{if $delete_form}
<div class="panel panel-danger mtxl">
    <h2 class="panel-heading">{str tag="deleteinstitution" section="admin"}</h2>
    <div class="panel-body">
        <p><strong>{$institutionname}</strong></p>
        <p>{str tag="deleteinstitutionconfirm" section="admin"}</p>
        {$delete_form|safe}
    </div>
</div>
Naomi Guyer's avatar
Naomi Guyer committed
18
{elseif $institution_form}
19
<div class="panel panel-default">
Naomi Guyer's avatar
Naomi Guyer committed
20
    {if $suspended}
21
22
23
24
25
26
27
28
29
30
        <h2 class="title panel-heading">{$suspended}</h2>
        <div class="panel-body">
            <div class="detail">
            {if $USER->get('admin')}
                <p>{str tag="unsuspendinstitutiondescription_top" section="admin"}</p>
            {else}
                <p>{str tag="unsuspendinstitutiondescription_top_instadmin" section="admin"}</p>
            {/if}
            </div>
            <div>{$suspendform_top|safe}</div>
Naomi Guyer's avatar
Naomi Guyer committed
31
32
        </div>
    {/if}
33

Naomi Guyer's avatar
Naomi Guyer committed
34
    {if $add}
35
    <h2 class="title panel-heading">{str tag="addinstitution" section="admin"}</h2>
Naomi Guyer's avatar
Naomi Guyer committed
36
    {/if}
37
38
    <div class="panel-body">
        {$institution_form|safe}
Naomi Guyer's avatar
Naomi Guyer committed
39
    </div>
40
</div>
Naomi Guyer's avatar
Naomi Guyer committed
41
{else}
Naomi Guyer's avatar
Naomi Guyer committed
42
43
44
45
46

    <div class="btn-group btn-group-top">
        {if $siteadmin}
        <form class="form-as-button pull-left" action="" method="post">
            <button class="submit btn btn-default" type="submit" name="add" value="{str tag="addinstitution" section="admin"}" id="admininstitution_add">
47
                <span class="icon icon-plus icon-lg prs"></span>
Naomi Guyer's avatar
Naomi Guyer committed
48
49
50
51
                <span class="hidden-xs">{str tag="addinstitution" section="admin"}</span>
            </button>
        </form>
        {/if}
52

Naomi Guyer's avatar
Naomi Guyer committed
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
        {if $countinstitutions > 1}

            <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                <span class="icon icon-pencil icon-lg prs"></span>
                <span class="icon icon-ellipsis-h icon-xs"></span>
                <span class="sr-only">{str tag="edit"}</span>
            </button>


            <ul class="dropdown-menu dropdown-menu-right" role="menu">
                <li>
                    <form class="form-as-button pull-left" action="{$WWWROOT}admin/users/institutionusers.php" method="post">
                        <button class="submit btn btn-link" type="submit" name="editmembers" value="{str tag="editmembers" section="admin"}">
                            {str tag="editmembers" section="admin"}
                        </button>
                    </form>
                </li>
                <li>
                    <form class="form-as-button pull-left" action="{$WWWROOT}admin/users/institutionstaff.php" method="post">
                        <button class="submit btn btn-link" type="submit" name="editstaff" value="{str tag="editstaff" section="admin"}">
                            {str tag="editstaff" section="admin"}
                        </button>
                    </form>
                </li>
                <li>
                    <form class="form-as-button pull-left" action="{$WWWROOT}admin/users/institutionadmins.php" method="post">
                          <button class="submit btn btn-link" type="submit" name="editadmins" value="{str tag="editadmins" section="admin"}">
                            {str tag="editadmins" section="admin"}
                        </button>
                    </form>
                </li>
            </ul>
        {/if}
    </div>
 {$searchform|safe}

Naomi Guyer's avatar
Naomi Guyer committed
89
<div class="panel panel-default mtl">
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
    <div class="table-responsive">
        <table id="adminstitutionslist" class="fullwidth table table-striped">
            <thead>
            <tr>
                <th>{str tag="institution"}</th>
                <th class="center">{str tag="Members" section="admin"}</th>
                <th class="center">{str tag="Maximum" section="admin"}</th>
                <th class="center">{str tag="Staff" section="admin"}</th>
                <th class="center">{str tag="Admins" section="admin"}</th>
                <th></th>
                <th><span class="accessible-hidden sr-only">{str tag=edit}</span></th>
            </tr>
            </thead>
            <tbody>
                {$results.tablerows|safe}
            </tbody>
        </table>
    </div>
Naomi Guyer's avatar
Naomi Guyer committed
108
</div>
109
110


Naomi Guyer's avatar
Naomi Guyer committed
111
112
113
<div class="center">
{$results.pagination|safe}
</div>
Naomi Guyer's avatar
Naomi Guyer committed
114
115
116
{/if}

{include file="footer.tpl"}