institutionsresults.tpl 2.86 KB
Newer Older
Naomi Guyer's avatar
Naomi Guyer committed
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
{foreach from=$institutions item=institution}
        <tr class="{cycle values='r0,r1'}">
                <td>
                    {if !$institution->site}<a href="{$WWWROOT}institution/index.php?institution={$institution->name}">{/if}
                        {$institution->displayname}
                    {if !$institution->site}</a>{/if}
                </td>
                <td class="center">
                  {if !$institution->site}
                        <a href="{$WWWROOT}admin/users/institutionusers.php?usertype=members&amp;institution={$institution->name}">{$institution->members}</a>
                  {else}
                        <a href="{$WWWROOT}admin/users/search.php?institution=mahara">{$institution->members}</a>
                  {/if}
                </td>
                <td class="center">{if $institution->maxuseraccounts}{$institution->maxuseraccounts}{/if}</td>
                <td class="center">
                    {if !$institution->site}<a href="{$WWWROOT}admin/users/institutionstaff.php?institution={$institution->name}">{/if}
                        {$institution->staff}
                    {if !$institution->site}</a>{/if}</td>
                <td class="center">
                    {if !$institution->site}<a href="{$WWWROOT}admin/users/institutionadmins.php?institution={$institution->name}">{/if}
                        {$institution->admins}
                    {if !$institution->site}</a>{/if}</td>
                <td class="center">{if $institution->suspended}<span class="suspended">{str tag="suspendedinstitution" section=admin}</span>{/if}</td>
                <td class="controls">
                        <form action="" method="post">
27
28
29
30
31
32
33
                            <input type="hidden" name="i" value="{$institution->name}">
                            <button type="submit" name="edit" value="1" class="btn-link btn btn-xs pull-right" alt="{str(tag=editspecific arg1=$institution->displayname)|escape:html|safe}">
                                <span class="icon icon-cog icon-lg text-default"></span>
                                <span class="sr-only">
                                    {str tag="edit"}
                                </span>
                            </button>
Naomi Guyer's avatar
Naomi Guyer committed
34
                        {if $siteadmin && !$institution->members && $institution->name != 'mahara'}
35
36
37
38
39
40
                            <button type="submit" name="delete" value="1" class="btn-link btn btn-xs pull-right" alt="{str(tag=deletespecific arg1=$institution->displayname)|escape:html|safe}">
                                <span class="icon icon-trash text-danger icon-lg"></span>
                                <span class="sr-only">
                                    {str tag="delete"}
                                </span>
                            </button>
Naomi Guyer's avatar
Naomi Guyer committed
41
                        {/if}
42
                        </form>
Naomi Guyer's avatar
Naomi Guyer committed
43
44
                </td>
        </tr>
45
{/foreach}