socialprofiles.tpl 1.84 KB
Newer Older
Naomi Guyer's avatar
Naomi Guyer committed
1
2
3
<br /><div class="rbuttons">
    <a class="btn" href="{$WWWROOT}artefact/internal/socialprofile.php">{str tag=newsocialprofile section=artefact.internal}</a>
</div>
Pat Kira's avatar
Pat Kira committed
4
5
<div class="table-responsive">
<table id="socialprofilelist" class="tablerenderer fullwidth table table-striped">
Naomi Guyer's avatar
Naomi Guyer committed
6
7
8
9
10
11
    <thead>
        <tr>
            <th class="icons"></th>
            <th>{str tag='service' section='artefact.internal'}</th>
            <th>{str tag='profileurl' section='artefact.internal'}</th>
            {if $controls}<th class="btns2">
Naomi Guyer's avatar
Naomi Guyer committed
12
                <span class="accessible-hidden sr-only">{str tag=edit}</span>
Naomi Guyer's avatar
Naomi Guyer committed
13
14
15
16
17
18
19
20
21
22
            </th>{/if}
        </tr>
    </thead>
    <tbody>
        {foreach from=$rows item=row}
        <tr class="{cycle values='r0,r1'}">
            <td class="center"><img src="{$row->icon}" alt="{$row->description}"></td>
            <td><span>{$row->description}</span></td>
            <td>{if $row->link}<a href="{$row->link}" title="{$row->link}" target="_blank" class="socialprofile">{/if}{$row->title}{if $row->link}</a>{/if}</td>
            {if $controls}<td class="right buttonscell btns2">
Pat Kira's avatar
Pat Kira committed
23
24
25
26
                <a href="{$WWWROOT}artefact/internal/socialprofile.php?id={$row->id}" title="{str tag='edit'}" class="btn btn-default btn-xs">
                    <span class="glyphicon glyphicon-pencil"></span>
                    <span class="sr-only">{str tag='edit'}</span>
                </a>
Naomi Guyer's avatar
Naomi Guyer committed
27
                {if $candelete}
Pat Kira's avatar
Pat Kira committed
28
29
30
31
                <a href="{$WWWROOT}artefact/internal/socialprofile.php?id={$row->id}&delete=1" title="{str tag='delete'}" class="btn btn-danger btn-xs">
                    <span class="glyphicon glyphicon-trash"></span>
                    <span class="sr-only">{str tag='delete'}</span>
                </a>
Naomi Guyer's avatar
Naomi Guyer committed
32
33
34
35
36
37
                {/if}
            </td>{/if}
        </tr>
        {/foreach}
    </tbody>
</table>
Pat Kira's avatar
Pat Kira committed
38
</div>
Naomi Guyer's avatar
Naomi Guyer committed
39
{$pagination.html|safe}