summaryrefslogtreecommitdiff
path: root/templates/view_movement.tpl
blob: 72932b2f08e5f6c3cafee03f2ff4a96d3bbc3576 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{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}">{biticon ipackage="icons" iname="edit" 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->mInfo.ref_type_title|default:$gContent->getDirection()|escape}</dd>
			{if $gContent->mInfo.ref_contact_name}
			<dt>{tr}Supplier{/tr}</dt>
			<dd>
				<a href="{$smarty.const.CONTACT_PKG_URL}display.php?content_id={$gContent->mInfo.ref_contact_id}">{$gContent->mInfo.ref_contact_name|escape}</a>
			</dd>
			{elseif $gContent->mInfo.reference.0.data}
			<dt>{tr}From{/tr}</dt>
			<dd>{$gContent->mInfo.reference.0.data|escape}</dd>
			{/if}
			<dt>{tr}Created{/tr}</dt>
			<dd>{$gContent->mInfo.created|bit_short_datetime} {tr}by{/tr} {$gContent->mInfo.creator|escape}</dd>
			{if $gContent->mInfo.ref_start_date}
			<dt>{tr}Ordered{/tr}</dt>
			<dd>{$gContent->mInfo.ref_start_date|bit_short_date}</dd>
			{/if}
			<dt>{tr}Received{/tr}</dt>
			<dd>{if $gContent->isReceived()}{$gContent->mInfo.event_time|bit_short_date}{else}{tr}Pending{/tr}{/if}</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}
			{if $gContent->mInfo.data}
			<dt>{tr}Note{/tr}</dt>
			<dd>{$gContent->mInfo.data|escape}</dd>
			{/if}
		</dl>

		{if $gXrefInfo->mGroups}
			{jstabs}
				{foreach $gXrefInfo->mGroups as $xrefGroup}
					{if $xrefGroup->mXGroup neq 'reference'}
						{include file=$gContent->getXrefListTemplate($xrefGroup->mTemplate)
							xrefGroup=$xrefGroup
							allow_add=false
							allow_edit=false}
					{/if}
				{/foreach}
			{/jstabs}
		{/if}

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