com_extensiondistributor/admin/models/forms/package.xml

649 lines
19 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_PACKAGE_CREATED_DATE_LABEL"
description="COM_EXTENSIONDISTRIBUTOR_PACKAGE_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_PACKAGE_CREATED_BY_LABEL"
description="COM_EXTENSIONDISTRIBUTOR_PACKAGE_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_PACKAGE_MODIFIED_DATE_LABEL" description="COM_EXTENSIONDISTRIBUTOR_PACKAGE_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_PACKAGE_MODIFIED_BY_LABEL"
description="COM_EXTENSIONDISTRIBUTOR_PACKAGE_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_EXTENSIONDISTRIBUTOR_PACKAGE_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_VERSION_LABEL"
description="COM_EXTENSIONDISTRIBUTOR_PACKAGE_VERSION_DESC"
size="6"
readonly="true"
filter="unset"
/>
<!-- Metakey Field. Type: Textarea (joomla) -->
<field
name="metakey"
type="textarea"
label="JFIELD_META_KEYWORDS_LABEL"
description="JFIELD_META_KEYWORDS_DESC"
rows="3"
cols="30"
/>
<!-- Metadesc Field. Type: Textarea (joomla) -->
<field
name="metadesc"
type="textarea"
label="JFIELD_META_DESCRIPTION_LABEL"
description="JFIELD_META_DESCRIPTION_DESC"
rows="3"
cols="30"
/>
<!-- 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 package"
/>
<!-- Dynamic Fields. -->
<!-- Name Field. Type: Text. (joomla) -->
<field
type="text"
name="name"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_NAME_LABEL"
class="input-xxlarge input-large-text"
required="true"
filter="STRING"
message="COM_EXTENSIONDISTRIBUTOR_PACKAGE_NAME_MESSAGE"
autocomplete="on"
/>
<!-- Description Field. Type: Editor. (joomla) -->
<field
type="editor"
name="description"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_DESCRIPTION_LABEL"
width="100%"
buttons="true"
hide="readmore,pagebreak"
filter="safehtml"
/>
<!-- Release_date Field. Type: Hidden. (joomla) -->
<field
type="hidden"
name="release_date"
default="0000-00-00 00:00:00"
filter="STRING"
/>
<!-- Version_number Field. Type: Hidden. (joomla) -->
<field
type="hidden"
name="version_number"
default="1.0.0"
filter="STRING"
/>
<!-- Update Field. Type: Text. (joomla) -->
<field
type="text"
name="update"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_UPDATE_LABEL"
filter="STRING"
hint="COM_EXTENSIONDISTRIBUTOR_PACKAGE_UPDATE_HINT"
/>
<!-- Free Field. Type: Radio. (joomla) -->
<field
type="radio"
name="free"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_FREE_LABEL"
class="btn-group btn-group-yesno"
default="1">
<!-- Option Set. -->
<option value="1">
COM_EXTENSIONDISTRIBUTOR_PACKAGE_YES</option>
<option value="0">
COM_EXTENSIONDISTRIBUTOR_PACKAGE_NO</option>
</field>
<!-- Add_php_method_uninstall Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_method_uninstall"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_ADD_PHP_METHOD_UNINSTALL_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_EXTENSIONDISTRIBUTOR_PACKAGE_YES</option>
<option value="0">
COM_EXTENSIONDISTRIBUTOR_PACKAGE_NO</option>
</field>
<!-- Add_php_postflight_update Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_postflight_update"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_ADD_PHP_POSTFLIGHT_UPDATE_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_EXTENSIONDISTRIBUTOR_PACKAGE_YES</option>
<option value="0">
COM_EXTENSIONDISTRIBUTOR_PACKAGE_NO</option>
</field>
<!-- Add_php_postflight_install Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_postflight_install"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_ADD_PHP_POSTFLIGHT_INSTALL_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_EXTENSIONDISTRIBUTOR_PACKAGE_YES</option>
<option value="0">
COM_EXTENSIONDISTRIBUTOR_PACKAGE_NO</option>
</field>
<!-- Add_php_preflight_uninstall Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_preflight_uninstall"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_ADD_PHP_PREFLIGHT_UNINSTALL_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_EXTENSIONDISTRIBUTOR_PACKAGE_YES</option>
<option value="0">
COM_EXTENSIONDISTRIBUTOR_PACKAGE_NO</option>
</field>
<!-- Infourl Field. Type: Url. (joomla) -->
<field
type="url"
name="infourl"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_INFOURL_LABEL"
class="input-xxlarge"
required="true"
relative="false"
filter="url"
validated="url"
scheme="http,https"
/>
<!-- Useupdate Field. Type: Radio. (joomla) -->
<field
type="radio"
name="useupdate"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_USEUPDATE_LABEL"
class="btn-group btn-group-yesno"
default="1">
<!-- Option Set. -->
<option value="1">
COM_EXTENSIONDISTRIBUTOR_PACKAGE_YES</option>
<option value="0">
COM_EXTENSIONDISTRIBUTOR_PACKAGE_NO</option>
</field>
<!-- Packager Field. Type: Text. (joomla) -->
<field
type="text"
name="packager"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_PACKAGER_LABEL"
class="input-xxlarge"
required="true"
filter="STRING"
autocomplete="on"
/>
<!-- File Field. Type: Filelist. (joomla) -->
<field
type="filelist"
name="file"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_FILE_LABEL"
directory="jcb"
default="true"
filter="zip"
hide_default="true"
class="input-xxlarge"
/>
<!-- Upload_jcb Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="upload_jcb" description="COM_EXTENSIONDISTRIBUTOR_PACKAGE_UPLOAD_JCB_DESCRIPTION" class="upload_jcb" />
<!-- Note_jcb_package Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_jcb_package" label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_NOTE_JCB_PACKAGE_LABEL" description="COM_EXTENSIONDISTRIBUTOR_PACKAGE_NOTE_JCB_PACKAGE_DESCRIPTION" heading="h4" class="alert alert-info note_jcb_package" close="false" />
<!-- Jed Field. Type: Url. (joomla) -->
<field
type="url"
name="jed"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_JED_LABEL"
class="input-xxlarge"
relative="false"
filter="url"
validated="url"
scheme="https"
/>
<!-- Newfilename Field. Type: Text. (joomla) -->
<field
type="text"
name="newfilename"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_NEWFILENAME_LABEL"
default="pkg_{packagename}_v{major}_{minor}_{release}_{stability}.zip"
description="COM_EXTENSIONDISTRIBUTOR_PACKAGE_NEWFILENAME_DESCRIPTION"
class="input-xxlarge"
filter="STRING"
autocomplete="on"
/>
<!-- Catid Field. Type: Category. (joomla) -->
<field
type="category"
name="catid"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_CATID_LABEL"
extension="com_extensiondistributor"
class="inputbox"
published="1"
multiple="false"
othername="COM_EXTENSIONDISTRIBUTOR_PACKAGE_CATID_OTHERNAME"
view="COM_EXTENSIONDISTRIBUTOR_PACKAGE_CATID_VIEW"
views="COM_EXTENSIONDISTRIBUTOR_PACKAGE_CATID_VIEWS"
/>
<!-- License Field. Type: Text. (joomla) -->
<field
type="text"
name="license"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_LICENSE_LABEL"
class="input-xxlarge"
required="true"
filter="STRING"
autocomplete="on"
/>
<!-- Php_minimum Field. Type: Text. (joomla) -->
<field
type="text"
name="php_minimum"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_PHP_MINIMUM_LABEL"
default="7.0"
class="input-xxlarge"
required="true"
filter="STRING"
autocomplete="on"
/>
<!-- Blockchilduninstall Field. Type: Radio. (joomla) -->
<field
type="radio"
name="blockchilduninstall"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_BLOCKCHILDUNINSTALL_LABEL"
class="btn-group btn-group-yesno"
default="1">
<!-- Option Set. -->
<option value="1">
COM_EXTENSIONDISTRIBUTOR_PACKAGE_YES</option>
<option value="0">
COM_EXTENSIONDISTRIBUTOR_PACKAGE_NO</option>
</field>
<!-- Packagerurl Field. Type: Url. (joomla) -->
<field
type="url"
name="packagerurl"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_PACKAGERURL_LABEL"
class="input-xxlarge"
required="true"
relative="false"
filter="url"
validated="url"
scheme="http,https"
hint="COM_EXTENSIONDISTRIBUTOR_PACKAGE_PACKAGERURL_HINT"
/>
<!-- Add_php_preflight_install Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_preflight_install"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_ADD_PHP_PREFLIGHT_INSTALL_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_EXTENSIONDISTRIBUTOR_PACKAGE_YES</option>
<option value="0">
COM_EXTENSIONDISTRIBUTOR_PACKAGE_NO</option>
</field>
<!-- Copyright Field. Type: Text. (joomla) -->
<field
type="text"
name="copyright"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_COPYRIGHT_LABEL"
class="input-xxlarge"
required="true"
filter="STRING"
autocomplete="on"
/>
<!-- Add_php_preflight_update Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_preflight_update"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_ADD_PHP_PREFLIGHT_UPDATE_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_EXTENSIONDISTRIBUTOR_PACKAGE_YES</option>
<option value="0">
COM_EXTENSIONDISTRIBUTOR_PACKAGE_NO</option>
</field>
<!-- Files Field. Type: Subform. (joomla) -->
<field
type="subform"
name="files"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_FILES_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
buttons="add,remove,move">
<form hidden="true" name="list_files_modal" repeat="true">
<!-- Extension Field. Type: Extensionkey. (custom) -->
<field
type="extensionkey"
name="extension"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_EXTENSION_LABEL"
description="COM_EXTENSIONDISTRIBUTOR_PACKAGE_EXTENSION_DESCRIPTION"
class="input-xxlarge"
button="false"
/>
<!-- Publish Field. Type: Radio. (joomla) -->
<field
type="radio"
name="publish"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_PUBLISH_LABEL"
description="COM_EXTENSIONDISTRIBUTOR_PACKAGE_PUBLISH_DESCRIPTION"
class="btn-group btn-group-yesno"
default="1">
<!-- Option Set. -->
<option value="1">
COM_EXTENSIONDISTRIBUTOR_PACKAGE_YES</option>
<option value="0">
COM_EXTENSIONDISTRIBUTOR_PACKAGE_NO</option>
</field>
</form>
</field>
<!-- Image Field. Type: Media. (joomla) -->
<field
type="media"
name="image"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_IMAGE_LABEL"
directory="extensions"
preview="tooltip"
/>
<!-- Php_preflight_install Field. Type: Editor. (joomla) -->
<field
type="editor"
name="php_preflight_install"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_PHP_PREFLIGHT_INSTALL_LABEL"
description="COM_EXTENSIONDISTRIBUTOR_PACKAGE_PHP_PREFLIGHT_INSTALL_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
validate="code"
/>
<!-- Alias Field. Type: Text. (joomla) -->
<field
type="text"
name="alias"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_ALIAS_LABEL"
description="JFIELD_ALIAS_DESC"
filter="STRING"
hint="JFIELD_ALIAS_PLACEHOLDER"
autocomplete="on"
/>
<!-- Php_preflight_update Field. Type: Editor. (joomla) -->
<field
type="editor"
name="php_preflight_update"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_PHP_PREFLIGHT_UPDATE_LABEL"
description="COM_EXTENSIONDISTRIBUTOR_PACKAGE_PHP_PREFLIGHT_UPDATE_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
validate="code"
/>
<!-- Packagename Field. Type: Text. (joomla) -->
<field
type="text"
name="packagename"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_PACKAGENAME_LABEL"
class="input-xxlarge"
required="true"
filter="STRING"
autocomplete="on"
/>
<!-- Php_preflight_uninstall Field. Type: Editor. (joomla) -->
<field
type="editor"
name="php_preflight_uninstall"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_PHP_PREFLIGHT_UNINSTALL_LABEL"
description="COM_EXTENSIONDISTRIBUTOR_PACKAGE_PHP_PREFLIGHT_UNINSTALL_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
validate="code"
/>
<!-- Author Field. Type: Text. (joomla) -->
<field
type="text"
name="author"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_AUTHOR_LABEL"
class="input-xxlarge"
required="true"
filter="STRING"
autocomplete="on"
/>
<!-- Php_postflight_install Field. Type: Editor. (joomla) -->
<field
type="editor"
name="php_postflight_install"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_PHP_POSTFLIGHT_INSTALL_LABEL"
description="COM_EXTENSIONDISTRIBUTOR_PACKAGE_PHP_POSTFLIGHT_INSTALL_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
validate="code"
/>
<!-- Authorurl Field. Type: Url. (joomla) -->
<field
type="url"
name="authorurl"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_AUTHORURL_LABEL"
class="input-xxlarge"
required="true"
relative="false"
filter="url"
validated="url"
scheme="http,https"
hint="COM_EXTENSIONDISTRIBUTOR_PACKAGE_AUTHORURL_HINT"
/>
<!-- Php_postflight_update Field. Type: Editor. (joomla) -->
<field
type="editor"
name="php_postflight_update"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_PHP_POSTFLIGHT_UPDATE_LABEL"
description="COM_EXTENSIONDISTRIBUTOR_PACKAGE_PHP_POSTFLIGHT_UPDATE_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
validate="code"
/>
<!-- Authoremail Field. Type: Email. (joomla) -->
<field
type="email"
name="authoremail"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_AUTHOREMAIL_LABEL"
class="input-xxlarge"
required="true"
filter="STRING"
validate="email"
unique="false"
message="COM_EXTENSIONDISTRIBUTOR_PACKAGE_AUTHOREMAIL_MESSAGE"
hint="COM_EXTENSIONDISTRIBUTOR_PACKAGE_AUTHOREMAIL_HINT"
autocomplete="on"
/>
<!-- Php_method_uninstall Field. Type: Editor. (joomla) -->
<field
type="editor"
name="php_method_uninstall"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_PHP_METHOD_UNINSTALL_LABEL"
description="COM_EXTENSIONDISTRIBUTOR_PACKAGE_PHP_METHOD_UNINSTALL_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
validate="code"
/>
<!-- Targetplatform Field. Type: Text. (joomla) -->
<field
type="text"
name="targetplatform"
label="COM_EXTENSIONDISTRIBUTOR_PACKAGE_TARGETPLATFORM_LABEL"
default="3.(9|10)"
description="COM_EXTENSIONDISTRIBUTOR_PACKAGE_TARGETPLATFORM_DESCRIPTION"
class="input-xxlarge"
required="true"
filter="STRING"
autocomplete="on"
/>
</fieldset>
<!-- Metadata Fields. -->
<fields name="metadata" label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
<fieldset name="vdmmetadata"
label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
<!-- Robots Field. Type: List (joomla) -->
<field name="robots"
type="list"
label="JFIELD_METADATA_ROBOTS_LABEL"
description="JFIELD_METADATA_ROBOTS_DESC" >
<option value="">JGLOBAL_USE_GLOBAL</option>
<option value="index, follow">JGLOBAL_INDEX_FOLLOW</option>
<option value="noindex, follow">JGLOBAL_NOINDEX_FOLLOW</option>
<option value="index, nofollow">JGLOBAL_INDEX_NOFOLLOW</option>
<option value="noindex, nofollow">JGLOBAL_NOINDEX_NOFOLLOW</option>
</field>
<!-- Rights Field. Type: Textarea (joomla) -->
<field name="rights" type="textarea" label="JFIELD_META_RIGHTS_LABEL"
description="JFIELD_META_RIGHTS_DESC" required="false" filter="string"
cols="30" rows="2"
/>
</fieldset>
</fields>
<!-- 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 package"
translate_label="false"
filter="rules"
validate="rules"
class="inputbox"
component="com_extensiondistributor"
section="package"
/>
</fieldset>
</form>