summaryrefslogtreecommitdiff
path: root/templates/add_xref.tpl
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-26 14:55:36 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-26 14:55:36 +0100
commit70c559432ece25dd3def8c64ddb7c1908b4d49e0 (patch)
tree9627e43fbe0d0eb082e4d54fa47773cda77e58f7 /templates/add_xref.tpl
parent0579f237e179c8815c1c44d9c5cef94ad2a33588 (diff)
downloadstock-70c559432ece25dd3def8c64ddb7c1908b4d49e0.tar.gz
stock-70c559432ece25dd3def8c64ddb7c1908b4d49e0.tar.bz2
stock-70c559432ece25dd3def8c64ddb7c1908b4d49e0.zip
Add xref support, assembly/component views, and import tooling
- add_xref.php, edit_xref.php: xref record add/edit for stock content types - admin xref group/source pages for stock_assembly and stock_component - assembly_views/: auto_flow, fixed_grid, position_number, simple_list layouts - Full assembly and component listing, tree, ordering, and detail pages - Import tooling (ImportAssembly, ImportComponent, load scripts) - liberty_plugins for assembly and component data types - schema_inc.php updated; StockAssembly, StockBase, StockComponent, StockMovement classes updated with xref group/item/multiple renames - Templates updated throughout for xref rename (source→item, group→x_group) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'templates/add_xref.tpl')
-rw-r--r--templates/add_xref.tpl44
1 files changed, 44 insertions, 0 deletions
diff --git a/templates/add_xref.tpl b/templates/add_xref.tpl
new file mode 100644
index 0000000..63166cb
--- /dev/null
+++ b/templates/add_xref.tpl
@@ -0,0 +1,44 @@
+{strip}
+<div class="edit stock">
+ <div class="header">
+ <h1>{tr}Add Detail{/tr}: {$gContent->getTitle()|escape}</h1>
+ </div>
+
+ <div class="body">
+ {formfeedback error=$errors}
+
+ {form id="addStockXrefForm"}
+ <input type="hidden" name="content_id" value="{$gContent->mContentId}" />
+ <input type="hidden" name="group" value="{$group}" />
+
+ <div class="form-group">
+ {formlabel label="Type" for="item"}
+ {forminput}
+ {html_options name="item" id="item" options=$xrefTypeList.list}
+ {/forminput}
+ </div>
+
+ <div class="form-group">
+ {formlabel label="Value" for="edit"}
+ {forminput}
+ <input type="text" class="form-control" name="edit" id="edit" value="" />
+ {formhelp note="Enter the value for this detail record."}
+ {/forminput}
+ </div>
+
+ <div class="form-group">
+ {formlabel label="Linked Content ID" for="xref"}
+ {forminput}
+ <input type="text" class="form-control input-small" name="xref" id="xref" value="" />
+ {formhelp note="For supplier links: enter the contact content_id. Leave blank for all other types."}
+ {/forminput}
+ </div>
+
+ <div class="form-group submit">
+ <input type="submit" class="btn btn-default" name="fCancel" value="{tr}Cancel{/tr}" />
+ <input type="submit" class="btn btn-primary" name="fAddXref" value="{tr}Save{/tr}" />
+ </div>
+ {/form}
+ </div><!-- end .body -->
+</div><!-- end .stock -->
+{/strip}