summaryrefslogtreecommitdiff
path: root/templates/pigeonholes_input_inc.tpl
blob: dae3465b268e42846b68f90717c4bd91723b3109 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{strip}
{jstab title="Categorize"}
	{legend legend="Categorize"}
		<div class="row">
			{formlabel label="Pick Categories" for="pigeonholes"}
			{if $pigeonPathList|@count ne 0}
				{forminput}
					{if $pigeonPathList|@count < $gBitSystem->getConfig( 'pigeonholes_scrolling_list_number' )}
						{foreach from=$pigeonPathList key=pigeonId item=path}
							<label>
								<input type="checkbox" value="{$pigeonId}" {if $path.0.selected}checked="checked" {/if}name="pigeonholes[pigeonhole][]" />
								{foreach from=$path item=node}
									{if $node.parent_id} &raquo;{/if} {$node.title|escape}
								{/foreach}
								<br />
							</label>
						{/foreach}
					{else}
						<select name="pigeonholes[pigeonhole][]" id="pigeonholes" multiple="multiple" size="5">
							{foreach from=$pigeonPathList key=pigeonId item=path}
								<option value="{$pigeonId}" {if $path.0.selected}selected="selected"{/if}>
									{foreach from=$path item=node}
										{if $node.parent_id} &raquo;{/if} {$node.title|escape}
									{/foreach}
								</option>
							{/foreach}
						</select>
					{/if}
				{/forminput}
			{else}
				<p>{tr}There are no categories available at the moment.{/tr}</p>
				{if $gBitUser->isAdmin()}
					{smartlink ititle="Create Category" ipackage="pigeonholes" ifile="edit_pigeonholes.php"}
				{/if}
			{/if}
		</div>
	{/legend}
{/jstab}
{/strip}