Install
$ agentstack add skill-jeffsenso-prestashop-skills-create-form-tab-layout ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
create-form-tab-layout
> This is NOT the default form pattern. Most entity forms are simple single-page forms > using TranslatorAwareType or AbstractType. Only use NavigationTabType when the entity > has many fields that benefit from tab organization (e.g. Carrier with general, shipping, > size/weight tabs).
Instructions
- In root
{Domain}Type, declareNavigationTabTypeas the parent type viagetParent():
``php public function getParent(): string { return NavigationTabType::class; } ` Then in buildForm()`, add each tab as a sub-form — each child is rendered as a tab.
- Create one form type per tab:
{Domain}GeneralTabType.php,{Domain}ShippingTabType.php, etc. - Each tab type extends
TranslatorAwareTypewith its ownbuildForm()containing only that tab's fields. - Tab anchor IDs (used for JS error scrolling) are derived from the tab names.
Reference: src/PrestaShopBundle/Form/Admin/Shipping/Carrier/CarrierType.php, src/PrestaShopBundle/Form/Admin/Sell/Product/EditProductFormType.php
Rules
Conventions (NavigationTabType is PS-specific, tab anchor IDs for JS error nav) are in [Forms/CONTEXT.md](../../CONTEXT.md). Skill-specific reminders:
- Each tab gets its own form type class for maintainability
- Tab titles must use
$this->trans()for translation
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: jeffsenso
- Source: jeffsenso/prestashop-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.