Component-Builder/admin/models/forms/field.xml

387 lines
20 KiB
XML
Raw Normal View History

2016-01-30 20:28:43 +00:00
<?xml version="1.0" encoding="utf-8"?>
<form
addrulepath="/administrator/components/com_componentbuilder/models/rules"
addfieldpath="/administrator/components/com_componentbuilder/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" />
<!-- Date Created Field. Type: Calendar (joomla)-->
<field name="created"
type="calendar"
label="COM_COMPONENTBUILDER_FIELD_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_FIELD_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_FIELD_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_FIELD_CREATED_BY_DESC" />
<!-- Published Field. Type: List (joomla)-->
<field name="published"
type="list"
label="JSTATUS">
<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_FIELD_MODIFIED_DATE_LABEL"
description="COM_COMPONENTBUILDER_FIELD_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_FIELD_MODIFIED_BY_LABEL"
description="COM_COMPONENTBUILDER_FIELD_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_FIELD_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false" />
<!-- Version Field. Type: Text (joomla)-->
<field name="version"
type="text"
class="readonly"
label="COM_COMPONENTBUILDER_FIELD_VERSION_LABEL"
description="COM_COMPONENTBUILDER_FIELD_VERSION_DESC"
size="6"
readonly="true"
filter="unset" />
<!-- Dynamic Fields.-->
<!-- Name Field. Type: Text. (joomla)-->
<field type="text"
name="name"
label="COM_COMPONENTBUILDER_FIELD_NAME_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_FIELD_NAME_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_FIELD_NAME_MESSAGE"
hint="COM_COMPONENTBUILDER_FIELD_NAME_HINT" />
<!-- Fieldtype Field. Type: Fieldtypes. (custom)-->
<field type="fieldtypes"
name="fieldtype"
label="COM_COMPONENTBUILDER_FIELD_FIELDTYPE_LABEL"
description="COM_COMPONENTBUILDER_FIELD_FIELDTYPE_DESCRIPTION"
class="btn-group"
multiple="false"
required="true"
button="true" />
<!-- Datatype Field. Type: List. (joomla)-->
<field type="list"
name="datatype"
label="COM_COMPONENTBUILDER_FIELD_DATATYPE_LABEL"
description="COM_COMPONENTBUILDER_FIELD_DATATYPE_DESCRIPTION"
class="btn-group"
multiple="false"
required="true">
<!-- Option Set.-->
<option value="CHAR">COM_COMPONENTBUILDER_FIELD_CHAR</option>
<option value="VARCHAR">COM_COMPONENTBUILDER_FIELD_VARCHAR</option>
<option value="TEXT">COM_COMPONENTBUILDER_FIELD_TEXT</option>
<option value="MEDIUMTEXT">COM_COMPONENTBUILDER_FIELD_MEDIUMTEXT</option>
<option value="LONGTEXT">COM_COMPONENTBUILDER_FIELD_LONGTEXT</option>
<option value="DATETIME">COM_COMPONENTBUILDER_FIELD_DATETIME</option>
<option value="DATE">COM_COMPONENTBUILDER_FIELD_DATE</option>
<option value="TIME">COM_COMPONENTBUILDER_FIELD_TIME</option>
<option value="INT">COM_COMPONENTBUILDER_FIELD_INT</option>
<option value="TINYINT">COM_COMPONENTBUILDER_FIELD_TINYINT</option>
<option value="BIGINT">COM_COMPONENTBUILDER_FIELD_BIGINT</option>
<option value="FLOAT">COM_COMPONENTBUILDER_FIELD_FLOAT</option>
<option value="DECIMAL">COM_COMPONENTBUILDER_FIELD_DECIMAL</option>
<option value="DOUBLE">COM_COMPONENTBUILDER_FIELD_DOUBLE</option>
</field>
<!-- Indexes Field. Type: List. (joomla)-->
<field type="list"
name="indexes"
label="COM_COMPONENTBUILDER_FIELD_INDEXES_LABEL"
class="btn-group"
multiple="false"
filter="INT"
required="true"
default="0">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_FIELD_UNIQUE_KEY</option>
<option value="2">COM_COMPONENTBUILDER_FIELD_KEY</option>
<option value="0">COM_COMPONENTBUILDER_FIELD_NONE</option>
</field>
<!-- Null_switch Field. Type: Radio. (joomla)-->
<field type="radio"
name="null_switch"
label="COM_COMPONENTBUILDER_FIELD_NULL_SWITCH_LABEL"
class="btn-group btn-group-yesno"
default="NOT NULL"
required="true">
<!-- Option Set.-->
<option value="NULL">COM_COMPONENTBUILDER_FIELD_NULL</option>
<option value="NOT NULL">COM_COMPONENTBUILDER_FIELD_NOT_NULL</option>
</field>
<!-- Datalenght_other Field. Type: Text. (joomla)-->
<field type="text"
name="datalenght_other"
label="COM_COMPONENTBUILDER_FIELD_DATALENGHT_OTHER_LABEL"
size="10"
maxlength="50"
description="COM_COMPONENTBUILDER_FIELD_DATALENGHT_OTHER_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_FIELD_DATALENGHT_OTHER_MESSAGE"
hint="COM_COMPONENTBUILDER_FIELD_DATALENGHT_OTHER_HINT" />
<!-- Datadefault Field. Type: List. (joomla)-->
<field type="list"
name="datadefault"
label="COM_COMPONENTBUILDER_FIELD_DATADEFAULT_LABEL"
description="COM_COMPONENTBUILDER_FIELD_DATADEFAULT_DESCRIPTION"
class="btn-group"
multiple="false">
<!-- Option Set.-->
<option value="">COM_COMPONENTBUILDER_FIELD_NONE</option>
<option value="0">COM_COMPONENTBUILDER_FIELD_ZERO</option>
<option value="1">COM_COMPONENTBUILDER_FIELD_ONE</option>
<option value="CURRENT_TIMESTAMP">COM_COMPONENTBUILDER_FIELD_CURRENT_TIMESTAMP</option>
<option value="DATETIME">COM_COMPONENTBUILDER_FIELD_DATETIME</option>
<option value="Other">COM_COMPONENTBUILDER_FIELD_OTHER</option>
</field>
<!-- Add_css_view Field. Type: Radio. (joomla)-->
<field type="radio"
name="add_css_view"
label="COM_COMPONENTBUILDER_FIELD_ADD_CSS_VIEW_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_FIELD_YES</option>
<option value="0">COM_COMPONENTBUILDER_FIELD_NO</option>
</field>
<!-- Datadefault_other Field. Type: Text. (joomla)-->
<field type="text"
name="datadefault_other"
label="COM_COMPONENTBUILDER_FIELD_DATADEFAULT_OTHER_LABEL"
size="10"
maxlength="50"
description="COM_COMPONENTBUILDER_FIELD_DATADEFAULT_OTHER_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="STRING"
message="COM_COMPONENTBUILDER_FIELD_DATADEFAULT_OTHER_MESSAGE"
hint="COM_COMPONENTBUILDER_FIELD_DATADEFAULT_OTHER_HINT" />
<!-- Note_filter_information Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_filter_information"
label="COM_COMPONENTBUILDER_FIELD_NOTE_FILTER_INFORMATION_LABEL"
description="COM_COMPONENTBUILDER_FIELD_NOTE_FILTER_INFORMATION_DESCRIPTION"
class="note_filter_information" />
<!-- Datalenght Field. Type: List. (joomla)-->
<field type="list"
name="datalenght"
label="COM_COMPONENTBUILDER_FIELD_DATALENGHT_LABEL"
description="COM_COMPONENTBUILDER_FIELD_DATALENGHT_DESCRIPTION"
class="btn-group"
multiple="false">
<!-- Option Set.-->
<option value="">COM_COMPONENTBUILDER_FIELD_NONE_SET</option>
<option value="1">COM_COMPONENTBUILDER_FIELD_ONE</option>
<option value="7">COM_COMPONENTBUILDER_FIELD_SEVEN</option>
<option value="10">COM_COMPONENTBUILDER_FIELD_TEN</option>
<option value="11">COM_COMPONENTBUILDER_FIELD_ELEVEN</option>
<option value="50">COM_COMPONENTBUILDER_FIELD_FIFTY</option>
<option value="64">COM_COMPONENTBUILDER_FIELD_SIXTY_FOUR</option>
<option value="100">COM_COMPONENTBUILDER_FIELD_ONE_HUNDRED</option>
<option value="255">COM_COMPONENTBUILDER_FIELD_TWO_HUNDRED_AND_FIFTY_FIVE</option>
<option value="1024">COM_COMPONENTBUILDER_FIELD_ONE_THOUSAND_AND_TWENTY_FOUR</option>
<option value="2048">COM_COMPONENTBUILDER_FIELD_TWO_THOUSAND_AND_FORTY_EIGHT</option>
<option value="Other">COM_COMPONENTBUILDER_FIELD_OTHER</option>
</field>
<!-- Add_css_views Field. Type: Radio. (joomla)-->
<field type="radio"
name="add_css_views"
label="COM_COMPONENTBUILDER_FIELD_ADD_CSS_VIEWS_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_FIELD_YES</option>
<option value="0">COM_COMPONENTBUILDER_FIELD_NO</option>
</field>
<!-- Add_javascript_view_footer Field. Type: Radio. (joomla)-->
<field type="radio"
name="add_javascript_view_footer"
label="COM_COMPONENTBUILDER_FIELD_ADD_JAVASCRIPT_VIEW_FOOTER_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_FIELD_YES</option>
<option value="0">COM_COMPONENTBUILDER_FIELD_NO</option>
</field>
<!-- Xml Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="xml"
label="COM_COMPONENTBUILDER_FIELD_XML_LABEL"
rows="17"
cols="720"
description="COM_COMPONENTBUILDER_FIELD_XML_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_FIELD_XML_HINT"
required="true" />
<!-- Add_javascript_views_footer Field. Type: Radio. (joomla)-->
<field type="radio"
name="add_javascript_views_footer"
label="COM_COMPONENTBUILDER_FIELD_ADD_JAVASCRIPT_VIEWS_FOOTER_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_FIELD_YES</option>
<option value="0">COM_COMPONENTBUILDER_FIELD_NO</option>
</field>
<!-- Not_required Field. Type: Hidden. (joomla)-->
<field type="hidden"
name="not_required"
default="[]" />
<!-- Catid Field. Type: Category. (joomla)-->
<field type="category"
name="catid"
label="COM_COMPONENTBUILDER_FIELD_CATID_LABEL"
extension="com_componentbuilder.fields"
description="COM_COMPONENTBUILDER_FIELD_CATID_DESCRIPTION"
class="inputbox" />
<!-- Css_view Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="css_view"
label="COM_COMPONENTBUILDER_FIELD_CSS_VIEW_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_FIELD_CSS_VIEW_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_FIELD_CSS_VIEW_HINT"
required="true" />
<!-- Helpnote Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="helpnote"
label="COM_COMPONENTBUILDER_FIELD_HELPNOTE_LABEL"
class="helpNote helpnote" />
<!-- Css_views Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="css_views"
label="COM_COMPONENTBUILDER_FIELD_CSS_VIEWS_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_FIELD_CSS_VIEWS_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_FIELD_CSS_VIEWS_HINT"
required="true" />
<!-- Store Field. Type: List. (joomla)-->
<field type="list"
name="store"
label="COM_COMPONENTBUILDER_FIELD_STORE_LABEL"
description="COM_COMPONENTBUILDER_FIELD_STORE_DESCRIPTION"
class="list_class"
multiple="false"
filter="INT"
required="true"
default="0">
<!-- Option Set.-->
<option value="0">COM_COMPONENTBUILDER_FIELD_DEFAULT</option>
<option value="1">COM_COMPONENTBUILDER_FIELD_JSON</option>
<option value="2">COM_COMPONENTBUILDER_FIELD_BASESIXTY_FOUR</option>
<option value="3">COM_COMPONENTBUILDER_FIELD_BASIC_ENCRYPTION_LOCALKEY</option>
<option value="4">COM_COMPONENTBUILDER_FIELD_ADVANCE_ENCRYPTION_WHMCSKEY</option>
</field>
<!-- Javascript_view_footer Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="javascript_view_footer"
label="COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEW_FOOTER_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEW_FOOTER_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEW_FOOTER_HINT"
required="true" />
<!-- Note_vdm_encryption Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_vdm_encryption"
label="COM_COMPONENTBUILDER_FIELD_NOTE_VDM_ENCRYPTION_LABEL"
description="COM_COMPONENTBUILDER_FIELD_NOTE_VDM_ENCRYPTION_DESCRIPTION"
heading="h4"
class="alert alert-success note_vdm_encryption"
close="true" />
<!-- Javascript_views_footer Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="javascript_views_footer"
label="COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEWS_FOOTER_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEWS_FOOTER_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEWS_FOOTER_HINT"
required="true" />
</fieldset>
2016-01-30 20:28:43 +00:00
<!-- 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 field"
translate_label="false"
filter="rules"
validate="rules"
class="inputbox"
component="com_componentbuilder"
section="field"
/>
</fieldset>
</form>