licenses.tpl 3.46 KB
Newer Older
Naomi Guyer's avatar
Naomi Guyer committed
1
{include file="header.tpl"}
2
{if $allowextralicenses}
3
<div class="btn-top-right btn-group btn-group-top">
4
    <a href="license-edit.php?add=add" class="btn btn-default">
5
        <span class="icon icon-plus left" role="presentation" aria-hidden="true"></span>
6
7
8
9
        {str tag=addsitelicense section=admin}
    </a>
</div>
{/if}
Naomi Guyer's avatar
Naomi Guyer committed
10
<div class="row">
11
    <div class="col-md-12">
12
        <p class='lead'>{str tag=sitelicensesdesc section=admin}</p>
Naomi Guyer's avatar
Naomi Guyer committed
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
        {if !$enabled}
        <p class="alert alert-warning">{str tag=sitelicensesdisablednote section=admin args=$WWWROOT}</p>
        {/if}
        <div class="panel panel-default">
            <div class="panel-body">
                <form id="sitelicenses" action="" method="post" name="sitelicenses">
                {if $errors}
                    {foreach from=$errors item=e}
                        <div class="errmsg">{$e}</div>
                    {/foreach}
                {/if}
                <table class="fullwidth table table-striped">
                    <thead>
                    <tr>
                        <th>{str tag=licenseiconlabel section=admin}</th>
                        <th>{str tag=licensedisplaynamelabel section=admin}</th>
                        <th>{str tag=licenseshortnamelabel section=admin}</th>
                        <th>{str tag=licensenamelabel section=admin}</th>
                        <th>&nbsp;</th>
                    </tr>
                    </thead>
                    <tbody>
                    {foreach from=$licenses key=i item=l}
36
                        <tr>
Naomi Guyer's avatar
Naomi Guyer committed
37
38
39
40
                            <td>{if $l->icon}<img src="{license_icon_url($l->icon)}" alt="{$l->displayname}">{/if}</td>
                            <td><a href="{$l->name}">{$l->displayname}</a></td>
                            <td>{$l->shortname}</td>
                            <td><a href="{$l->name}">{$l->name}</a></td>
Pat Kira's avatar
Pat Kira committed
41
                            <td class="control-buttons">
42
43
                                <div class="btn-group">
                                    <a href="license-edit.php?edit={$l->name|escape:url}" title="{str tag=edit}" class="btn btn-default btn-xs">
44
                                        <span class="icon icon-pencil icon-lg" role="presentation" aria-hidden="true"></span>
45
46
47
                                        <span class="sr-only">{str(tag=editspecific arg1=$l->shortname)|escape:html|safe}</span>
                                    </a>
                                    <button class="btn btn-default btn-xs" type="submit" title="{str tag=delete}" name="license_delete[{$l->name}]" alt="{str(tag=deletespecific arg1=$l->shortname)|escape:html|safe}">
48
                                        <span class="icon icon-trash text-danger icon-lg" role="presentation" aria-hidden="true"></span>
49
50
51
                                        <span class="sr-only">{str tag=delete}</span>
                                    </button>
                                </div>
Naomi Guyer's avatar
Naomi Guyer committed
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
                            </td>
                        </tr>
                    {/foreach}
                    </tbody>
                </table>
                {if $extralicenses}
                    <p>{str tag=extralicensesdescription section=admin}</p>
                    <ul>
                    {foreach from=$extralicenses item=l}
                        <li>{$l}</li>
                    {/foreach}
                    </ul>
                {/if}
                </form>
            </div>
        </div>
    </div>
</div>
Naomi Guyer's avatar
Naomi Guyer committed
70
{include file="footer.tpl"}