com_extensiondistributor/admin/models/forms/release.xml

296 lines
8.8 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_RELEASE_CREATED_DATE_LABEL"
description="COM_EXTENSIONDISTRIBUTOR_RELEASE_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_RELEASE_CREATED_BY_LABEL"
description="COM_EXTENSIONDISTRIBUTOR_RELEASE_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_RELEASE_MODIFIED_DATE_LABEL" description="COM_EXTENSIONDISTRIBUTOR_RELEASE_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_RELEASE_MODIFIED_BY_LABEL"
description="COM_EXTENSIONDISTRIBUTOR_RELEASE_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_RELEASE_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_EXTENSIONDISTRIBUTOR_RELEASE_VERSION_LABEL"
description="COM_EXTENSIONDISTRIBUTOR_RELEASE_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 release"
/>
<!-- Dynamic Fields. -->
<!-- Toolbar Field. Type: Hidden. (joomla) -->
<field
type="hidden"
name="toolbar"
default="NOPE"
filter="STRING"
/>
<!-- Extension Field. Type: Extension. (custom) -->
<field
type="extension"
name="extension"
label="COM_EXTENSIONDISTRIBUTOR_RELEASE_EXTENSION_LABEL"
multiple="false"
button="true"
/>
<!-- Package Field. Type: Packagekey. (custom) -->
<field
type="packagekey"
name="package"
label="COM_EXTENSIONDISTRIBUTOR_RELEASE_PACKAGE_LABEL"
multiple="false"
button="true"
/>
<!-- Version_number Field. Type: Text. (joomla) -->
<field
type="text"
name="version_number"
label="COM_EXTENSIONDISTRIBUTOR_RELEASE_VERSION_NUMBER_LABEL"
class="input-small input-large-text"
required="true"
filter="STRING"
message="COM_EXTENSIONDISTRIBUTOR_RELEASE_VERSION_NUMBER_MESSAGE"
hint="COM_EXTENSIONDISTRIBUTOR_RELEASE_VERSION_NUMBER_HINT"
autocomplete="on"
/>
<!-- File Field. Type: Filelist. (joomla) -->
<field
type="filelist"
name="file"
label="COM_EXTENSIONDISTRIBUTOR_RELEASE_FILE_LABEL"
directory="packages"
default="true"
filter="zip"
hide_default="true"
class="input-xxlarge"
/>
<!-- Release_date Field. Type: Calendar. (joomla) -->
<field
type="calendar"
name="release_date"
label="COM_EXTENSIONDISTRIBUTOR_RELEASE_RELEASE_DATE_LABEL"
default="NOW"
class="input-small"
format="true"
filter="user_utc"
translateformat="true"
showtime="false"
todaybutton="true"
/>
<!-- Reltype Field. Type: List. (joomla) -->
<field
type="list"
name="reltype"
label="COM_EXTENSIONDISTRIBUTOR_RELEASE_RELTYPE_LABEL"
filter="STRING">
<!-- Option Set. -->
<option value="">
COM_EXTENSIONDISTRIBUTOR_RELEASE_PLEASE_SELECT</option>
<option value="security">
COM_EXTENSIONDISTRIBUTOR_RELEASE_SECURITY</option>
<option value="maintenance">
COM_EXTENSIONDISTRIBUTOR_RELEASE_MAINTENANCE</option>
<option value="newversion">
COM_EXTENSIONDISTRIBUTOR_RELEASE_NEW_VERSION</option>
</field>
<!-- Description Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="description"
label="COM_EXTENSIONDISTRIBUTOR_RELEASE_DESCRIPTION_LABEL"
rows="4"
cols="5"
class="span12"
filter="html"
required="false"
/>
<!-- Changelog Field. Type: Subform. (joomla) -->
<field
type="subform"
name="changelog"
label="COM_EXTENSIONDISTRIBUTOR_RELEASE_CHANGELOG_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
buttons="add,remove,move">
<form hidden="true" name="list_changelog_modal" repeat="true">
<!-- Type Field. Type: List. (joomla) -->
<field
type="list"
name="type"
label="COM_EXTENSIONDISTRIBUTOR_RELEASE_TYPE_LABEL"
description="COM_EXTENSIONDISTRIBUTOR_RELEASE_TYPE_DESCRIPTION"
class="span12 chzn-color-state"
filter="STRING"
required="true">
<!-- Option Set. -->
<option value="">
COM_EXTENSIONDISTRIBUTOR_RELEASE_PLEASE_SELECT</option>
<option value="Add">
COM_EXTENSIONDISTRIBUTOR_RELEASE_ADD</option>
<option value="Remove">
COM_EXTENSIONDISTRIBUTOR_RELEASE_REMOVE</option>
<option value="Change">
COM_EXTENSIONDISTRIBUTOR_RELEASE_CHANGE</option>
<option value="Bugfix">
COM_EXTENSIONDISTRIBUTOR_RELEASE_BUG_FIX</option>
</field>
<!-- Comment Field. Type: Text. (joomla) -->
<field
type="text"
name="comment"
label="COM_EXTENSIONDISTRIBUTOR_RELEASE_COMMENT_LABEL"
description="COM_EXTENSIONDISTRIBUTOR_RELEASE_COMMENT_DESCRIPTION"
class="span12"
required="true"
filter="STRING"
autocomplete="on"
/>
</form>
</field>
<!-- Forceupdate Field. Type: Radio. (joomla) -->
<field
type="radio"
name="forceupdate"
label="COM_EXTENSIONDISTRIBUTOR_RELEASE_FORCEUPDATE_LABEL"
description="COM_EXTENSIONDISTRIBUTOR_RELEASE_FORCEUPDATE_DESCRIPTION"
class="btn-group btn-group-yesno"
default="0">
<!-- Option Set. -->
<option value="1">
COM_EXTENSIONDISTRIBUTOR_RELEASE_YES</option>
<option value="0">
COM_EXTENSIONDISTRIBUTOR_RELEASE_NO</option>
</field>
<!-- Zip_content Field. Type: Hidden. (joomla) -->
<field
type="hidden"
name="zip_content"
default="EMPTY"
filter="STRING"
/>
<!-- Upload_package Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="upload_package" description="COM_EXTENSIONDISTRIBUTOR_RELEASE_UPLOAD_PACKAGE_DESCRIPTION" class="upload_package" />
<!-- Xmlpublished Field. Type: Radio. (joomla) -->
<field
type="radio"
name="xmlpublished"
label="COM_EXTENSIONDISTRIBUTOR_RELEASE_XMLPUBLISHED_LABEL"
class="btn-group btn-group-yesno"
default="0">
<!-- Option Set. -->
<option value="1">
COM_EXTENSIONDISTRIBUTOR_RELEASE_YES</option>
<option value="0">
COM_EXTENSIONDISTRIBUTOR_RELEASE_NO</option>
</field>
<!-- Stability Field. Type: List. (joomla) -->
<field
type="list"
name="stability"
label="COM_EXTENSIONDISTRIBUTOR_RELEASE_STABILITY_LABEL"
filter="INT"
required="true"
default="4">
<!-- Option Set. -->
<option value="0">
COM_EXTENSIONDISTRIBUTOR_RELEASE_DEVELOPMENT</option>
<option value="1">
COM_EXTENSIONDISTRIBUTOR_RELEASE_ALPHA</option>
<option value="2">
COM_EXTENSIONDISTRIBUTOR_RELEASE_BETA</option>
<option value="3">
COM_EXTENSIONDISTRIBUTOR_RELEASE_RC</option>
<option value="4">
COM_EXTENSIONDISTRIBUTOR_RELEASE_STABLE</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 release"
translate_label="false"
filter="rules"
validate="rules"
class="inputbox"
component="com_extensiondistributor"
section="release"
/>
</fieldset>
</form>