forked from joomla/Component-Builder
Robot
0cbf3c0e71
Add new subform classes. Fix registry class methods return type. Update all list and custom fields to use the new layouts.
278 lines
10 KiB
XML
278 lines
10 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<form
|
|
addruleprefix="VDM\Component\Componentbuilder\Administrator\Rule"
|
|
addfieldprefix="VDM\Component\Componentbuilder\Administrator\Field"
|
|
>
|
|
<config>
|
|
<inlinehelp button="show"/>
|
|
</config>
|
|
<fieldset name="details">
|
|
<!-- Default Fields. -->
|
|
<!-- Id Field. Type: Text (joomla) -->
|
|
<field
|
|
name="id"
|
|
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
|
|
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
|
|
readonly="true"
|
|
/>
|
|
<!-- Date Created Field. Type: Calendar (joomla) -->
|
|
<field
|
|
name="created"
|
|
type="calendar"
|
|
label="COM_COMPONENTBUILDER_COMPONENT_ROUTER_CREATED_DATE_LABEL"
|
|
description="COM_COMPONENTBUILDER_COMPONENT_ROUTER_CREATED_DATE_DESC"
|
|
size="22"
|
|
format="%Y-%m-%d %H:%M:%S"
|
|
filter="user_utc"
|
|
/>
|
|
<!-- User Created Field. Type: User (joomla) -->
|
|
<field
|
|
name="created_by"
|
|
type="user"
|
|
label="COM_COMPONENTBUILDER_COMPONENT_ROUTER_CREATED_BY_LABEL"
|
|
description="COM_COMPONENTBUILDER_COMPONENT_ROUTER_CREATED_BY_DESC"
|
|
/>
|
|
<!-- Published Field. Type: List (joomla) -->
|
|
<field name="published" type="list" label="JSTATUS"
|
|
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
|
|
filter="intval" size="1" default="1" >
|
|
<option value="1">
|
|
JPUBLISHED</option>
|
|
<option value="0">
|
|
JUNPUBLISHED</option>
|
|
<option value="2">
|
|
JARCHIVED</option>
|
|
<option value="-2">
|
|
JTRASHED</option>
|
|
</field>
|
|
<!-- Date Modified Field. Type: Calendar (joomla) -->
|
|
<field name="modified" type="calendar" class="readonly"
|
|
label="COM_COMPONENTBUILDER_COMPONENT_ROUTER_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_COMPONENT_ROUTER_MODIFIED_DATE_DESC"
|
|
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
|
|
<!-- User Modified Field. Type: User (joomla) -->
|
|
<field name="modified_by" type="user"
|
|
label="COM_COMPONENTBUILDER_COMPONENT_ROUTER_MODIFIED_BY_LABEL"
|
|
description="COM_COMPONENTBUILDER_COMPONENT_ROUTER_MODIFIED_BY_DESC"
|
|
class="readonly"
|
|
readonly="true"
|
|
filter="unset"
|
|
/>
|
|
<!-- Access Field. Type: Accesslevel (joomla) -->
|
|
<field name="access"
|
|
type="accesslevel"
|
|
label="JFIELD_ACCESS_LABEL"
|
|
description="JFIELD_ACCESS_DESC"
|
|
default="1"
|
|
required="false"
|
|
/>
|
|
<!-- Ordering Field. Type: Numbers (joomla) -->
|
|
<field
|
|
name="ordering"
|
|
type="number"
|
|
class="inputbox validate-ordering"
|
|
label="COM_COMPONENTBUILDER_COMPONENT_ROUTER_ORDERING_LABEL"
|
|
description=""
|
|
default="0"
|
|
size="6"
|
|
required="false"
|
|
/>
|
|
<!-- Version Field. Type: Text (joomla) -->
|
|
<field
|
|
name="version"
|
|
type="text"
|
|
class="readonly"
|
|
label="COM_COMPONENTBUILDER_COMPONENT_ROUTER_VERSION_LABEL"
|
|
description="COM_COMPONENTBUILDER_COMPONENT_ROUTER_VERSION_DESC"
|
|
size="6"
|
|
default="1"
|
|
readonly="true"
|
|
filter="unset"
|
|
/>
|
|
<!-- Was added due to Permissions JS needing a Title field -->
|
|
<!-- Let us know at gh-629 should this change -->
|
|
<!-- https://github.com/vdm-io/Joomla-Component-Builder/issues/629#issuecomment-750117235 -->
|
|
<field
|
|
name="title"
|
|
type="hidden"
|
|
default="componentbuilder component_router"
|
|
/>
|
|
<!-- Dynamic Fields. -->
|
|
<!-- Joomla_component Field. Type: Joomlacomponents. (custom) -->
|
|
<field
|
|
type="joomlacomponents"
|
|
name="joomla_component"
|
|
label="COM_COMPONENTBUILDER_COMPONENT_ROUTER_JOOMLA_COMPONENT_LABEL"
|
|
description="COM_COMPONENTBUILDER_COMPONENT_ROUTER_JOOMLA_COMPONENT_DESCRIPTION"
|
|
class="list_class"
|
|
layout="joomla.form.field.list-fancy-select"
|
|
multiple="false"
|
|
required="true"
|
|
readonly="true"
|
|
button="false"
|
|
/>
|
|
<!-- Mode_constructor_before_parent Field. Type: Radio. (joomla) -->
|
|
<field
|
|
type="radio"
|
|
name="mode_constructor_before_parent"
|
|
label="COM_COMPONENTBUILDER_COMPONENT_ROUTER_MODE_CONSTRUCTOR_BEFORE_PARENT_LABEL"
|
|
description="COM_COMPONENTBUILDER_COMPONENT_ROUTER_MODE_CONSTRUCTOR_BEFORE_PARENT_DESCRIPTION"
|
|
class="btn-group btn-group-yesno"
|
|
default="1">
|
|
<!-- Option Set. -->
|
|
<option value="1">
|
|
COM_COMPONENTBUILDER_COMPONENT_ROUTER_DEFAULT</option>
|
|
<option value="2">
|
|
COM_COMPONENTBUILDER_COMPONENT_ROUTER_MANUAL</option>
|
|
<option value="3">
|
|
COM_COMPONENTBUILDER_COMPONENT_ROUTER_CODE</option>
|
|
</field>
|
|
<!-- Mode_constructor_after_parent Field. Type: Radio. (joomla) -->
|
|
<field
|
|
type="radio"
|
|
name="mode_constructor_after_parent"
|
|
label="COM_COMPONENTBUILDER_COMPONENT_ROUTER_MODE_CONSTRUCTOR_AFTER_PARENT_LABEL"
|
|
description="COM_COMPONENTBUILDER_COMPONENT_ROUTER_MODE_CONSTRUCTOR_AFTER_PARENT_DESCRIPTION"
|
|
class="btn-group btn-group-yesno"
|
|
default="1">
|
|
<!-- Option Set. -->
|
|
<option value="1">
|
|
COM_COMPONENTBUILDER_COMPONENT_ROUTER_NONE</option>
|
|
<option value="3">
|
|
COM_COMPONENTBUILDER_COMPONENT_ROUTER_CODE</option>
|
|
</field>
|
|
<!-- Mode_methods Field. Type: Radio. (joomla) -->
|
|
<field
|
|
type="radio"
|
|
name="mode_methods"
|
|
label="COM_COMPONENTBUILDER_COMPONENT_ROUTER_MODE_METHODS_LABEL"
|
|
description="COM_COMPONENTBUILDER_COMPONENT_ROUTER_MODE_METHODS_DESCRIPTION"
|
|
class="btn-group btn-group-yesno"
|
|
default="1">
|
|
<!-- Option Set. -->
|
|
<option value="0">
|
|
COM_COMPONENTBUILDER_COMPONENT_ROUTER_NONE</option>
|
|
<option value="1">
|
|
COM_COMPONENTBUILDER_COMPONENT_ROUTER_DEFAULT</option>
|
|
<option value="3">
|
|
COM_COMPONENTBUILDER_COMPONENT_ROUTER_CODE</option>
|
|
</field>
|
|
<!-- Methods_code Field. Type: Editor. (joomla) -->
|
|
<field
|
|
type="editor"
|
|
name="methods_code"
|
|
label="COM_COMPONENTBUILDER_COMPONENT_ROUTER_METHODS_CODE_LABEL"
|
|
description="COM_COMPONENTBUILDER_COMPONENT_ROUTER_METHODS_CODE_DESCRIPTION"
|
|
width="100%"
|
|
height="800px"
|
|
cols="40"
|
|
rows="300"
|
|
buttons="no"
|
|
syntax="php"
|
|
editor="codemirror|none"
|
|
filter="raw"
|
|
validate="code"
|
|
showon="mode_methods:3"
|
|
/>
|
|
<!-- Constructor_after_parent_code Field. Type: Editor. (joomla) -->
|
|
<field
|
|
type="editor"
|
|
name="constructor_after_parent_code"
|
|
label="COM_COMPONENTBUILDER_COMPONENT_ROUTER_CONSTRUCTOR_AFTER_PARENT_CODE_LABEL"
|
|
description="COM_COMPONENTBUILDER_COMPONENT_ROUTER_CONSTRUCTOR_AFTER_PARENT_CODE_DESCRIPTION"
|
|
width="100%"
|
|
height="800px"
|
|
cols="40"
|
|
rows="300"
|
|
buttons="no"
|
|
syntax="php"
|
|
editor="codemirror|none"
|
|
filter="raw"
|
|
validate="code"
|
|
showon="mode_constructor_after_parent:3"
|
|
/>
|
|
<!-- Constructor_before_parent_manual Field. Type: Subform. (joomla) -->
|
|
<field
|
|
type="subform"
|
|
name="constructor_before_parent_manual"
|
|
label="COM_COMPONENTBUILDER_COMPONENT_ROUTER_CONSTRUCTOR_BEFORE_PARENT_MANUAL_LABEL"
|
|
layout="repeatablejcb"
|
|
multiple="true"
|
|
description="COM_COMPONENTBUILDER_COMPONENT_ROUTER_CONSTRUCTOR_BEFORE_PARENT_MANUAL_DESCRIPTION"
|
|
icon="list"
|
|
showon="mode_constructor_before_parent:2">
|
|
<form hidden="true" name="list_constructor_before_parent_manual_modal" repeat="true">
|
|
<!-- Siteview Field. Type: Siteviews. (custom) -->
|
|
<field
|
|
type="siteviews"
|
|
name="siteview"
|
|
label="COM_COMPONENTBUILDER_COMPONENT_ROUTER_SITEVIEW_LABEL"
|
|
description="COM_COMPONENTBUILDER_COMPONENT_ROUTER_SITEVIEW_DESCRIPTION"
|
|
class="fieldMedium"
|
|
multiple="false"
|
|
required="true"
|
|
button="false"
|
|
/>
|
|
</form>
|
|
</field>
|
|
<!-- Constructor_before_parent_code Field. Type: Editor. (joomla) -->
|
|
<field
|
|
type="editor"
|
|
name="constructor_before_parent_code"
|
|
label="COM_COMPONENTBUILDER_COMPONENT_ROUTER_CONSTRUCTOR_BEFORE_PARENT_CODE_LABEL"
|
|
description="COM_COMPONENTBUILDER_COMPONENT_ROUTER_CONSTRUCTOR_BEFORE_PARENT_CODE_DESCRIPTION"
|
|
width="100%"
|
|
height="800px"
|
|
cols="40"
|
|
rows="300"
|
|
buttons="no"
|
|
syntax="php"
|
|
editor="codemirror|none"
|
|
filter="raw"
|
|
validate="code"
|
|
showon="mode_constructor_before_parent:3"
|
|
/>
|
|
<!-- Note_mode_constructor_before_parent_manual Field. Type: Note. A None Database Field. (joomla) -->
|
|
<field type="note" name="note_mode_constructor_before_parent_manual" label="COM_COMPONENTBUILDER_COMPONENT_ROUTER_NOTE_MODE_CONSTRUCTOR_BEFORE_PARENT_MANUAL_LABEL" description="COM_COMPONENTBUILDER_COMPONENT_ROUTER_NOTE_MODE_CONSTRUCTOR_BEFORE_PARENT_MANUAL_DESCRIPTION" heading="h4" class="alert alert-error note_mode_constructor_before_parent_manual" showon="mode_constructor_before_parent:2" />
|
|
<!-- Note_router_settings_advance Field. Type: Note. A None Database Field. (joomla) -->
|
|
<field type="note" name="note_router_settings_advance" label="COM_COMPONENTBUILDER_COMPONENT_ROUTER_NOTE_ROUTER_SETTINGS_ADVANCE_LABEL" description="COM_COMPONENTBUILDER_COMPONENT_ROUTER_NOTE_ROUTER_SETTINGS_ADVANCE_DESCRIPTION" heading="h1" class="alert alert-info note_router_settings_advance" showon="router_settings_details_switch:3" />
|
|
<!-- Note_router_settings Field. Type: Note. A None Database Field. (joomla) -->
|
|
<field type="note" name="note_router_settings" label="COM_COMPONENTBUILDER_COMPONENT_ROUTER_NOTE_ROUTER_SETTINGS_LABEL" description="COM_COMPONENTBUILDER_COMPONENT_ROUTER_NOTE_ROUTER_SETTINGS_DESCRIPTION" heading="h4" class="alert alert-info note_router_settings" showon="router_settings_details_switch:2" />
|
|
<!-- Router_settings_details_switch Field. Type: Radio. (joomla) -->
|
|
<field
|
|
type="radio"
|
|
name="router_settings_details_switch"
|
|
label="COM_COMPONENTBUILDER_COMPONENT_ROUTER_ROUTER_SETTINGS_DETAILS_SWITCH_LABEL"
|
|
class="btn-group btn-group-yesno"
|
|
default="1">
|
|
<!-- Option Set. -->
|
|
<option value="1">
|
|
COM_COMPONENTBUILDER_COMPONENT_ROUTER_NONE</option>
|
|
<option value="2">
|
|
COM_COMPONENTBUILDER_COMPONENT_ROUTER_BASIC</option>
|
|
<option value="3">
|
|
COM_COMPONENTBUILDER_COMPONENT_ROUTER_DETAILS</option>
|
|
</field>
|
|
</fieldset>
|
|
|
|
<!-- Access Control Fields. -->
|
|
<fieldset name="accesscontrol">
|
|
<!-- Asset Id Field. Type: Hidden (joomla) -->
|
|
<field
|
|
name="asset_id"
|
|
type="hidden"
|
|
filter="unset"
|
|
/>
|
|
<!-- Rules Field. Type: Rules (joomla) -->
|
|
<field
|
|
name="rules"
|
|
type="rules"
|
|
label="Permissions in relation to this component_router"
|
|
translate_label="false"
|
|
filter="rules"
|
|
validate="rules"
|
|
class="inputbox"
|
|
component="com_componentbuilder"
|
|
section="component_router"
|
|
/>
|
|
</fieldset>
|
|
</form> |