first commit
This commit is contained in:
74
components/com_contact/forms/contact.xml
Normal file
74
components/com_contact/forms/contact.xml
Normal file
@ -0,0 +1,74 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<form>
|
||||
<fieldset name="contact" addruleprefix="Joomla\Component\Contact\Site\Rule" label="COM_CONTACT_CONTACT_DEFAULT_LABEL">
|
||||
<field
|
||||
name="spacer"
|
||||
type="spacer"
|
||||
label="COM_CONTACT_CONTACT_REQUIRED"
|
||||
class="text"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="contact_name"
|
||||
type="text"
|
||||
label="COM_CONTACT_CONTACT_EMAIL_NAME_LABEL"
|
||||
id="contact-name"
|
||||
size="30"
|
||||
filter="string"
|
||||
required="true"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="contact_email"
|
||||
type="email"
|
||||
label="COM_CONTACT_EMAIL_LABEL"
|
||||
id="contact-email"
|
||||
size="30"
|
||||
filter="string"
|
||||
validate="ContactEmail"
|
||||
autocomplete="email"
|
||||
required="true"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="contact_subject"
|
||||
type="text"
|
||||
label="COM_CONTACT_CONTACT_MESSAGE_SUBJECT_LABEL"
|
||||
id="contact-emailmsg"
|
||||
size="60"
|
||||
filter="string"
|
||||
validate="ContactEmailSubject"
|
||||
required="true"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="contact_message"
|
||||
type="textarea"
|
||||
label="COM_CONTACT_CONTACT_ENTER_MESSAGE_LABEL"
|
||||
cols="50"
|
||||
rows="10"
|
||||
id="contact-message"
|
||||
filter="safehtml"
|
||||
validate="ContactEmailMessage"
|
||||
required="true"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="contact_email_copy"
|
||||
type="checkbox"
|
||||
label="COM_CONTACT_CONTACT_EMAIL_A_COPY_LABEL"
|
||||
id="contact-email-copy"
|
||||
default="0"
|
||||
/>
|
||||
</fieldset>
|
||||
|
||||
<fieldset name="captcha">
|
||||
<field
|
||||
name="captcha"
|
||||
type="captcha"
|
||||
label="COM_CONTACT_CAPTCHA_LABEL"
|
||||
validate="captcha"
|
||||
namespace="contact"
|
||||
/>
|
||||
</fieldset>
|
||||
</form>
|
||||
126
components/com_contact/forms/filter_contacts.xml
Normal file
126
components/com_contact/forms/filter_contacts.xml
Normal file
@ -0,0 +1,126 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<form>
|
||||
<fields name="filter">
|
||||
|
||||
<field
|
||||
name="search"
|
||||
type="text"
|
||||
inputmode="search"
|
||||
label="COM_CONTACT_FILTER_SEARCH_LABEL"
|
||||
description="COM_CONTACT_FILTER_SEARCH_DESC"
|
||||
hint="JSEARCH_FILTER"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="published"
|
||||
type="status"
|
||||
label="JOPTION_SELECT_PUBLISHED"
|
||||
description="JOPTION_SELECT_PUBLISHED_DESC"
|
||||
onchange="this.form.submit();"
|
||||
>
|
||||
<option value="">JOPTION_SELECT_PUBLISHED</option>
|
||||
</field>
|
||||
|
||||
<field
|
||||
name="category_id"
|
||||
type="category"
|
||||
label="JCATEGORY"
|
||||
multiple="true"
|
||||
extension="com_contact"
|
||||
layout="joomla.form.field.list-fancy-select"
|
||||
hint="JOPTION_SELECT_CATEGORY"
|
||||
onchange="this.form.submit();"
|
||||
published="0,1,2"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="access"
|
||||
type="accesslevel"
|
||||
label="JOPTION_FILTER_ACCESS"
|
||||
description="JOPTION_FILTER_ACCESS_DESC"
|
||||
onchange="this.form.submit();"
|
||||
>
|
||||
<option value="">JOPTION_SELECT_ACCESS</option>
|
||||
</field>
|
||||
|
||||
<field
|
||||
name="language"
|
||||
type="contentlanguage"
|
||||
label="JOPTION_FILTER_LANGUAGE"
|
||||
description="JOPTION_FILTER_LANGUAGE_DESC"
|
||||
onchange="this.form.submit();"
|
||||
>
|
||||
<option value="">JOPTION_SELECT_LANGUAGE</option>
|
||||
<option value="*">JALL</option>
|
||||
</field>
|
||||
|
||||
<field
|
||||
name="tag"
|
||||
type="tag"
|
||||
label="JTAG"
|
||||
multiple="true"
|
||||
mode="nested"
|
||||
custom="false"
|
||||
hint="JOPTION_SELECT_TAG"
|
||||
onchange="this.form.submit();"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="level"
|
||||
type="integer"
|
||||
label="JOPTION_FILTER_LEVEL"
|
||||
description="JOPTION_FILTER_LEVEL_DESC"
|
||||
first="1"
|
||||
last="10"
|
||||
step="1"
|
||||
languages="*"
|
||||
onchange="this.form.submit();"
|
||||
>
|
||||
<option value="">JOPTION_SELECT_MAX_LEVELS</option>
|
||||
</field>
|
||||
</fields>
|
||||
|
||||
<fields name="list">
|
||||
|
||||
<field
|
||||
name="fullordering"
|
||||
type="list"
|
||||
label="COM_CONTACT_LIST_FULL_ORDERING"
|
||||
description="COM_CONTACT_LIST_FULL_ORDERING_DESC"
|
||||
default="a.name ASC"
|
||||
onchange="this.form.submit();"
|
||||
validate="options"
|
||||
>
|
||||
<option value="">JGLOBAL_SORT_BY</option>
|
||||
<option value="a.ordering ASC">JGRID_HEADING_ORDERING_ASC</option>
|
||||
<option value="a.ordering DESC">JGRID_HEADING_ORDERING_DESC</option>
|
||||
<option value="a.published ASC">JSTATUS_ASC</option>
|
||||
<option value="a.published DESC">JSTATUS_DESC</option>
|
||||
<option value="a.featured ASC">JFEATURED_ASC</option>
|
||||
<option value="a.featured DESC">JFEATURED_DESC</option>
|
||||
<option value="a.name ASC">JGLOBAL_NAME_ASC</option>
|
||||
<option value="a.name DESC">JGLOBAL_NAME_DESC</option>
|
||||
<option value="category_title ASC">JCATEGORY_ASC</option>
|
||||
<option value="category_title DESC">JCATEGORY_DESC</option>
|
||||
<option value="ul.name ASC">COM_CONTACT_FIELD_LINKED_USER_LABEL_ASC</option>
|
||||
<option value="ul.name DESC">COM_CONTACT_FIELD_LINKED_USER_LABEL_DESC</option>
|
||||
<option value="access_level ASC">JGRID_HEADING_ACCESS_ASC</option>
|
||||
<option value="access_level DESC">JGRID_HEADING_ACCESS_DESC</option>
|
||||
<option value="association ASC" requires="associations">JASSOCIATIONS_ASC</option>
|
||||
<option value="association DESC" requires="associations">JASSOCIATIONS_DESC</option>
|
||||
<option value="language_title ASC" requires="multilanguage">JGRID_HEADING_LANGUAGE_ASC</option>
|
||||
<option value="language_title DESC" requires="multilanguage">JGRID_HEADING_LANGUAGE_DESC</option>
|
||||
<option value="a.id ASC">JGRID_HEADING_ID_ASC</option>
|
||||
<option value="a.id DESC">JGRID_HEADING_ID_DESC</option>
|
||||
</field>
|
||||
|
||||
<field
|
||||
name="limit"
|
||||
type="limitbox"
|
||||
label="COM_CONTACT_LIST_LIMIT"
|
||||
description="COM_CONTACT_LIST_LIMIT_DESC"
|
||||
default="25"
|
||||
onchange="this.form.submit();"
|
||||
/>
|
||||
</fields>
|
||||
</form>
|
||||
348
components/com_contact/forms/form.xml
Normal file
348
components/com_contact/forms/form.xml
Normal file
@ -0,0 +1,348 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<form>
|
||||
<fieldset>
|
||||
<field
|
||||
name="id"
|
||||
type="number"
|
||||
label="JGLOBAL_FIELD_ID_LABEL"
|
||||
default="0"
|
||||
class="readonly"
|
||||
size="10"
|
||||
readonly="true"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="name"
|
||||
type="text"
|
||||
label="COM_CONTACT_FIELD_NAME_LABEL"
|
||||
size="40"
|
||||
required="true"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="alias"
|
||||
type="text"
|
||||
label="JFIELD_ALIAS_LABEL"
|
||||
description="JFIELD_ALIAS_DESC"
|
||||
size="45"
|
||||
hint="JFIELD_ALIAS_PLACEHOLDER"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="misc"
|
||||
type="editor"
|
||||
label="COM_CONTACT_FIELD_INFORMATION_MISC_LABEL"
|
||||
filter="\Joomla\CMS\Component\ComponentHelper::filterText"
|
||||
buttons="true"
|
||||
hide="readmore,pagebreak"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="created_by"
|
||||
type="user"
|
||||
label="JGLOBAL_FIELD_CREATED_BY_LABEL"
|
||||
validate="UserId"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="created"
|
||||
type="calendar"
|
||||
label="COM_CONTACT_FIELD_CREATED_LABEL"
|
||||
size="22"
|
||||
translateformat="true"
|
||||
showtime="true"
|
||||
filter="user_utc"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="modified"
|
||||
type="calendar"
|
||||
label="JGLOBAL_FIELD_MODIFIED_LABEL"
|
||||
class="readonly"
|
||||
size="22"
|
||||
readonly="true"
|
||||
translateformat="true"
|
||||
showtime="true"
|
||||
filter="user_utc"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="modified_by"
|
||||
type="user"
|
||||
label="JGLOBAL_FIELD_MODIFIED_BY_LABEL"
|
||||
class="readonly"
|
||||
readonly="true"
|
||||
filter="unset"
|
||||
validate="UserId"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="checked_out"
|
||||
type="hidden"
|
||||
filter="unset"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="checked_out_time"
|
||||
type="hidden"
|
||||
filter="unset"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="ordering"
|
||||
type="ordering"
|
||||
label="JFIELD_ORDERING_LABEL"
|
||||
content_type="com_contact.contact"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="contenthistory"
|
||||
type="contenthistory"
|
||||
label="JTOOLBAR_VERSIONS"
|
||||
data-typeAlias="com_contact.contact"
|
||||
/>
|
||||
|
||||
</fieldset>
|
||||
|
||||
<fieldset
|
||||
name="details"
|
||||
label="COM_CONTACT_CONTACT_DETAILS"
|
||||
>
|
||||
<field
|
||||
name="image"
|
||||
type="media"
|
||||
label="COM_CONTACT_FIELD_PARAMS_IMAGE_LABEL"
|
||||
hide_none="1"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="con_position"
|
||||
type="text"
|
||||
label="COM_CONTACT_FIELD_INFORMATION_POSITION_LABEL"
|
||||
size="30"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="email_to"
|
||||
type="email"
|
||||
label="JGLOBAL_EMAIL"
|
||||
size="30"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="address"
|
||||
type="textarea"
|
||||
label="COM_CONTACT_FIELD_INFORMATION_ADDRESS_LABEL"
|
||||
rows="3"
|
||||
cols="30"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="suburb"
|
||||
type="text"
|
||||
label="COM_CONTACT_FIELD_INFORMATION_SUBURB_LABEL"
|
||||
size="30"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="state"
|
||||
type="text"
|
||||
label="COM_CONTACT_FIELD_INFORMATION_STATE_LABEL"
|
||||
size="30"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="postcode"
|
||||
type="text"
|
||||
label="COM_CONTACT_FIELD_INFORMATION_POSTCODE_LABEL"
|
||||
size="30"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="country"
|
||||
type="text"
|
||||
label="COM_CONTACT_FIELD_INFORMATION_COUNTRY_LABEL"
|
||||
size="30"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="telephone"
|
||||
type="text"
|
||||
label="COM_CONTACT_FIELD_INFORMATION_TELEPHONE_LABEL"
|
||||
size="30"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="mobile"
|
||||
type="text"
|
||||
label="COM_CONTACT_FIELD_INFORMATION_MOBILE_LABEL"
|
||||
size="30"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="fax"
|
||||
type="text"
|
||||
label="COM_CONTACT_FIELD_INFORMATION_FAX_LABEL"
|
||||
size="30"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="webpage"
|
||||
type="url"
|
||||
label="COM_CONTACT_FIELD_INFORMATION_WEBPAGE_LABEL"
|
||||
size="30"
|
||||
filter="url"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="sortname1"
|
||||
type="text"
|
||||
label="COM_CONTACT_FIELD_SORTNAME1_LABEL"
|
||||
size="30"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="sortname2"
|
||||
type="text"
|
||||
label="COM_CONTACT_FIELD_SORTNAME2_LABEL"
|
||||
size="30"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="sortname3"
|
||||
type="text"
|
||||
label="COM_CONTACT_FIELD_SORTNAME3_LABEL"
|
||||
size="30"
|
||||
/>
|
||||
</fieldset>
|
||||
|
||||
<fieldset
|
||||
name="publishing"
|
||||
label="COM_CONTACT_FIELDSET_PUBLISHING"
|
||||
>
|
||||
<field
|
||||
name="catid"
|
||||
type="categoryedit"
|
||||
label="JCATEGORY"
|
||||
extension="com_contact"
|
||||
addfieldprefix="Joomla\Component\Categories\Administrator\Field"
|
||||
required="true"
|
||||
default=""
|
||||
/>
|
||||
|
||||
<field
|
||||
name="tags"
|
||||
type="tag"
|
||||
label="JTAG"
|
||||
multiple="true"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="version_note"
|
||||
type="text"
|
||||
label="JGLOBAL_FIELD_VERSION_NOTE_LABEL"
|
||||
labelclass="control-label"
|
||||
class=""
|
||||
size="45"
|
||||
maxlength="255"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="created_by_alias"
|
||||
type="text"
|
||||
label="COM_CONTACT_FIELD_CREATED_BY_ALIAS_LABEL"
|
||||
size="20"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="published"
|
||||
type="list"
|
||||
label="JSTATUS"
|
||||
default="1"
|
||||
class="form-select-color-state"
|
||||
size="1"
|
||||
validate="options"
|
||||
>
|
||||
<option value="1">JPUBLISHED</option>
|
||||
<option value="0">JUNPUBLISHED</option>
|
||||
<option value="2">JARCHIVED</option>
|
||||
<option value="-2">JTRASHED</option>
|
||||
|
||||
</field>
|
||||
|
||||
<field
|
||||
name="featured"
|
||||
type="list"
|
||||
label="JFEATURED"
|
||||
default="0"
|
||||
validate="options"
|
||||
>
|
||||
<option value="0">JNO</option>
|
||||
<option value="1">JYES</option>
|
||||
</field>
|
||||
|
||||
<field
|
||||
name="publish_up"
|
||||
type="calendar"
|
||||
label="COM_CONTACT_FIELD_PUBLISH_UP_LABEL"
|
||||
translateformat="true"
|
||||
showtime="true"
|
||||
size="22"
|
||||
filter="user_utc"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="publish_down"
|
||||
type="calendar"
|
||||
label="COM_CONTACT_FIELD_PUBLISH_DOWN_LABEL"
|
||||
translateformat="true"
|
||||
showtime="true"
|
||||
size="22"
|
||||
filter="user_utc"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="access"
|
||||
type="accesslevel"
|
||||
label="JFIELD_ACCESS_LABEL"
|
||||
filter="UINT"
|
||||
validate="options"
|
||||
/>
|
||||
</fieldset>
|
||||
|
||||
<fieldset
|
||||
name="language"
|
||||
label="JFIELD_LANGUAGE_LABEL"
|
||||
>
|
||||
<field
|
||||
name="language"
|
||||
type="contentlanguage"
|
||||
label="JFIELD_LANGUAGE_LABEL"
|
||||
>
|
||||
<option value="*">JALL</option>
|
||||
</field>
|
||||
</fieldset>
|
||||
|
||||
<fieldset
|
||||
name="metadata"
|
||||
label="COM_CONTACT_FIELDSET_METADATA"
|
||||
>
|
||||
<field
|
||||
name="metadesc"
|
||||
type="textarea"
|
||||
label="JFIELD_META_DESCRIPTION_LABEL"
|
||||
rows="3"
|
||||
cols="30"
|
||||
maxlength="300"
|
||||
charcounter="true"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="metakey"
|
||||
type="textarea"
|
||||
label="JFIELD_META_KEYWORDS_LABEL"
|
||||
rows="3"
|
||||
cols="30"
|
||||
/>
|
||||
</fieldset>
|
||||
</form>
|
||||
Reference in New Issue
Block a user