tiki-theme_control.tpl 2.39 KB
Newer Older
1
{* $Id$ *}
2
{title help="Theme Control"}{tr}Theme Control{/tr}: {tr}Categories{/tr}{/title}
3
<div class="t_navbar btn-group">
4 5
	{button href="tiki-theme_control_objects.php" class="btn btn-default" _text="{tr}Control by Objects{/tr}"}
	{button href="tiki-theme_control_sections.php" class="btn btn-default" _text="{tr}Control by Sections{/tr}"}
6
</div>
sylvieg's avatar
sylvieg committed
7
<h2>{tr}Assign themes to categories{/tr}</h2>
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
<form action="tiki-theme_control.php" method="post" class="form-inline" role="form">
	<div class="form-group">
		<label for="categoryId">{tr}Category{/tr}</label>
		<select name="categoryId" class="form-control input-sm">
			{foreach from=$categories key=categoryId item=category}
				<option value="{$categoryId|escape}">
					{$category.name|escape} (Id:{$categoryId})
				</option>
			{/foreach}
		</select>
	</div>
	<div class="form-group">
		<label for="theme">{tr}Theme{/tr}</label>
		<select name="theme" class="form-control input-sm">
			{foreach from=$themes key=theme item=theme_name}
				<option value="{$theme|escape}">{$theme_name}</option>
			{/foreach}
		</select>
	</div>
	<input type="submit" class="btn btn-primary btn-sm" name="assign" value="{tr}Assign{/tr}">
28
</form>
sylvieg's avatar
sylvieg committed
29
<h2>{tr}Assigned categories{/tr}</h2>
30
{include file='find.tpl'}
31
<form action="tiki-theme_control.php" method="post" role="form" class="form">
32
	<div class="table-responsive themecat-table">
33
		<table class="table">
34
			<tr>
35 36 37 38 39
				<th>
					<button type="submit" class="btn btn-warning btn-sm" name="delete" title="{tr}Delete selected{/tr}" {if !$channels}disabled{/if}>
						{icon name="delete"}
					</button>
				</th>
40 41 42 43 44 45 46 47 48 49
				<th>
					<a href="tiki-theme_control.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'name_desc'}name_asc{else}name_desc{/if}">
						{tr}Category{/tr}
					</a>
				</th>
				<th>
					<a href="tiki-theme_control.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'theme_desc'}theme_asc{else}theme_desc{/if}">
						{tr}Theme{/tr}
					</a>
				</th>
50
			</tr>
51 52 53
			{section name=user loop=$channels}
				<tr>
					<td class="checkbox-cell">
54 55 56 57 58 59 60
						<input type="checkbox" name="categoryIds[{$channels[user].categId}]">
					</td>
					<td class="text">
						{$channels[user].name|escape} (Id:{$channels[user].categId})
					</td>
					<td class="text">
						{$channels[user].theme}
61 62 63 64 65
					</td>
				</tr>
			{/section}
		</table>
	</div>
awcolley's avatar
awcolley committed
66
</form>
67
{pagination_links cant=$cant_pages step=$prefs.maxRecords offset=$offset}{/pagination_links}