summaryrefslogtreecommitdiff
path: root/templates/view_movement.tpl
blob: 87c4c44641a9f6440be92973868e2be5f49d3efa (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
44
{strip}
<div class="display stock">
	<div class="floaticon">
		{if $gBitUser->hasPermission('p_stock_create')}
			<a title="{tr}Edit{/tr}" href="{$smarty.const.STOCK_PKG_URL}edit_movement.php?content_id={$gContent->mContentId}">{booticon iname="fa-pen-to-square" iexplain="Edit Movement"}</a>
		{/if}
	</div>

	<div class="header">
		<h1>{$gContent->getTitle()|escape}</h1>
	</div>

	<div class="body">

		<dl class="dl-horizontal">
			<dt>{tr}Type{/tr}</dt>
			<dd>{$gContent->getDirection()|escape}</dd>
			<dt>{tr}Received{/tr}</dt>
			<dd>{if $gContent->isReceived()}{$gContent->mInfo.event_time|bit_short_date}{else}{tr}Pending{/tr}{/if}</dd>
			<dt>{tr}Created{/tr}</dt>
			<dd>{$gContent->mInfo.created|bit_short_datetime} {tr}by{/tr} {$gContent->mInfo.creator|escape}</dd>
			{if $gContent->mInfo.last_modified neq $gContent->mInfo.created}
				<dt>{tr}Modified{/tr}</dt>
				<dd>{$gContent->mInfo.last_modified|bit_short_datetime} {tr}by{/tr} {$gContent->mInfo.editor|escape}</dd>
			{/if}
		</dl>

		{assign var=movXrefGroups value=$gContent->getXrefGroupList()}
		{if $movXrefGroups}
			{jstabs}
				{section name=xrefGroup loop=$movXrefGroups}
					{include file=$gContent->getXrefListTemplate($movXrefGroups[xrefGroup].template)
						source=$movXrefGroups[xrefGroup].source
						source_title=$movXrefGroups[xrefGroup].title
						group=$movXrefGroups[xrefGroup].sort_order
						allow_add=false
						allow_edit=false}
				{/section}
			{/jstabs}
		{/if}

	</div><!-- end .body -->
</div><!-- end .stock -->
{/strip}