summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-06-10 09:16:33 +0100
committerLester Caine <lester@lsces.co.uk>2026-06-10 09:16:33 +0100
commit8566070da24cd53845c64cdf2cd2104c847e450c (patch)
tree8348a496fe32a74713fad9f3850c40d90be7d6a4 /templates
parent0582e0b40f3440e8ec4c95c99501019e6933e20b (diff)
downloadstock-8566070da24cd53845c64cdf2cd2104c847e450c.tar.gz
stock-8566070da24cd53845c64cdf2cd2104c847e450c.tar.bz2
stock-8566070da24cd53845c64cdf2cd2104c847e450c.zip
stock: add kitlocker gallery — view_kitlocker.php, stock_fixed_grid_inc.tpl, view_xref_kitlocker_group.tpl; stgrp getList filter; stgrp template field set to kitlocker
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'templates')
-rwxr-xr-xtemplates/stock_fixed_grid_inc.tpl64
-rw-r--r--templates/view_xref_kitlocker_group.tpl18
2 files changed, 47 insertions, 35 deletions
diff --git a/templates/stock_fixed_grid_inc.tpl b/templates/stock_fixed_grid_inc.tpl
index d6f0ba0..af84ab8 100755
--- a/templates/stock_fixed_grid_inc.tpl
+++ b/templates/stock_fixed_grid_inc.tpl
@@ -1,39 +1,33 @@
{strip}
-{include file="bitpackage:stock/assembly_nav.tpl"}
-<div class="display stock container">
- <div class="header col-xs-12">
- {include file="bitpackage:stock/assembly_icons_inc.tpl"}
- <h1>{$gContent->getTitle()|escape}</h1>
- </div>
+<div class="listing stock">
+ <header>
+ <div class="floaticon">
+ </div>
+ <h1>{tr}Kitlocker{/tr}</h1>
+ </header>
- <div class="body">
- {formfeedback success=$stockSuccess error=$stockErrors warning=$stockWarnings}
-
- {include file="bitpackage:liberty/services_inc.tpl" serviceLocation='body' serviceHash=$gContent->mInfo}
- {if $gContent->mInfo.data}
- <p>{$gContent->mInfo.data|escape}</p>
- {/if}
-
- <table class="thumbnailblock">
- {counter assign="itemCount" start="0" print=false}
- {foreach from=$gContent->mItems item=galItem key=itemContentId}
- {if $itemCount % 4 == 0}<tr>{/if}
- <td style="width:25%; vertical-align:top;">
- {box class="box {$galItem->mInfo.content_type_guid}"}
- <h4><a href="{$galItem->getDisplayUrl()|escape}">{$galItem->mInfo.title|escape}</a></h4>
- {include file="bitpackage:liberty/services_inc.tpl" serviceLocation='body' serviceHash=$galItem->mInfo type=mini}
- {if $gBitSystem->isFeatureActive('stock_gallery_list_image_descriptions')}
- <p>{$galItem->mInfo.data|escape}</p>
+ <section class="body">
+ <div class="row">
+ {foreach $stgrpItems as $item}
+ <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>
+ </div>
+ {if $item.data}
+ <div class="panel-body">
+ {$item.data|escape}
+ </div>
{/if}
- {/box}
- </td>
- {counter name=itemCount}
- {if $itemCount % 4 == 0}</tr>{/if}
- {/foreach}
- {if $itemCount % 4 != 0}</tr>{/if}
- </table>
-
- {pagination content_id=$gContent->mContentId}
- </div><!-- end .body -->
-</div><!-- end .stock -->
+ <div class="panel-footer">
+ {tr}Count{/tr}: {$item.item_count}
+ </div>
+ </div>
+ </div>
+ {foreachelse}
+ <div class="col-xs-12"><p class="norecords">{tr}No kitlocker groups defined.{/tr}</p></div>
+ {/foreach}
+ </div>
+ </section>
+</div>
{/strip}
diff --git a/templates/view_xref_kitlocker_group.tpl b/templates/view_xref_kitlocker_group.tpl
new file mode 100644
index 0000000..94a67ec
--- /dev/null
+++ b/templates/view_xref_kitlocker_group.tpl
@@ -0,0 +1,18 @@
+{assign var=xrefAllowEdit value=$allow_edit|default:false}
+{assign var=isHistory value=($xrefGroup->mXGroup eq 'history')}
+{strip}
+<div class="row stock-group-gallery">
+ {foreach $xrefGroup->mXrefs as $xrefInfo}
+ <div class="col-md-4 col-sm-6 col-xs-12">
+ <div class="panel panel-default">
+ <div class="panel-body">
+ <strong>{$xrefInfo.xref_title|escape}</strong>
+ <small class="text-muted pull-right">{$xrefInfo.item|escape}</small>
+ </div>
+ </div>
+ </div>
+ {foreachelse}
+ <div class="col-xs-12"><p class="norecords">{tr}No stock groups assigned.{/tr}</p></div>
+ {/foreach}
+</div>
+{/strip}