blob: 827b5d4029eaef09b73192f6657ad705a2f71b23 (
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
64
65
66
67
68
69
70
71
72
73
|
{strip}
<div class="listing stock">
<header>
<div class="floaticon">
{if $gBitUser->hasPermission('p_stock_create')}
<a class="btn btn-default btn-sm" href="{$smarty.const.STOCK_PKG_URL}edit_movement.php">{tr}Add Movement{/tr}</a>
{/if}
</div>
<h1>{tr}Movements{/tr}</h1>
</header>
<section class="body">
{form ipackage="stock" ifile="list_movements.php" method="get"}
<div class="form-inline" style="margin-bottom:1em">
<div class="form-group">
<select name="ref_type" class="form-control input-sm">
<option value="">{tr}All types{/tr}</option>
<option value="REQN"{if $filterType eq 'REQN'} selected="selected"{/if}>{tr}Requisition (out){/tr}</option>
<option value="TRANS"{if $filterType eq 'TRANS'} selected="selected"{/if}>{tr}Transfer (in){/tr}</option>
<option value="ORDER"{if $filterType eq 'ORDER'} selected="selected"{/if}>{tr}Order (in){/tr}</option>
</select>
</div>
<div class="form-group">
<input type="text" class="form-control input-sm" name="find"
placeholder="{tr}reference...{/tr}"
value="{$smarty.request.find|escape}" />
</div>
<button type="submit" class="btn btn-default btn-sm">{tr}Go{/tr}</button>
</div>
{/form}
<table class="table table-striped table-hover">
<thead>
<tr>
<th>{smartlink ititle="Reference" isort="title"}</th>
<th>{tr}Type{/tr}</th>
<th>{tr}Ref{/tr}</th>
<th>{tr}Received{/tr}</th>
<th>{smartlink ititle="Date" isort="created_desc"}</th>
<th>{tr}Creator{/tr}</th>
{if $gBitUser->hasPermission('p_stock_create')}<th></th>{/if}
</tr>
</thead>
<tbody>
{foreach $movementList as $mov}
<tr>
<td><a href="{$mov.display_url|escape}">{$mov.title|escape}</a></td>
<td>{$mov.ref_type|escape|default:'—'}</td>
<td>{$mov.ref_key|escape}</td>
<td>{if $mov.event_time}{$mov.event_time|bit_short_date}{else}—{/if}</td>
<td>{$mov.created|bit_short_date}</td>
<td>{$mov.real_name|default:$mov.login|escape}</td>
{if $gBitUser->hasPermission('p_stock_create')}
<td>
<a class="btn btn-xs btn-default"
href="{$smarty.const.STOCK_PKG_URL}edit_movement.php?content_id={$mov.content_id}">{tr}Edit{/tr}</a>
</td>
{/if}
</tr>
{foreachelse}
<tr><td colspan="7" class="norecords">{tr}No movements found.{/tr}</td></tr>
{/foreach}
</tbody>
</table>
<nav>
{pagination}
</nav>
</section>
</div>
{/strip}
|