summaryrefslogtreecommitdiff
path: root/assembly_views/fixed_grid/stock_fixed_grid_inc3.tpl
blob: 2db927b49b7756acab55b6e1136970a377520536 (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="display stock container">
	<div class="header col-xs-12">
		{include file="bitpackage:stock/assembly_icons_inc.tpl"}
		<h1>{$gContent->getTitle()|escape}</h1>
	</div>

	<div class="body col-xs-12">
		{formfeedback success=$stockSuccess error=$stockErrors warning=$stockWarnings}

		{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='body' serviceHash=$gContent->mInfo}
		{if $gContent->mInfo.data}
			<p>{$gContent->mInfo.data|escape}</p>
		{/if}

		<div class="col-xs-12">
		{foreach from=$gContent->mItems item=galItem key=itemContentId}
			<div class="col-md-4 col-sm-6 col-xs-12">
				<div class="gallery-box">
					<a href="{$galItem->getDisplayUrl()|escape}">
						<h3>{$galItem->mInfo.title|escape}</h3>
					</a>
					{if $galItem->mInfo.data}
						<p class="text-muted">{$galItem->mInfo.data|truncate:120|escape}</p>
					{/if}
				</div>
			</div>
		{foreachelse}
			<p class="norecords">{tr}This assembly has no components.{/tr}</p>
		{/foreach}
		</div>
		<div class="clear"></div>
	</div><!-- end .body -->

	{pagination content_id=$gContent->mContentId}

	{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='view' serviceHash=$gContent->mInfo}

	{if $gContent->getPreference('allow_comments') eq 'y'}
		{include file="bitpackage:liberty/comments.tpl"}
	{/if}
</div><!-- end .stock -->
{/strip}