diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-29 15:03:17 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-29 15:03:17 +0100 |
| commit | ce6c275381aa5d270b3816fc25e833b546d0443a (patch) | |
| tree | e6517dfa6772606b775ed33a96b5bdb49cb46ed2 /templates/stockcomponent/view_xref_pck_item.tpl | |
| parent | e5f051c2b27424acd773a51d45fd775fbf4c0547 (diff) | |
| download | stock-ce6c275381aa5d270b3816fc25e833b546d0443a.tar.gz stock-ce6c275381aa5d270b3816fc25e833b546d0443a.tar.bz2 stock-ce6c275381aa5d270b3816fc25e833b546d0443a.zip | |
Reorganise BOM xref templates into content-type subdirectories
- Move BOM templates into templates/stockassembly/ subdir
- Move PCK component templates into templates/stockcomponent/ subdir
- schema_inc.php: PCK on stockcomponent uses 'value' template;
PCK on stockassembly uses 'bompck'; SGL/SHT/VOL on assembly use 'bom'
- Remove old flat templates superseded by subdir structure
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'templates/stockcomponent/view_xref_pck_item.tpl')
| -rw-r--r-- | templates/stockcomponent/view_xref_pck_item.tpl | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/templates/stockcomponent/view_xref_pck_item.tpl b/templates/stockcomponent/view_xref_pck_item.tpl new file mode 100644 index 0000000..f0e8851 --- /dev/null +++ b/templates/stockcomponent/view_xref_pck_item.tpl @@ -0,0 +1,26 @@ +{strip} +<tr class="{cycle values="even,odd"}"> + <td>{$gContent->mInfo.$source[xref].source_title|escape}</td> + <td> </td> + <td>{$gContent->mInfo.$source[xref].xkey|escape}</td> + <td>{$gContent->mInfo.$source[xref].xkey_ext|escape}</td> + <td>{if $source ne 'history'}{$gContent->mInfo.$source[xref].start_date|bit_short_date}{else}{$gContent->mInfo.$source[xref].end_date|bit_short_date}{/if}</td> + <td>{$gContent->mInfo.$source[xref].last_update_date|bit_short_date}</td> + {if $xrefAllowEdit|default:true} + <td> + <span class="actionicon"> + {if $gContent->hasUpdatePermission() && $source ne 'history'} + {smartlink ititle="Edit" ipackage="liberty" ifile="edit_xref.php" booticon="icon-note-edit" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id} + {/if} + {if $gContent->hasExpungePermission()} + {if $source eq 'history'} + {smartlink ititle="Restore" ipackage="liberty" ifile="edit_xref.php" booticon="icon-note-edit" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id expunge=-1} + {else} + {smartlink ititle="Delete" ipackage="liberty" ifile="edit_xref.php" booticon="icon-note-delete" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id expunge=1} + {/if} + {/if} + </span> + </td> + {/if} +</tr> +{/strip} |
