blob: b8156185a6a7cff979c48f1dcb667679e5d7a249 (
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
61
62
63
|
{strip}
<div class="display stock">
<header>
<div class="floaticon">
{if $gContent->hasUpdatePermission()}
<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>
<h1>{$gContent->getTitle()|escape}</h1>
<small>
<a href="{$smarty.const.STOCK_PKG_URL}list_movements.php">{tr}Movements{/tr}</a>
› <a href="{$smarty.const.STOCK_PKG_URL}list_movements.php?user_id={$gContent->mInfo.user_id}">{$gContent->mInfo.creator|escape}</a>
</small>
</header>
<section 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.ref_from_data}
<dt>{tr}From{/tr}</dt>
<dd>{$gContent->mInfo.ref_from_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>{if $isPbld}{tr}Build Date{/tr}{else}{tr}Ordered{/tr}{/if}</dt>
<dd>{$gContent->mInfo.ref_start_date|bit_short_date}</dd>
{/if}
<dt>{if $isPbld}{tr}Completed{/tr}{else}{tr}Received{/tr}{/if}</dt>
<dd>{if $gContent->isReceived()}{$gContent->mInfo.event_time|bit_short_date}{else}{if $isPbld}{tr}In progress{/tr}{else}{tr}Pending{/tr}{/if}{/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' && ($xrefGroup->mXGroup neq 'assembly' || $isBuild)}
{include file=$gContent->getXrefListTemplate($xrefGroup->mTemplate)
xrefGroup=$xrefGroup
allow_add=false
allow_edit=false}
{/if}
{/foreach}
{/jstabs}
{/if}
</section><!-- end .body -->
</div><!-- end .stock -->
{/strip}
|