Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
328 additions
and
604 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
administrator/components/com_installer/models/forms/filter_languages.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<form> | ||
<fields name="filter"> | ||
<field | ||
name="search" | ||
type="text" | ||
label="JSEARCH_FILTER" | ||
description="JSEARCH_FILTER" | ||
hint="JSEARCH_FILTER" | ||
/> | ||
</fields> | ||
<fields name="list"> | ||
<field | ||
name="fullordering" | ||
type="list" | ||
label="JGLOBAL_SORT_BY" | ||
description="JGLOBAL_SORT_BY" | ||
onchange="this.form.submit();" | ||
default="name ASC" | ||
> | ||
<option value="">JGLOBAL_SORT_BY</option> | ||
<option value="name ASC">JGRID_HEADING_LANGUAGE_ASC</option> | ||
<option value="name DESC">JGRID_HEADING_LANGUAGE_DESC</option> | ||
<option value="element ASC">COM_INSTALLER_HEADING_LANGUAGE_TAG_ASC</option> | ||
<option value="element DESC">COM_INSTALLER_HEADING_LANGUAGE_TAG_DESC</option> | ||
<option value="update_id ASC">JGRID_HEADING_ID_ASC</option> | ||
<option value="update_id DESC">JGRID_HEADING_ID_DESC</option> | ||
</field> | ||
<field | ||
name="limit" | ||
type="limitbox" | ||
label="JGLOBAL_LIMIT" | ||
description="JGLOBAL_LIMIT" | ||
class="input-mini" | ||
default="25" | ||
onchange="this.form.submit();" | ||
/> | ||
</fields> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 0 additions & 27 deletions
27
administrator/components/com_installer/views/languages/tmpl/default_filter.php
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
administrator/components/com_messages/models/fields/messagestates.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
/** | ||
* @package Joomla.Administrator | ||
* @subpackage com_messages | ||
* | ||
* @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
defined('JPATH_BASE') or die; | ||
|
||
JFormHelper::loadFieldClass('list'); | ||
|
||
JLoader::register('MessagesHelper', JPATH_ADMINISTRATOR . '/components/com_messages/helpers/messages.php'); | ||
|
||
/** | ||
* Form Field class for the Joomla Framework. | ||
* | ||
* @since 3.5.2 | ||
*/ | ||
class JFormFieldMessageStates extends JFormFieldList | ||
{ | ||
/** | ||
* The form field type. | ||
* | ||
* @var string | ||
* @since 3.5.2 | ||
*/ | ||
protected $type = 'MessageStates'; | ||
|
||
/** | ||
* Method to get the field options. | ||
* | ||
* @return array The field option objects. | ||
* | ||
* @since 3.5.2 | ||
*/ | ||
protected function getOptions() | ||
{ | ||
// Merge state options with any additional options in the XML definition. | ||
return array_merge(parent::getOptions(), MessagesHelper::getStateOptions()); | ||
} | ||
} |
51 changes: 51 additions & 0 deletions
51
administrator/components/com_messages/models/forms/filter_messages.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<form> | ||
<fields name="filter"> | ||
<field | ||
name="search" | ||
type="text" | ||
label="JSEARCH_FILTER" | ||
description="JSEARCH_FILTER" | ||
hint="JSEARCH_FILTER" | ||
/> | ||
<field | ||
name="state" | ||
type="messagestates" | ||
label="COM_MESSAGES_FILTER_STATES_LABEL" | ||
description="COM_MESSAGES_FILTER_STATES_DESC" | ||
onchange="this.form.submit();" | ||
> | ||
<option value="">JOPTION_SELECT_PUBLISHED</option> | ||
<option value="*">JALL</option> | ||
</field> | ||
</fields> | ||
<fields name="list"> | ||
<field | ||
name="fullordering" | ||
type="list" | ||
label="JGLOBAL_SORT_BY" | ||
description="JGLOBAL_SORT_BY" | ||
onchange="this.form.submit();" | ||
default="a.date_time DESC" | ||
> | ||
<option value="">JGLOBAL_SORT_BY</option> | ||
<option value="a.subject ASC">COM_MESSAGES_HEADING_SUBJECT_ASC</option> | ||
<option value="a.subject DESC">COM_MESSAGES_HEADING_SUBJECT_DESC</option> | ||
<option value="a.state ASC">COM_MESSAGES_HEADING_READ_ASC</option> | ||
<option value="a.state DESC">COM_MESSAGES_HEADING_READ_DESC</option> | ||
<option value="a.user_id_from ASC">COM_MESSAGES_HEADING_FROM_ASC</option> | ||
<option value="a.user_id_from DESC">COM_MESSAGES_HEADING_FROM_DESC</option> | ||
<option value="a.date_time ASC">JDATE_ASC</option> | ||
<option value="a.date_time DESC">JDATE_DESC</option> | ||
</field> | ||
<field | ||
name="limit" | ||
type="limitbox" | ||
label="JGLOBAL_LIMIT" | ||
description="JGLOBAL_LIMIT" | ||
class="input-mini" | ||
default="5" | ||
onchange="this.form.submit();" | ||
/> | ||
</fields> | ||
</form> |
Oops, something went wrong.