Skip to content

Commit

Permalink
Added: wflow-consoleweb - Add option to hide or show list level actio…
Browse files Browse the repository at this point in the history
…n when no record or no checkbox (#392)

git-svn-id: http://dev.joget.org/svn/jw-community/trunk@208 1bff935d-2fe2-40b7-b00f-c2aca69a7612
  • Loading branch information
owen committed Oct 24, 2011
1 parent 1d1b768 commit 3d95442
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions wflow-consoleweb/src/main/resources/plugin.properties
Expand Up @@ -101,6 +101,7 @@ datalist.hyperlinkdatalistaction.columnName.desc=Column name for the parameter v
datalist.hyperlinkdatalistaction.label=Label
datalist.hyperlinkdatalistaction.label.desc=Label shown in the column (for row actions)
datalist.hyperlinkdatalistaction.confirmationMessage=Confirmation Message
datalist.hyperlinkdatalistaction.visible=Visible when no record or checkbox?

#CheckBox
form.checkbox.editCheckBox=Edit CheckBox
Expand Down
Expand Up @@ -72,7 +72,7 @@
<c:if test="${buttonPosition eq 'topLeft' || buttonPosition eq 'topRight' || buttonPosition eq 'bothLeft' || buttonPosition eq 'bothRight'}">
<div class="actions bottom ${buttonFloat}">
<c:forEach items="${dataList.actions}" var="action">
<c:if test="${!empty dataListRows[0] || action.visibleOnNoRecord}">
<c:if test="${!(empty dataListRows[0] || checkboxPosition eq 'no') || action.visibleOnNoRecord}">
<c:set var="buttonConfirmation" value="" />
<c:if test="${!empty action.confirmation}">
<c:set var="buttonConfirmation" value=" onclick=\"return confirm('${action.confirmation}')\""/>
Expand Down Expand Up @@ -105,7 +105,7 @@
<c:if test="${buttonPosition eq 'bottomLeft' || buttonPosition eq 'bottomRight' || buttonPosition eq 'bothLeft' || buttonPosition eq 'bothRight'}">
<div class="actions bottom ${buttonFloat}">
<c:forEach items="${dataList.actions}" var="action">
<c:if test="${!empty dataListRows[0] || action.visibleOnNoRecord}">
<c:if test="${!(empty dataListRows[0] || checkboxPosition eq 'no') || action.visibleOnNoRecord}">
<c:set var="buttonConfirmation" value="" />
<c:if test="${!empty action.confirmation}">
<c:set var="buttonConfirmation" value=" onclick=\"return confirm('${action.confirmation}')\""/>
Expand Down
Expand Up @@ -42,5 +42,13 @@
label : '@@datalist.hyperlinkdatalistaction.confirmationMessage@@',
name : 'confirmation',
type : 'textfield'
},
{
label : '@@datalist.hyperlinkdatalistaction.visible@@',
name : 'visible',
type : 'checkbox',
options : [
{'value' : 'true', 'label' : ''}
]
}]
}]

0 comments on commit 3d95442

Please sign in to comment.