socialprofiles.tpl 1.83 KB
Newer Older
1
2
3
<br />
<div class="text-right">
    <a class="btn btn-success" href="{$WWWROOT}artefact/internal/socialprofile.php">{str tag=newsocialprofile section=artefact.internal}</a>
Naomi Guyer's avatar
Naomi Guyer committed
4
</div>
Pat Kira's avatar
Pat Kira committed
5
6
<div class="table-responsive">
<table id="socialprofilelist" class="tablerenderer fullwidth table table-striped">
Naomi Guyer's avatar
Naomi Guyer committed
7
8
9
10
11
12
    <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
13
                <span class="accessible-hidden sr-only">{str tag=edit}</span>
Naomi Guyer's avatar
Naomi Guyer committed
14
15
16
17
18
19
20
21
22
23
            </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
24
                <a href="{$WWWROOT}artefact/internal/socialprofile.php?id={$row->id}" title="{str tag='edit'}" class="btn btn-default btn-xs">
25
                    <span class="fa fa-pencil"></span>
Pat Kira's avatar
Pat Kira committed
26
27
                    <span class="sr-only">{str tag='edit'}</span>
                </a>
Naomi Guyer's avatar
Naomi Guyer committed
28
                {if $candelete}
Pat Kira's avatar
Pat Kira committed
29
                <a href="{$WWWROOT}artefact/internal/socialprofile.php?id={$row->id}&delete=1" title="{str tag='delete'}" class="btn btn-danger btn-xs">
30
                    <span class="fa fa-trash"></span>
Pat Kira's avatar
Pat Kira committed
31
32
                    <span class="sr-only">{str tag='delete'}</span>
                </a>
Naomi Guyer's avatar
Naomi Guyer committed
33
34
35
36
37
38
                {/if}
            </td>{/if}
        </tr>
        {/foreach}
    </tbody>
</table>
Pat Kira's avatar
Pat Kira committed
39
</div>
Naomi Guyer's avatar
Naomi Guyer committed
40
{$pagination.html|safe}