UNPKG

generator-joomla-spc

Version:

Joomla-spc generator for Yeoman. Creates Joomla 2.5 and 3.0 files

76 lines (75 loc) 2.35 kB
<?xml version="1.0" encoding="utf-8"?> <form addrulepath="/administrator/components/com_com_<%= _.slugify(componentName) %>/models/rules" > <fieldset name="details" label="COM_<%= _.slugify(componentName).toUpperCase() %>_<%= _.slugify(componentName).toUpperCase() %>_DETAILS" > <field name="id" type="hidden" /> <field name="greeting" type="text" label="COM_<%= _.slugify(componentName).toUpperCase() %>_<%= _.slugify(componentName).toUpperCase() %>_GREETING_LABEL" description="COM_<%= _.slugify(componentName).toUpperCase() %>_<%= _.slugify(componentName).toUpperCase() %>_GREETING_DESC" size="40" class="inputbox validate-greeting" validate="greeting" required="true" default="" /> <field name="catid" type="category" extension="com_com_<%= _.slugify(componentName) %>" class="inputbox" default="" label="COM_<%= _.slugify(componentName).toUpperCase() %>_<%= _.slugify(componentName).toUpperCase() %>_FIELD_CATID_LABEL" description="COM_<%= _.slugify(componentName).toUpperCase() %>_<%= _.slugify(componentName).toUpperCase() %>_FIELD_CATID_DESC" required="true" > <option value="0">JOPTION_SELECT_CATEGORY</option> </field> </fieldset> <fields name="params"> <fieldset name="params" label="JGLOBAL_FIELDSET_DISPLAY_OPTIONS" > <field name="show_category" type="list" label="COM_<%= _.slugify(componentName).toUpperCase() %>_<%= _.slugify(componentName).toUpperCase() %>_FIELD_SHOW_CATEGORY_LABEL" description="COM_<%= _.slugify(componentName).toUpperCase() %>_<%= _.slugify(componentName).toUpperCase() %>_FIELD_SHOW_CATEGORY_DESC" default="" > <option value="">JGLOBAL_USE_GLOBAL</option> <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> </fieldset> </fields> <fieldset name="accesscontrol" label="COM_<%= _.slugify(componentName).toUpperCase() %>_FIELDSET_RULES" > <field name="asset_id" type="hidden" filter="unset" /> <field name="rules" type="rules" label="COM_<%= _.slugify(componentName).toUpperCase() %>_FIELD_RULES_LABEL" filter="rules" validate="rules" class="inputbox" component="com_com_<%= _.slugify(componentName) %>" section="message" /> </fieldset> </form>