com_extensiondistributor/admin/models/forms/extension.xml

275 lines
8.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<form
addrulepath="/administrator/components/com_extensiondistributor/models/rules"
addfieldpath="/administrator/components/com_extensiondistributor/models/fields"
>
<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_EXTENSIONDISTRIBUTOR_EXTENSION_CREATED_DATE_LABEL"
description="COM_EXTENSIONDISTRIBUTOR_EXTENSION_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_EXTENSIONDISTRIBUTOR_EXTENSION_CREATED_BY_LABEL"
description="COM_EXTENSIONDISTRIBUTOR_EXTENSION_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_EXTENSIONDISTRIBUTOR_EXTENSION_MODIFIED_DATE_LABEL" description="COM_EXTENSIONDISTRIBUTOR_EXTENSION_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_EXTENSIONDISTRIBUTOR_EXTENSION_MODIFIED_BY_LABEL"
description="COM_EXTENSIONDISTRIBUTOR_EXTENSION_MODIFIED_BY_DESC"
class="readonly"
readonly="true"
filter="unset"
/>
<!-- Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_EXTENSIONDISTRIBUTOR_EXTENSION_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_EXTENSIONDISTRIBUTOR_EXTENSION_VERSION_LABEL"
description="COM_EXTENSIONDISTRIBUTOR_EXTENSION_VERSION_DESC"
size="6"
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="extensiondistributor extension"
/>
<!-- Dynamic Fields. -->
<!-- Name Field. Type: Text. (joomla) -->
<field
type="text"
name="name"
label="COM_EXTENSIONDISTRIBUTOR_EXTENSION_NAME_LABEL"
class="input-xxlarge input-large-text"
required="true"
filter="STRING"
message="COM_EXTENSIONDISTRIBUTOR_EXTENSION_NAME_MESSAGE"
autocomplete="on"
/>
<!-- Type Field. Type: List. (joomla) -->
<field
type="list"
name="type"
label="COM_EXTENSIONDISTRIBUTOR_EXTENSION_TYPE_LABEL"
class="chzn-color-state"
filter="STRING"
required="true">
<!-- Option Set. -->
<option value="">
COM_EXTENSIONDISTRIBUTOR_EXTENSION_PLEASE_SELECT</option>
<option value="component">
COM_EXTENSIONDISTRIBUTOR_EXTENSION_COMPONENT</option>
<option value="module">
COM_EXTENSIONDISTRIBUTOR_EXTENSION_MODULE</option>
<option value="plugin">
COM_EXTENSIONDISTRIBUTOR_EXTENSION_PLUGIN</option>
<option value="library">
COM_EXTENSIONDISTRIBUTOR_EXTENSION_LIBRARY</option>
<option value="template">
COM_EXTENSIONDISTRIBUTOR_EXTENSION_TEMPLATE</option>
<option value="language">
COM_EXTENSIONDISTRIBUTOR_EXTENSION_LANGUAGE</option>
<option value="file">
COM_EXTENSIONDISTRIBUTOR_EXTENSION_FILE</option>
</field>
<!-- Version_number Field. Type: Hidden. (joomla) -->
<field
type="hidden"
name="version_number"
default="1.0.0"
filter="STRING"
/>
<!-- Release_date Field. Type: Hidden. (joomla) -->
<field
type="hidden"
name="release_date"
default="0000-00-00 00:00:00"
filter="STRING"
/>
<!-- Update Field. Type: Text. (joomla) -->
<field
type="text"
name="update"
label="COM_EXTENSIONDISTRIBUTOR_EXTENSION_UPDATE_LABEL"
filter="STRING"
hint="COM_EXTENSIONDISTRIBUTOR_EXTENSION_UPDATE_HINT"
/>
<!-- Group Field. Type: Text. (joomla) -->
<field
type="text"
name="group"
label="COM_EXTENSIONDISTRIBUTOR_EXTENSION_GROUP_LABEL"
filter="STRING"
/>
<!-- Client Field. Type: List. (joomla) -->
<field
type="list"
name="client"
label="COM_EXTENSIONDISTRIBUTOR_EXTENSION_CLIENT_LABEL"
filter="STRING">
<!-- Option Set. -->
<option value="">
COM_EXTENSIONDISTRIBUTOR_EXTENSION_PLEASE_SELECT</option>
<option value="site">
COM_EXTENSIONDISTRIBUTOR_EXTENSION_SITE</option>
<option value="administrator">
COM_EXTENSIONDISTRIBUTOR_EXTENSION_ADMINISTRATOR</option>
</field>
<!-- Alias Field. Type: Text. (joomla) -->
<field
type="text"
name="alias"
label="COM_EXTENSIONDISTRIBUTOR_EXTENSION_ALIAS_LABEL"
description="JFIELD_ALIAS_DESC"
filter="STRING"
hint="JFIELD_ALIAS_PLACEHOLDER"
autocomplete="on"
/>
<!-- Newfilename Field. Type: Text. (joomla) -->
<field
type="text"
name="newfilename"
label="COM_EXTENSIONDISTRIBUTOR_EXTENSION_NEWFILENAME_LABEL"
default="{type}{_group}_{element}_v{major}_{minor}_{release}_{stability}.zip"
description="COM_EXTENSIONDISTRIBUTOR_EXTENSION_NEWFILENAME_DESCRIPTION"
class="input-xxlarge"
filter="STRING"
autocomplete="on"
showon="keepfilename:0"
/>
<!-- Keepfilename Field. Type: Radio. (joomla) -->
<field
type="radio"
name="keepfilename"
label="COM_EXTENSIONDISTRIBUTOR_EXTENSION_KEEPFILENAME_LABEL"
class="btn-group btn-group-yesno"
default="1">
<!-- Option Set. -->
<option value="1">
COM_EXTENSIONDISTRIBUTOR_EXTENSION_YES</option>
<option value="0">
COM_EXTENSIONDISTRIBUTOR_EXTENSION_NO</option>
</field>
<!-- Element Field. Type: Text. (joomla) -->
<field
type="text"
name="element"
label="COM_EXTENSIONDISTRIBUTOR_EXTENSION_ELEMENT_LABEL"
required="true"
filter="STRING"
/>
<!-- Tags Field. Type: Tag. (joomla) -->
<field
type="tag"
name="tags"
mode="ajax"
label="COM_EXTENSIONDISTRIBUTOR_EXTENSION_TAGS_LABEL"
description="COM_EXTENSIONDISTRIBUTOR_EXTENSION_TAGS_DESCRIPTION"
class="inputbox small"
multiple="true"
/>
<!-- Catid Field. Type: Category. (joomla) -->
<field
type="category"
name="catid"
label="COM_EXTENSIONDISTRIBUTOR_EXTENSION_CATID_LABEL"
extension="com_extensiondistributor"
class="inputbox"
published="1"
multiple="false"
othername="COM_EXTENSIONDISTRIBUTOR_EXTENSION_CATID_OTHERNAME"
view="COM_EXTENSIONDISTRIBUTOR_EXTENSION_CATID_VIEW"
views="COM_EXTENSIONDISTRIBUTOR_EXTENSION_CATID_VIEWS"
/>
<!-- Image Field. Type: Media. (joomla) -->
<field
type="media"
name="image"
label="COM_EXTENSIONDISTRIBUTOR_EXTENSION_IMAGE_LABEL"
directory="extensions"
preview="tooltip"
/>
<!-- Description Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="description"
label="COM_EXTENSIONDISTRIBUTOR_EXTENSION_DESCRIPTION_LABEL"
rows="10"
cols="10"
class="span12"
filter="safehtml"
/>
</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 extension"
translate_label="false"
filter="rules"
validate="rules"
class="inputbox"
component="com_extensiondistributor"
section="extension"
/>
</fieldset>
</form>