indexin.tpl 3.8 KB
Newer Older
1 2 3 4 5 6
{include file="header.tpl"}
<a title="{str section='module.multirecipientnotification' tag='composemessagedesc'}" class="btn-with-heading btn-lg btn btn-default" href="{$WWWROOT}module/multirecipientnotification/sendmessage.php">
    <span class="icon icon-edit icon-lg left" role="presentation" aria-hidden="true"></span>
    {str section='module.multirecipientnotification' tag='composemessage'}
</a>
<div id="notifications-page-header"/></div>
7
{include file="module:multirecipientnotification:indexsearch.tpl" searchdata=$searchdata boxtype=inbox}
8 9
{if $activitylist.count > 0}

10
    <div id="notifications" class="notification-parent view-container" data-requesturl="indexin.json.php">
11

12
        <div class="btn-group bulk-actions" role="group">
13 14 15 16 17
            <label class="btn btn-default" for="selectall">
                <input type="checkbox" name="selectall" id="selectall" data-togglecheckbox="tocheck">
                <span class="sr-only">{str section='activity' tag='selectall'}</span>
            </label>

18
            <button type="button" class="btn btn-default" data-toggle="dropdown" aria-expanded="false">
19
                {str section='admin' tag='bulkactions'}
20 21
            </button>
            <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
                <span class="caret"></span>
            </button>

            <div class="activity-buttons dropdown-menu" role="menu">
                <button class="btn btn-link" data-action="markasread">
                    {str tag='markasread' section='activity'}
                </button>
                <button class="btn btn-link btn-link-danger" data-action="deleteselected">
                    {str tag='delete'}
                </button>
                <a class="btn btn-link btn-link-danger" href="#delete_all_notifications_submit" data-triggersubmit="delete_all_notifications_submit">
                    {str section='activity' tag='deleteallnotifications'}
                </a>
            </div>
        </div>
37
        <form method="post" class="form-inline form-select-filter pieform form-as-button">
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
            <div class="form-group">
                <label class="sr-only" for="notifications_type">{str section='activity' tag='type'}:</label>
                <div class="input-group select-group">
                    <div class="input-group-addon" id="icon-addon-filter">
                        <span class="icon icon-filter" role="presentation" aria-hidden="true"></span>
                    </div>
                    <div class="select form-group">
                        <div class="picker">
                            <select class="form-control select js-notifications-type" id="notifications_type" name="type">
                            {foreach from=$options item=name key=t}
                                <option value="{$t}"{if $type == $t} selected{/if}>
                                    {$name}
                                </option>
                            {/foreach}
                            </select>
                        </div>
                    </div>
                </div>
            </div>
        </form>

        <form class="form-notificationlist js-notifications" name="notificationlist" method="post">
            <div id="activitylist" class="notification-list">
                {$activitylist['html']|safe}
            </div>
        </form>

        {$deleteall|safe}
        <div class="fullwidth">
            {$activitylist['pagination']|safe}
        </div>
    </div>
{else}
<div class="notifications-empty" id="notifications">
    <p class="no-results">
73 74 75 76 77
        {if $searchdata->searchtext}
            {str section='activity' tag='noresultsfound'}
        {else}
            {str section='activity' tag='yourinboxisempty'}
        {/if}
78 79 80 81 82
    </p>
</div>
{/if}

{include file="footer.tpl"}