summaryrefslogtreecommitdiff
path: root/templates/article_filter_inc.tpl
blob: 4b5a9dbee1448ede7acd335f6f120f29baff27bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{if ( $gBitUser->isAdmin() || $gBitUser->hasPermission( 'p_articles_admin' ) ) && $gBitSystem->isFeatureActive( 'articles_display_filter_bar' ) && $filter}
	{form}
		<table class="optionbar">
			<caption>{tr}Article Filter{/tr}</caption>
			<tr>
				<td class="odd">
					{tr}Status{/tr}
					{html_options options=$filter.status values=$filter.status name=status_id selected=$smarty.request.status_id}
				</td>
				<td class="even">
					{tr}Type{/tr}
					{html_options options=$filter.type values=$filter.type name=type_id selected=$smarty.request.type_id}
				</td>
				<td class="odd">
					{tr}Topic{/tr}
					{html_options options=$filter.topic values=$filter.topic name=topic_id selected=$smarty.request.topic_id}
				</td>
				<td>
					<input type="submit" class="btn btn-default" value="Apply filter">
				</td>
			</tr>
		</table>
	{/form}
{/if}