diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-06-10 09:28:51 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-06-10 09:28:51 +0100 |
| commit | 2a0ea930de9d59e29bf4ddeb1585e61061109d7d (patch) | |
| tree | d6d2d74e84d62e38cf3969c4d016a4365e7e61af /templates | |
| parent | 8566070da24cd53845c64cdf2cd2104c847e450c (diff) | |
| download | stock-2a0ea930de9d59e29bf4ddeb1585e61061109d7d.tar.gz stock-2a0ea930de9d59e29bf4ddeb1585e61061109d7d.tar.bz2 stock-2a0ea930de9d59e29bf4ddeb1585e61061109d7d.zip | |
stock: add list_kitlocker.php — combined assembly/component kitlocker list with stgrp filter; gallery links to list_kitlocker; breadcrumb back link in header
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/list_kitlocker.tpl | 43 | ||||
| -rwxr-xr-x | templates/stock_fixed_grid_inc.tpl | 2 |
2 files changed, 44 insertions, 1 deletions
diff --git a/templates/list_kitlocker.tpl b/templates/list_kitlocker.tpl new file mode 100644 index 0000000..c7e1c44 --- /dev/null +++ b/templates/list_kitlocker.tpl @@ -0,0 +1,43 @@ +{strip} +<div class="listing stock"> + <header> + <div class="floaticon"> + </div> + <h1>{if $groupTitle}{$groupTitle|escape}{else}{tr}Kitlocker{/tr}{/if}</h1> + {if $stgrp}<small><a href="{$smarty.const.STOCK_PKG_URL}view_kitlocker.php">‹ {tr}Kitlocker{/tr}</a></small>{/if} + </header> + + <section class="body"> + + <table class="table table-striped table-hover"> + <thead> + <tr> + <th>{tr}Name{/tr}</th> + <th>{tr}Type{/tr}</th> + <th>{tr}KLID{/tr}</th> + <th>{tr}Price{/tr}</th> + </tr> + </thead> + <tbody> + {foreach $kitlockerItems as $item} + <tr> + <td> + {if $item.content_type_guid eq 'stockassembly'} + <a href="{$smarty.const.STOCK_PKG_URL}view_assembly.php?content_id={$item.content_id}">{$item.title|escape}</a> + {else} + <a href="{$smarty.const.STOCK_PKG_URL}view_component.php?content_id={$item.content_id}">{$item.title|escape}</a> + {/if} + {if $item.data}<br/><small class="text-muted">{$item.data|truncate:120|escape}</small>{/if} + </td> + <td>{if $item.content_type_guid eq 'stockassembly'}{tr}Assembly{/tr}{else}{tr}Component{/tr}{/if}</td> + <td>{$item.klid|escape}</td> + <td>{$item.klpr|escape}</td> + </tr> + {foreachelse} + <tr><td colspan="4" class="norecords">{tr}No kitlocker items found.{/tr}</td></tr> + {/foreach} + </tbody> + </table> + </section> +</div> +{/strip} diff --git a/templates/stock_fixed_grid_inc.tpl b/templates/stock_fixed_grid_inc.tpl index af84ab8..f4c3aae 100755 --- a/templates/stock_fixed_grid_inc.tpl +++ b/templates/stock_fixed_grid_inc.tpl @@ -12,7 +12,7 @@ <div class="col-md-4 col-sm-6 col-xs-12"> <div class="panel panel-default"> <div class="panel-heading"> - <a href="{$smarty.const.STOCK_PKG_URL}list_assemblies.php?stgrp={$item.item|escape:'url'}">{$item.cross_ref_title|escape}</a> + <a href="{$smarty.const.STOCK_PKG_URL}list_kitlocker.php?stgrp={$item.item|escape:'url'}">{$item.cross_ref_title|escape}</a> </div> {if $item.data} <div class="panel-body"> |
