Created
March 26, 2015 14:34
-
-
Save joannaho/d56f9a8d1134bbc3e71e to your computer and use it in GitHub Desktop.
CQ Button component, need version toggle
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
<%@include file="/apps/acs/components/shared/global.jsp"%> | |
<%@ page import="org.acs.cq.utils.DialogWriter"%> | |
<c:if test="${columns.isBootstrap3}"> | |
<% | |
response.setContentType("application/json"); | |
LinkedHashMap<String,String> values = new LinkedHashMap<String,String>(); | |
values.put("None", ""); | |
values.put("Search", "glyphicon glyphicon-search"); | |
values.put("Arrow", "glyphicon glyphicon-play"); | |
values.put("Checkmark", "glyphicon glyphicon-ok"); | |
values.put("Form", "glyphicon glyphicon-list-alt"); | |
String json = DialogWriter.getDialogJson(values); | |
%> | |
</c:if> | |
<c:if test="${columns.isBootstrap2}"> | |
<% | |
response.setContentType("application/json"); | |
LinkedHashMap<String,String> values = new LinkedHashMap<String,String>(); | |
values.put("None", ""); | |
values.put("Search", "icon-search"); | |
values.put("Arrow", "icon-play"); | |
values.put("Checkmark", "icon-ok"); | |
values.put("Form", "icon-alt"); | |
String json = DialogWriter.getDialogJson(values); | |
%> | |
</c:if> | |
<%=json%> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment