diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-31 12:10:39 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-31 12:10:39 +0100 |
| commit | 8c97edc1011e46e52ccecd9e7cc5f1bd9fcadc08 (patch) | |
| tree | 45fe227bc8a430e206706a5c5bf8169cb16bf4d2 /templates/view_assembly.tpl | |
| parent | cef2bbde0cbaa042a545f432865de11e0bc51d03 (diff) | |
| download | stock-8c97edc1011e46e52ccecd9e7cc5f1bd9fcadc08.tar.gz stock-8c97edc1011e46e52ccecd9e7cc5f1bd9fcadc08.tar.bz2 stock-8c97edc1011e46e52ccecd9e7cc5f1bd9fcadc08.zip | |
Remove assembly_id/component_id: use content_id throughout
All stock classes, templates, imports, and controllers now reference
content_id directly. StockRemote deleted (unused). StockBase: dead
methods (isMachineName, updatePosition, isEditable) removed; hash_key
aliases dropped. getList() keyed by content_id, fixing missing
content_id in row data.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'templates/view_assembly.tpl')
| -rwxr-xr-x | templates/view_assembly.tpl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/view_assembly.tpl b/templates/view_assembly.tpl index c9ab832..daaa105 100755 --- a/templates/view_assembly.tpl +++ b/templates/view_assembly.tpl @@ -1,7 +1,12 @@ {assign var=galLayout value=$gContent->getLayout()} -{if $gBitUser->hasPermission('p_stock_update')} +{if $gContent->hasUpdatePermission()} <div class="floaticon"> + {include file="bitpackage:liberty/services_inc.tpl" serviceLocation='icon' serviceHash=$gContent->mInfo} <a title="{tr}Edit{/tr}" href="{$smarty.const.STOCK_PKG_URL}edit.php?content_id={$gContent->mContentId}">{booticon iname="fa-pen-to-square" iexplain="Edit Assembly"}</a> + <a title="{tr}Component Order{/tr}" href="{$smarty.const.STOCK_PKG_URL}component_order.php?content_id={$gContent->mContentId}">{booticon iname="fa-sort" iexplain="Component Order"}</a> + {if $gContent->hasAdminPermission()} + <a title="{tr}Delete Assembly{/tr}" href="{$smarty.const.STOCK_PKG_URL}edit.php?content_id={$gContent->mContentId}&delete=1">{booticon iname="fa-trash" iexplain="Delete Assembly"}</a> + {/if} </div> {/if} {include file="`$smarty.const.STOCK_PKG_PATH`assembly_views/`$galLayout`/stock_`$galLayout`_inc.tpl"} |
