Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LPS-58659 Captcha image does not show up in login portlet #72

Closed
wants to merge 136 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
136 commits
Select commit Hold shift + click to select a range
a398364
LPS-58116 - Migrate admin theme files
Aug 25, 2015
c903ffc
LPS-58116 - Migrate classic theme files
Aug 25, 2015
368ced2
LPS-58116 - Migrate _styled theme files
Aug 25, 2015
88fce86
LPS-58116 - Migrate _unstyled theme files
Aug 25, 2015
b618d13
LPS-58116 - Create Theme PortalWebResource classes and constants
Aug 25, 2015
d7a4d1d
LPS-58116 - Blind copy bnd.bnd, build.xml, build.gradle files from fr…
Aug 25, 2015
683bafc
LPS-58116 - update unstyled bnd
Aug 26, 2015
0cc433d
LPS-58116 - update styled bnd
Aug 26, 2015
9ff1846
LPS-58116 - update classic bnd
Aug 26, 2015
6619a6d
LPS-58116 - Update admin bnd
Aug 26, 2015
53beae2
LPS-58116 - update gitignore
Aug 26, 2015
324bb45
LPS-58116 - update build.xmls
Aug 28, 2015
4402886
LPS-58116 - Get fallback template resources from classic theme contex…
Aug 27, 2015
05479da
LPS-58116 - use theme name to get context path
Aug 26, 2015
26a2b0d
LPS-58116 - migrate unstyled build.gradle. Mainly remained the same …
Aug 31, 2015
ad1faee
LPS-58116 - migrate styled build.gradle. removed most tasks
Aug 31, 2015
ca824a3
LPS-58116 - migrate classic and admin build.gradle. remove most of t…
Aug 31, 2015
c41cc67
LPS-58116 - ensure unstyled buildThemes runs after buildAlloy tasks a…
Sep 1, 2015
ff2a8f1
LPS-58116 - build frontend-themes modules
Aug 31, 2015
cd5c729
LPS-58116 - delete frontend-themes-web
Aug 31, 2015
006e86a
LPS-58116 - Create a build file in frontend-themes with metatasks for…
Sep 4, 2015
59551d9
LPS-58116 - Removing package.json files since gradle will automate them
Sep 4, 2015
5bcb068
LPS-58116 Not necessary for "_unstyled" and "_styled"
Ithildir Sep 8, 2015
ecae437
LPS-58116 SF
Ithildir Sep 8, 2015
f901d3f
LPS-58116 Simplify
Ithildir Sep 8, 2015
4cd10b5
LPS-58116 Not necessary
Ithildir Sep 9, 2015
a4e6efb
LPS-58116 Ant file with Gradle replacements
Ithildir Sep 10, 2015
433ccc8
LPS-58116 SF
brianchandotcom Sep 15, 2015
8371578
LPS-58116 SDK
brianchandotcom Sep 15, 2015
fa13cb7
Record
brianchandotcom Sep 15, 2015
6973bf5
LPS-58595 Change default journal creation strategy so that Group or G…
Sep 14, 2015
bb40ea0
LPS-58364 Remove control panel menu portlet
adolfopa Sep 3, 2015
fe88a99
LPS-58364 Remove control panel menu portlet
ealonso Sep 15, 2015
ea92836
LPS-58364 ant build-lang
ealonso Sep 15, 2015
aa8bf2a
LPS-58364 Remove duplication
adolfopa Sep 3, 2015
70a62c3
LPS-58364 SF
ealonso Sep 15, 2015
4827ac0
LPS-58364 Use the new "Apps" category identifier
adolfopa Sep 3, 2015
0728767
LPS-58364 Use the new "Apps" category identifier
ealonso Sep 15, 2015
51dfc69
LPS-58364 Use new "Users" category name
adolfopa Sep 3, 2015
3aea2a7
LPS-58364 Use new "Users" category name
ealonso Sep 15, 2015
8d6e760
LPS-58364 Use the new "User" category instead of "My"
adolfopa Sep 3, 2015
25302fb
LPS-58364 Use the new "User" category instead of "My"
ealonso Sep 15, 2015
35a7792
LPS-58364 Use new "Configuration" category name
adolfopa Sep 3, 2015
f52557e
LPS-58364 Use new "Configuration" category name
ealonso Sep 15, 2015
244f993
LPS-58364 Reuse constants as much as possible
adolfopa Sep 3, 2015
0e80616
LPS-58364 Simplify conditional
adolfopa Sep 3, 2015
924c3ca
LPS-58364 Sort
brianchandotcom Sep 15, 2015
d6f70b2
LPS-58364 SF
brianchandotcom Sep 15, 2015
9af1060
LPS-54585 no longer thrown
brianchandotcom Sep 15, 2015
0ed9667
LPS-58628 Propagate repositoryId as needed
Sep 15, 2015
66e2cb3
LPS-58628 match documents.jsp
brianchandotcom Sep 15, 2015
a634c4e
LPS-58042 Add missing description for default classic theme navigatio…
jkappler Sep 4, 2015
cc3b9d4
LPS-58042 Minor language key edit
codyhoag Sep 8, 2015
6c02412
LPS-58042 ant build-lang
codyhoag Sep 8, 2015
5c90d80
LRQA-17595 Add new macros to ProductMenu macro
koor4356 Sep 10, 2015
72a0c57
LRQA-17595 Modify page and site templates macros to use for loop instead
koor4356 Sep 10, 2015
da3f416
LRQA-17595 Rename key variables to more specific
koor4356 Sep 10, 2015
e798957
LRQA-17595 Update path locator
koor4356 Sep 10, 2015
3d6d89f
LRQA-17595 Add new macro to MyAccount macro
koor4356 Sep 10, 2015
286ff8c
LRQA-17595 Update Pagetemplates tests to use new macros
koor4356 Sep 10, 2015
120e644
LRQA-17595 Update Sitetemplates test to use new macro
koor4356 Sep 10, 2015
caa2cd1
LRQA-17595 Remove unnecessary variable
koor4356 Sep 10, 2015
1197f36
LRQA-17595 Update test to use new macros instead
koor4356 Sep 10, 2015
2c50d73
LRQA-17595 Use AssertElementPresent instead of AssertVisible
brianwulbern Sep 14, 2015
68e757e
LRQA-17595 Remove extra macro call
brianwulbern Sep 14, 2015
aa3a84f
LRQA-17595 Rename macro block to start with a verb
brianwulbern Sep 14, 2015
8af4f80
LRQA-17595 Fix typo
brianwulbern Sep 14, 2015
9b5da3a
LRQA-17595 Auto SF
brianwulbern Sep 14, 2015
2a2c888
LRQA-17595 Rename macros for more clarity
brianchiu Sep 15, 2015
f82a404
LRQA-17595 Sort
brianchiu Sep 15, 2015
c9f9727
LRQA-17595 SF
brianchiu Sep 15, 2015
665c439
LRQA-17911 Disabling test affected by LPS-58641
Sep 15, 2015
9c8b332
LRQA-16928 Fix directory paths to always be forward slashes for 'proj…
michaelhashimoto Sep 15, 2015
82e58cc
LPS-58212 Extract js onclick logic from RowChecker to util.js
Sep 11, 2015
108eaa1
LPS-58212 Add selector by name to method checkAllBox
Sep 14, 2015
4407104
LPS-58212 Add form node validation to avoid errors
Sep 14, 2015
23c6a9e
LPS-58212 Fix toggle class checked
Sep 15, 2015
ce7acc3
LPS-58212 Have only one return point
jbalsas Sep 15, 2015
663c5cb
LPS-58212 SF
brianchandotcom Sep 15, 2015
d2d8967
LPS-58212 SF
brianchandotcom Sep 15, 2015
25d267b
LPS-58212 SF
brianchandotcom Sep 15, 2015
29bf173
LRQA-16928 prep next
brianchandotcom Sep 15, 2015
5220724
LRQA-17914 Update test to use smoke macro that views a user is logged in
brianchiu Sep 15, 2015
4411271
LRQA-17911 - LPS-58617 - _styled _toggle_switch.scss duplicates lexicon
natecavanaugh Sep 15, 2015
1485c77
LPS-58364 SF
brianchandotcom Sep 15, 2015
4aa82b7
LPS-58212 SF
brianchandotcom Sep 15, 2015
85a87ac
LPS-58540 Fix incorrect portlet category
adolfopa Sep 15, 2015
8c37751
LPS-58645 Adds menu item to layout prototype portlet
ealonso Sep 15, 2015
b3224ec
LPS-58645 Adds nav bar to layout prototype
ealonso Sep 15, 2015
d21bb76
LPS-58645 Apply lexicon view to layout prototype
ealonso Sep 15, 2015
e11809a
LPS-58645 Adds back url to layout prototype
ealonso Sep 15, 2015
3dc93f7
LPS-58645 See edit_team_assignments.jsp
brianchandotcom Sep 15, 2015
1c163f7
LPS-58643 Adds menu item to layout set prototype portlet
ealonso Sep 15, 2015
1c466a1
LPS-58643 Adds nav bar to layout set prototype
ealonso Sep 15, 2015
57973a1
LPS-58643 Apply lexicon view to layout set prototype
ealonso Sep 15, 2015
3313a34
LPS-58643 Adds back url to layout set prototype
ealonso Sep 15, 2015
c8b261d
LPS-58509 Check CustomUserAttributes assumed to never be null needs t…
Sep 11, 2015
c7ee28c
LPS-58509 Rename vars to 2015 standards
brianchandotcom Sep 15, 2015
004479c
LPS-58509 Remove Peter's fix. I think the real problem is in PortletT…
brianchandotcom Sep 15, 2015
23d9dff
LPS-58613 Use Expando's to store request token
Sep 14, 2015
60517e3
LPS-58613 Basic login screen
Sep 14, 2015
7431e43
LPS-58613 SF
brianchandotcom Sep 15, 2015
94c6d93
LPS-58613 SF
brianchandotcom Sep 15, 2015
8edfa41
LPS-58613 lang keys
brianchandotcom Sep 15, 2015
4e15c60
LPS-58116 - rename constants ADMIN_THEME -> THEME_ADMIN, CLASSIC_THEM…
Sep 15, 2015
b6d91d1
LPS-58116 - rename AdminThemePortalWebResources -> ThemeAdminPortalWe…
Sep 15, 2015
7a3f372
LPS-58116 - rename frontend-themes -> frontend-theme
Sep 15, 2015
c2ea608
LPS-58116 - rename frontend-themes-* -> frontend-theme-*
Sep 15, 2015
28b29d4
LPS-58116 - update bnd files, themes -> theme
Sep 15, 2015
c6639ae
LPS-58116 - update build.gradle references to frontend-themes
Sep 15, 2015
0642200
LPS-58116 - update liferay-look-and-feel_7_0_0.dtd
Sep 15, 2015
ab2bfbd
LPS-58116 - move theme gitignores to own modules
Sep 15, 2015
9d0b80d
LPS-58116 - SF
Sep 15, 2015
f62f29b
LPS-58116 Sort
brianchandotcom Sep 15, 2015
c78d69b
LPS-58116 Clarity exposed a potential bug, Michael please fix
brianchandotcom Sep 15, 2015
afc1288
LPS-58116 SF
brianchandotcom Sep 15, 2015
bb473ec
LPS-58383
brianchandotcom Sep 15, 2015
2cb4c96
LPS-58464 Add view entries permission check
Sep 8, 2015
8c249c5
LPS-58464 Add view entries menu item
Sep 8, 2015
d32d798
LPS-58464 Add view entries page
Sep 9, 2015
4144f34
LPS-58464 Create custom search container
Sep 9, 2015
6e3ffa7
LPS-58464 Add comparators
Sep 10, 2015
3bee6c3
LPS-58464 Add sort
Sep 10, 2015
889acc4
LPS-58464 Add display context class
Sep 9, 2015
33e275c
LPS-58464 Add menu actions
Sep 10, 2015
086931b
LPS-58464 Implement delete action
Sep 10, 2015
9d6ba3f
LPS-58464 Rename
Sep 10, 2015
e3eeb3e
LPS-58464 SF
Sep 11, 2015
49ea01e
LPS-58464 Rename
marcellustavares Sep 15, 2015
2cd8f8e
LPS-58464 SF
marcellustavares Sep 15, 2015
e480594
LPS-58464 SF
brianchandotcom Sep 15, 2015
4be0899
LPS-58464 SF
brianchandotcom Sep 15, 2015
97fd5d2
LPS-58464 SF
brianchandotcom Sep 15, 2015
e413720
LPS-58464 SF
brianchandotcom Sep 15, 2015
b177c34
LPS-58464 SF
brianchandotcom Sep 15, 2015
40a6a52
LPS-58659 Captcha image does not show up in login portlet
pei-jung Sep 15, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions build-common.xml
Expand Up @@ -12,6 +12,10 @@
<path location="${project.dir.native}" />
</pathconvert>

<pathconvert pathsep="/" property="project.dir.unix">
<path location="${project.dir.native}" />
</pathconvert>

<property name="sdk.dir" value="${project.dir}/tools/sdk" />

<property name="test.properties" value="com/liferay/portal/tools/dependencies/portal-tools.properties" />
Expand Down
10 changes: 0 additions & 10 deletions build-test.xml
Expand Up @@ -4554,16 +4554,6 @@ module.framework.properties.osgi.console=11312</echo>
<format pattern="yyyy-MM-dd" property="current.date" timezone="GMT" />
</tstamp>

<local name="project.dir.unix" />

<propertyregex
global="true"
input="${project.dir}"
property="project.dir.unix"
regexp="\\"
replace="/"
/>

<echo append="true" file="${test.ext.properties.file}">
component.names=${component.names}
ignore.errors.file.name=${project.dir.unix}/portal-web/test-ignorable-error-lines.xml
Expand Down
10 changes: 5 additions & 5 deletions definitions/liferay-look-and-feel_7_0_0.dtd
Expand Up @@ -130,7 +130,7 @@ the user.
The root-path value sets the location of the root path for the theme. For
example, the root path for the Classic theme is "/classic". This
means you can find the files for the Classic theme in
/modules/frontend/frontend-themes-web/src/META-INF/resources/classic.
/modules/frontend/frontend-theme-classic/src/META-INF/resources/classic.

For convenience, the root-path attribute can be referenced in the rest of the
theme element as ${root-path}.
Expand All @@ -143,7 +143,7 @@ The default value is "/".
The templates-path value sets the location of the templates path for the theme.
For example, the templates path for the Classic theme is "/classic/templates".
This means you can find the JSP or VM templates for the Classic theme in
/modules/frontend/frontend-themes-web/src/META-INF/resources/classic/templates.
/modules/frontend/frontend-theme-classic/src/META-INF/resources/classic/templates.

For convenience, the templates-path attribute can be referenced in the rest of
the theme element as ${templates-path}.
Expand All @@ -156,7 +156,7 @@ The default value is "${root-path}/templates".
The css-path value sets the location of the css path for the theme. For example,
the css path for the Classic theme is "/classic/css". This means you can find
css for the Classic theme in
/modules/frontend/frontend-themes-web/src/META-INF/resources/classic/css.
/modules/frontend/frontend-theme-classic/src/META-INF/resources/classic/css.

For convenience, the css-path attribute can be referenced in the rest of the
theme element as ${css-path}.
Expand All @@ -169,7 +169,7 @@ The default value is "${root-path}/css".
The images-path value sets the location of the images path for the theme. For
example, the images path for the Classic theme is "/classic/images". This means
you can find images for the Classic theme in
/modules/frontend/frontend-themes-web/src/META-INF/resources/classic/images.
/modules/frontend/frontend-theme-classic/src/META-INF/resources/classic/images.

For convenience, the images-path attribute can be referenced in the rest of the
theme element as ${images-path}.
Expand All @@ -182,7 +182,7 @@ The default value is "${root-path}/images".
The javascript-path value sets the location of the JavaScript path for the
theme. For example, the JavaScript path for the Classic theme is "/classic/js".
This means you can find JavaScript for the Classic theme in
/modules/frontend/frontend-themes-web/src/META-INF/resources/classic/js.
/modules/frontend/frontend-theme-classic/src/META-INF/resources/classic/js.

For convenience, the javascript-path attribute can be referenced in the rest of
the theme element as ${javascript-path}.
Expand Down
2 changes: 1 addition & 1 deletion git-commit-plugins
@@ -1 +1 @@
01baf13bf18f816857068b1b1e197a0433775312
4ce352ac260c7d50eaaaa7c40a7f6cb3a7bea1af
15 changes: 1 addition & 14 deletions modules/.gitignore
@@ -1,18 +1,5 @@
/*/*/*/*/*/*/*/*/npm-debug.log
/*/*/*/*/*/_unstyled/css/aui
/*/*/*/*/*/_unstyled/images/aui
/*/*/*/*/*/admin/css
/*/*/*/*/*/admin/images
/*/*/*/*/*/admin/javascript
/*/*/*/*/*/admin/js
/*/*/*/*/*/admin/templates
/*/*/*/*/*/classic/_diffs/css/alloy.css
/*/*/*/*/*/classic/css
/*/*/*/*/*/classic/images
/*/*/*/*/*/classic/javascript
/*/*/*/*/*/classic/js
/*/*/*/*/*/classic/templates
/*/*/*/*/*/favicon.ico
/*/*/*/*/*/*/favicon.ico
/*/*/*/*/*/genesis
/*/*/*/*/*/portal/aui_deprecated.css
/*/*/*/*/*/portal/bootstrap.css
Expand Down
Expand Up @@ -14,40 +14,44 @@

package com.liferay.application.list.constants;

import com.liferay.portal.util.PortletCategoryKeys;

/**
* @author Adolfo Pérez
*/
public interface PanelCategoryKeys {

public static final String CONTROL_PANEL = "control_panel";

public static final String CONTROL_PANEL_APPS = "control_panel.apps";
public static final String CONTROL_PANEL_APPS =
PortletCategoryKeys.CONTROL_PANEL_APPS;

public static final String CONTROL_PANEL_CONFIGURATION =
"control_panel.configuration";
PortletCategoryKeys.CONTROL_PANEL_CONFIGURATION;

public static final String CONTROL_PANEL_USERS = "control_panel.users";
public static final String CONTROL_PANEL_USERS =
PortletCategoryKeys.CONTROL_PANEL_USERS;

public static final String ROOT = "root";

public static final String SITE_ADMINISTRATION = "site_administration";

public static final String SITE_ADMINISTRATION_CONFIGURATION =
"site_administration.configuration";
PortletCategoryKeys.SITE_ADMINISTRATION_CONFIGURATION;

public static final String SITE_ADMINISTRATION_CONTENT =
"site_administration.content";
PortletCategoryKeys.SITE_ADMINISTRATION_CONTENT;

public static final String SITE_ADMINISTRATION_PAGES =
"site_administration.pages";
PortletCategoryKeys.SITE_ADMINISTRATION_PAGES;

public static final String SITE_ADMINISTRATION_PUBLISHING_TOOLS =
"site_administration.publishing_tools";
PortletCategoryKeys.SITE_ADMINISTRATION_PUBLISHING_TOOLS;

public static final String SITE_ADMINISTRATION_USERS =
"site_administration.users";
PortletCategoryKeys.SITE_ADMINISTRATION_USERS;

public static final String SITES = "sites";
public static final String SITES = PortletCategoryKeys.SITES;

public static final String SITES_ADMINISTRATION_MY_SITES =
"sites_administration.my_sites";
Expand All @@ -59,6 +63,7 @@ public interface PanelCategoryKeys {

public static final String USER = "user";

public static final String USER_MY_ACCOUNT = "user.my_account";
public static final String USER_MY_ACCOUNT =
PortletCategoryKeys.USER_MY_ACCOUNT;

}
Expand Up @@ -27,7 +27,7 @@
@Component(
immediate = true,
property = {
"com.liferay.portlet.display-category=hidden",
"com.liferay.portlet.display-category=category.hidden",
"com.liferay.portlet.icon=/icons/comment.png",
"javax.portlet.display-name=Comments",
"javax.portlet.expiration-cache=0",
Expand Down
Expand Up @@ -73,6 +73,8 @@ public PortletURL getPortletURL(
PortletURL portletURL = PortletURLUtil.clone(
_portletURL, liferayPortletResponse);

portletURL.setParameter(
"repositoryId", String.valueOf(getRepositoryId(request)));
portletURL.setParameter(
"folderId", String.valueOf(getFolderId(request)));
portletURL.setParameter(
Expand Down
@@ -0,0 +1,73 @@
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/

package com.liferay.dynamic.data.lists.util.comparator;

import com.liferay.dynamic.data.lists.model.DDLRecord;
import com.liferay.portal.kernel.util.OrderByComparator;

/**
* @author Leonardo Barros
*/
public class DDLRecordIdComparator extends OrderByComparator<DDLRecord> {

public static final String ORDER_BY_ASC = "recordId ASC";

public static final String ORDER_BY_DESC = "recordId DESC";

public static final String[] ORDER_BY_FIELDS = {"recordId"};

public DDLRecordIdComparator() {
this(false);
}

public DDLRecordIdComparator(boolean ascending) {
_ascending = ascending;
}

@Override
public int compare(DDLRecord record1, DDLRecord record2) {
int value = Long.compare(record1.getRecordId(), record2.getRecordId());

if (_ascending) {
return value;
}
else {
return -value;
}
}

@Override
public String getOrderBy() {
if (_ascending) {
return ORDER_BY_ASC;
}
else {
return ORDER_BY_DESC;
}
}

@Override
public String[] getOrderByFields() {
return ORDER_BY_FIELDS;
}

@Override
public boolean isAscending() {
return _ascending;
}

private final boolean _ascending;

}
@@ -1,4 +1,3 @@
<%--
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
Expand All @@ -12,8 +11,24 @@
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
--%>

<%@ include file="/html/portlet/init.jsp" %>
package com.liferay.dynamic.data.lists.util.comparator;

<%@ include file="/html/portlet/control_panel_home/init-ext.jsp" %>
import com.liferay.dynamic.data.lists.model.DDLRecord;
import com.liferay.portlet.exportimport.lar.StagedModelModifiedDateComparator;

/**
* @author Leonardo Barros
*/
public class DDLRecordModifiedDateComparator
extends StagedModelModifiedDateComparator<DDLRecord> {

public DDLRecordModifiedDateComparator() {
this(false);
}

public DDLRecordModifiedDateComparator(boolean ascending) {
super(ascending);
}

}
Expand Up @@ -27,14 +27,17 @@ taglib uri="http://liferay.com/tld/util" prefix="liferay-util" %>

<%@ page import="com.liferay.dynamic.data.lists.exception.RecordSetNameException" %><%@
page import="com.liferay.dynamic.data.lists.form.web.context.DDLFormAdminDisplayContext" %><%@
page import="com.liferay.dynamic.data.lists.form.web.context.DDLFormViewRecordsDisplayContext" %><%@
page import="com.liferay.dynamic.data.lists.form.web.search.RecordSetDisplayTerms" %><%@
page import="com.liferay.dynamic.data.lists.form.web.search.RecordSetSearch" %><%@
page import="com.liferay.dynamic.data.lists.form.web.util.DDLFormPortletUtil" %><%@
page import="com.liferay.dynamic.data.lists.model.DDLRecord" %><%@
page import="com.liferay.dynamic.data.lists.model.DDLRecordSet" %><%@
page import="com.liferay.dynamic.data.mapping.exception.StructureDefinitionException" %><%@
page import="com.liferay.dynamic.data.mapping.exception.StructureLayoutException" %><%@
page import="com.liferay.dynamic.data.mapping.model.DDMStructure" %><%@
page import="com.liferay.dynamic.data.mapping.model.DDMStructureVersion" %><%@
page import="com.liferay.dynamic.data.mapping.storage.DDMFormValues" %><%@
page import="com.liferay.portal.kernel.bean.BeanParamUtil" %><%@
page import="com.liferay.portal.kernel.language.LanguageUtil" %><%@
page import="com.liferay.portal.kernel.util.HtmlUtil" %><%@
Expand Down
@@ -0,0 +1,37 @@
<%--
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
--%>

<%@ include file="/admin/init.jsp" %>

<%
ResultRow row = (ResultRow)request.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW);

DDLRecord record = (DDLRecord)row.getObject();
%>

<liferay-ui:icon-menu direction="left-side" icon="<%= StringPool.BLANK %>" markupView="lexicon" message="<%= StringPool.BLANK %>" showWhenSingleIcon="<%= true %>">
<c:if test="<%= ddlFormAdminDisplayContext.isShowDeleteRecordSetIcon(ddlFormAdminDisplayContext.getRecordSet()) %>">
<portlet:actionURL name="deleteRecord" var="deleteURL">
<portlet:param name="redirect" value="<%= currentURL %>" />
<portlet:param name="recordId" value="<%= String.valueOf(record.getRecordId()) %>" />
</portlet:actionURL>

<liferay-ui:icon
message="delete"
url="<%= deleteURL %>"
/>
</c:if>
</liferay-ui:icon-menu>
Expand Up @@ -23,6 +23,20 @@ DDLRecordSet recordSet = (DDLRecordSet)row.getObject();
%>

<liferay-ui:icon-menu direction="down" icon="<%= StringPool.BLANK %>" markupView="lexicon" message="<%= StringPool.BLANK %>" showExpanded="<%= false %>" showWhenSingleIcon="<%= false %>">
<c:if test="<%= ddlFormAdminDisplayContext.isShowViewEntriesRecordSetIcon(recordSet) %>">
<portlet:renderURL var="viewEntriesURL">
<portlet:param name="mvcPath" value="/admin/view_records.jsp" />
<portlet:param name="redirect" value="<%= PortalUtil.getCurrentURL(request) %>" />
<portlet:param name="recordSetId" value="<%= String.valueOf(recordSet.getRecordSetId()) %>" />
</portlet:renderURL>

<liferay-ui:icon
iconCssClass="icon-view"
message="view-entries"
url="<%= viewEntriesURL %>"
/>
</c:if>

<c:if test="<%= ddlFormAdminDisplayContext.isShowEditRecordSetIcon(recordSet) %>">
<portlet:renderURL var="editURL">
<portlet:param name="mvcPath" value="/admin/edit_record_set.jsp" />
Expand Down