summaryrefslogtreecommitdiff
path: root/templates/list_kitlocker.tpl
blob: c7e1c4481a4f62f8b9d5f7b99c513268aeb0acb2 (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
40
41
42
43
{strip}
<div class="listing stock">
	<header>
		<div class="floaticon">
		</div>
		<h1>{if $groupTitle}{$groupTitle|escape}{else}{tr}Kitlocker{/tr}{/if}</h1>
		{if $stgrp}<small><a href="{$smarty.const.STOCK_PKG_URL}view_kitlocker.php">&lsaquo; {tr}Kitlocker{/tr}</a></small>{/if}
	</header>

	<section class="body">

		<table class="table table-striped table-hover">
			<thead>
				<tr>
					<th>{tr}Name{/tr}</th>
					<th>{tr}Type{/tr}</th>
					<th>{tr}KLID{/tr}</th>
					<th>{tr}Price{/tr}</th>
				</tr>
			</thead>
			<tbody>
				{foreach $kitlockerItems as $item}
				<tr>
					<td>
						{if $item.content_type_guid eq 'stockassembly'}
							<a href="{$smarty.const.STOCK_PKG_URL}view_assembly.php?content_id={$item.content_id}">{$item.title|escape}</a>
						{else}
							<a href="{$smarty.const.STOCK_PKG_URL}view_component.php?content_id={$item.content_id}">{$item.title|escape}</a>
						{/if}
						{if $item.data}<br/><small class="text-muted">{$item.data|truncate:120|escape}</small>{/if}
					</td>
					<td>{if $item.content_type_guid eq 'stockassembly'}{tr}Assembly{/tr}{else}{tr}Component{/tr}{/if}</td>
					<td>{$item.klid|escape}</td>
					<td>{$item.klpr|escape}</td>
				</tr>
				{foreachelse}
				<tr><td colspan="4" class="norecords">{tr}No kitlocker items found.{/tr}</td></tr>
				{/foreach}
			</tbody>
		</table>
	</section>
</div>
{/strip}