Skip to content
Permalink
Browse files

Added event style class naming convention to btns [ref #4660]

  • Loading branch information...
mheppler committed Dec 20, 2018
1 parent d1a42dd commit 2edb0ab93f8fbdcb19164f652df7bb362da29383
@@ -64,7 +64,7 @@
and !DatasetPage.dataset.deaccessioned
and DatasetPage.showComputeButton()}">
<!-- Compute Button Group -->
<button type="button" id="computeBatch" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<button type="button" id="computeBatch" class="btn btn-default btn-compute dropdown-toggle" data-toggle="dropdown">
<span class="glyphicon glyphicon-flash"/> #{bundle['dataset.compute.computeBtn']} <span class="caret"></span>
</button>
<ul class="dropdown-menu pull-left text-left" role="menu">
@@ -288,15 +288,15 @@

<!-- Contact/Share Button Group -->
<div class="btn-group pull-right" id="datasetButtonBar" role="group">
<p:commandLink class="text-button bootstrap-button-tooltip" title="#{bundle['dataset.email.datasetContactBtn']}"
<p:commandLink class="text-button btn-contact bootstrap-button-tooltip" title="#{bundle['dataset.email.datasetContactBtn']}"
update=":contactDialog" oncomplete="PF('contactForm').show()" actionListener="#{sendFeedbackDialog.initUserInput}">
<f:setPropertyActionListener target="#{sendFeedbackDialog.userMessage}" value=""/>
<f:setPropertyActionListener target="#{sendFeedbackDialog.userEmail}" value=""/>
<f:setPropertyActionListener target="#{sendFeedbackDialog.messageSubject}" value=""/>
<f:setPropertyActionListener target="#{sendFeedbackDialog.recipient}" value="#{DatasetPage.dataset}"/>
<span class="glyphicon glyphicon-envelope"/> #{bundle['contact.contact']}
</p:commandLink>
<p:commandLink styleClass="text-button bootstrap-button-tooltip" rendered="#{!DatasetPage.workingVersion.deaccessioned}"
<p:commandLink styleClass="text-button btn-share bootstrap-button-tooltip" rendered="#{!DatasetPage.workingVersion.deaccessioned}"
title="#{bundle['dataset.share.datasetShare']}"
oncomplete="PF('shareDialog').show();sharrre();">
<span class="glyphicon glyphicon-share"/> #{bundle['share']}
@@ -599,7 +599,7 @@
<span class="glyphicon glyphicon-pencil"/> #{bundle['file.dataFilesTab.metadata.addBtn']}
</p:commandLink>
<div class="btn-group" jsf:rendered="#{DatasetPage.dataset.released and !DatasetPage.dataset.deaccessioned}" >
<button class="btn btn-default dropdown-toggle" type="button" styleClass="btn btn-default" data-toggle="dropdown">
<button class="btn btn-default btn-export dropdown-toggle" type="button" styleClass="btn btn-default" data-toggle="dropdown">
<span class="glyphicon glyphicon-export"/> #{bundle['dataset.exportBtn']} <span class="caret"/></button>
<ul class="dropdown-menu" role="menu">
<ui:repeat var="exporter" value="#{DatasetPage.exporters}">
@@ -465,7 +465,7 @@
<!-- END: Edit/Publish Button Group -->
<!-- Email/Link/Share Button Group -->
<div class="btn-group pull-right" role="group">
<p:commandLink type="button" styleClass="text-button bootstrap-button-tooltip" title="#{bundle['dataverse.contact']}"
<p:commandLink type="button" styleClass="text-button btn-contact bootstrap-button-tooltip" title="#{bundle['dataverse.contact']}"
update=":contactDialog" oncomplete="PF('contactForm').show()" actionListener="#{sendFeedbackDialog.initUserInput}">
<f:setPropertyActionListener target="#{sendFeedbackDialog.userMessage}" value=""/>
<f:setPropertyActionListener target="#{sendFeedbackDialog.userEmail}" value=""/>
@@ -474,7 +474,7 @@
<f:setPropertyActionListener target="#{sendFeedbackDialog.recipient}" value="#{DataversePage.dataverse}"/>
<span class="glyphicon glyphicon-envelope"/> #{bundle['contact.contact']}
</p:commandLink>
<p:commandLink type="button" styleClass="text-button bootstrap-button-tooltip"
<p:commandLink type="button" styleClass="text-button btn-share bootstrap-button-tooltip"
title="#{bundle['dataverse.share.dataverseShare']}"
oncomplete="PF('shareDialog').show();sharrre();">
<span class="glyphicon glyphicon-share"/> #{bundle['share']}
@@ -21,7 +21,7 @@
<ui:fragment rendered="#{worldMapPermissionHelper.canUserSeeExploreWorldMapButtonFromPage(fileMetadata)}">
<button type="button"
style="border-right:0;"
class="btn btn-default"
class="btn btn-default btn-preview"
data-target="#map-modal-#{fileMetadata.id}"
data-toggle="modal">
<span class="glyphicon glyphicon-map-marker"/> #{bundle['preview']}
@@ -52,12 +52,12 @@
<!--Note that "WorldMap Explore" is not an explore tool (external tool)-->
<div class="btn-group" jsf:rendered="#{fileDownloadHelper.canDownloadFile(fileMetadata) and not empty exploreTools or (worldMapPermissionHelper.canUserSeeExploreWorldMapButtonFromPage(fileMetadata))}">
<ui:fragment rendered="#{(exploreTools.size()==1 and !worldMapPermissionHelper.canUserSeeExploreWorldMapButtonFromPage(fileMetadata)) or (exploreTools.size()==0 and worldMapPermissionHelper.canUserSeeExploreWorldMapButtonFromPage(fileMetadata))}">
<button type="button" class="btn btn-default" onclick="$(this).parent().find( 'li > a' ).trigger( 'click' );">
<button type="button" class="btn btn-default btn-explore" onclick="$(this).parent().find( 'li > a' ).trigger( 'click' );">
<span class="glyphicon glyphicon-equalizer"/> #{bundle.explore}
</button>
</ui:fragment>
<ui:fragment rendered="#{exploreTools.size()>1 or (exploreTools.size()>=1 and worldMapPermissionHelper.canUserSeeExploreWorldMapButtonFromPage(fileMetadata))}">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<button type="button" class="btn btn-default btn-explore dropdown-toggle" data-toggle="dropdown">
<span class="glyphicon glyphicon-equalizer"/> #{bundle.explore} <span class="caret"/>
</button>
</ui:fragment>
@@ -105,16 +105,16 @@
</div>

<!-- Compute Button *File pg only*: -->
<h:outputLink value="#{FilePage.computeUrl}" type="button" class="btn btn-default" target="_blank" rendered="#{isFilePg and FilePage.showComputeButton() and fileDownloadHelper.canDownloadFile(fileMetadata)}">
<h:outputLink value="#{FilePage.computeUrl}" type="button" class="btn btn-default btn-compute" target="_blank" rendered="#{isFilePg and FilePage.showComputeButton() and fileDownloadHelper.canDownloadFile(fileMetadata)}">
<span class="glyphicon glyphicon-flash"/> #{bundle['file.compute']}
</h:outputLink>
<!-- Compute Button *Dataset pg only*: -->
<h:outputLink value="#{DatasetPage.getComputeUrl(fileMetadata)}" type="button" class="btn btn-default" target="_blank" rendered="#{!isFilePg and DatasetPage.showComputeButton(fileMetadata) and fileDownloadHelper.canDownloadFile(fileMetadata)}">
<h:outputLink value="#{DatasetPage.getComputeUrl(fileMetadata)}" type="button" class="btn btn-default btn-compute" target="_blank" rendered="#{!isFilePg and DatasetPage.showComputeButton(fileMetadata) and fileDownloadHelper.canDownloadFile(fileMetadata)}">
<span class="glyphicon glyphicon-flash"/> #{bundle['file.compute']}
</h:outputLink>

<p:commandLink rendered="#{ fileDownloadHelper.canDownloadFile(fileMetadata) and !(fileMetadata.dataFile.tabularData) and !(downloadPopupRequired) }"
type="button" styleClass="btn btn-default"
type="button" styleClass="btn btn-default btn-download"
process="@this"
disabled="#{(fileMetadata.dataFile.ingestInProgress or lockedFromDownload) ? 'disabled' : ''}"
actionListener="#{fileDownloadService.writeGuestbookAndStartFileDownload(guestbookResponse, fileMetadata, 'Download')}">
@@ -124,7 +124,7 @@
</p:commandLink>

<p:commandLink rendered="#{ fileDownloadHelper.canDownloadFile(fileMetadata) and !(fileMetadata.dataFile.tabularData) and downloadPopupRequired }"
type="button" styleClass="btn btn-default"
type="button" styleClass="btn btn-default btn-download"
process="@this"
disabled="#{(fileMetadata.dataFile.ingestInProgress or lockedFromDownload) ? 'disabled' : ''}"
action="#{guestbookResponseService.modifyDatafile(guestbookResponse, fileMetadata)}"
@@ -135,7 +135,7 @@

<div class="btn-group" jsf:rendered="#{ fileDownloadHelper.canDownloadFile(fileMetadata) and fileMetadata.dataFile.tabularData }">
<!-- Download Dropdown -->
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<button type="button" class="btn btn-default btn-download dropdown-toggle" data-toggle="dropdown">
<span class="glyphicon glyphicon-download-alt"/> #{bundle.download} <span class="caret"/>
</button>
<ul class="dropdown-menu multi-level pull-right text-left" role="menu">
@@ -265,7 +265,7 @@
</li>
</ul>
</div>
<p:commandLink type="button" styleClass="btn btn-default" rendered="#{(fileDownloadHelper.session.user.authenticated
<p:commandLink type="button" styleClass="btn btn-default btn-request" rendered="#{(fileDownloadHelper.session.user.authenticated
and !fileMetadata.datasetVersion.deaccessioned
and fileMetadata.dataFile.owner.fileAccessRequest
and !(fileDownloadHelper.canDownloadFile(fileMetadata)))
@@ -277,7 +277,7 @@
<span class="glyphicon glyphicon-bullhorn"/> #{fileMetadata.dataFile.fileAccessRequesters.contains(dataverseSession.user) ? bundle['file.accessRequested'] : bundle['file.requestAccess']}
</p:commandLink>

<p:commandLink type="button" styleClass="btn btn-default" rendered="#{fileDownloadHelper.session.user.authenticated
<p:commandLink type="button" styleClass="btn btn-default btn-request" rendered="#{fileDownloadHelper.session.user.authenticated
and !fileMetadata.datasetVersion.deaccessioned
and fileMetadata.dataFile.owner.fileAccessRequest
and !(fileDownloadHelper.canDownloadFile(fileMetadata))
@@ -290,7 +290,7 @@
<span class="glyphicon glyphicon-bullhorn"/> #{fileMetadata.dataFile.fileAccessRequesters.contains(dataverseSession.user) ? bundle['file.accessRequested'] : bundle['file.requestAccess']}
</p:commandLink>
<p:commandLink type="button"
styleClass="btn btn-default"
styleClass="btn btn-default btn-request"
process="@this"
rendered="#{!fileDownloadHelper.session.user.authenticated
and !fileMetadata.datasetVersion.deaccessioned
@@ -45,15 +45,15 @@
<div class="button-block pull-right">
<!-- Email/Share Button Group -->
<div class="btn-group" id="datasetButtonBar" role="group" jsf:rendered="#{!widgetWrapper.widgetView}">
<p:commandLink class="text-button bootstrap-button-tooltip" title="#{bundle['dataset.email.datasetContactBtn']}"
<p:commandLink class="text-button btn-contact bootstrap-button-tooltip" title="#{bundle['dataset.email.datasetContactBtn']}"
update=":contactDialog" oncomplete="PF('contactForm').show()" actionListener="#{sendFeedbackDialog.initUserInput}">
<f:setPropertyActionListener target="#{sendFeedbackDialog.userMessage}" value=""/>
<f:setPropertyActionListener target="#{sendFeedbackDialog.userEmail}" value=""/>
<f:setPropertyActionListener target="#{sendFeedbackDialog.messageSubject}" value=""/>
<f:setPropertyActionListener target="#{sendFeedbackDialog.recipient}" value="#{FilePage.fileMetadata.dataFile}"/>
<span class="glyphicon glyphicon-envelope"/> #{bundle['contact.contact']}
</p:commandLink>
<p:commandLink styleClass="text-button bootstrap-button-tooltip" rendered="#{!FilePage.fileMetadata.datasetVersion.deaccessioned}"
<p:commandLink styleClass="text-button btn-share bootstrap-button-tooltip" rendered="#{!FilePage.fileMetadata.datasetVersion.deaccessioned}"
title="#{bundle['dataset.share.datasetShare']}"
oncomplete="PF('shareDialog').show();sharrre();">
<span class="glyphicon glyphicon-share"/> #{bundle['share']}
@@ -395,7 +395,7 @@

<!-- Export Button -->
<div class="btn-group" jsf:rendered="#{FilePage.fileMetadata.datasetVersion.dataset.released}">
<button class="btn btn-default dropdown-toggle" type="button" styleClass="btn btn-default" data-toggle="dropdown">
<button class="btn btn-default btn-export dropdown-toggle" type="button" styleClass="btn btn-default" data-toggle="dropdown">
<span class="glyphicon glyphicon-export"/> #{bundle['dataset.exportBtn']} <span class="caret"/></button>
<ul class="dropdown-menu" role="menu">
<ui:repeat var="exporter" value="#{FilePage.getExporters()}">
@@ -292,15 +292,15 @@
and DatasetPage.workingVersion.fileMetadatas.size() > 1) and DatasetPage.downloadButtonAvailable
and !DatasetPage.isHasTabular()}">
<p:commandLink rendered="#{!(DatasetPage.downloadPopupRequired)}"
type="button" styleClass="btn btn-default"
type="button" styleClass="btn btn-default btn-download"
disabled="#{false and DatasetPage.lockedFromDownload}"
update="@form"
actionListener="#{DatasetPage.validateFilesForDownload(false, false)}">
<span class="glyphicon glyphicon-download-alt"/> #{bundle.download}
</p:commandLink>
<!-- guest book or terms of use, etc. enabled - open "download popup" first: -->
<p:commandLink rendered="#{DatasetPage.downloadPopupRequired}"
type="button" styleClass="btn btn-default"
type="button" styleClass="btn btn-default btn-download"
disabled="#{false and DatasetPage.lockedFromDownload}"
action="#{DatasetPage.validateFilesForDownload(true, false)}"
update="@form" oncomplete="">
@@ -311,7 +311,7 @@
jsf:rendered="#{(!(empty DatasetPage.workingVersion.fileMetadatas)
and DatasetPage.workingVersion.fileMetadatas.size() > 1) and DatasetPage.downloadButtonAvailable
and DatasetPage.isHasTabular()}">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<button type="button" class="btn btn-default btn-download dropdown-toggle" data-toggle="dropdown">
<span class="glyphicon glyphicon-download-alt"/> #{bundle.download} <span class="caret"/>
</button>
<ul jsf:id="downloadDropdownOptions" class="dropdown-menu multi-level pull-right text-left" role="menu">
@@ -349,13 +349,13 @@
</div>

<p:commandLink rendered="#{DatasetPage.fileAccessRequestMultiButtonRequired}"
type="button" styleClass="btn btn-default"
type="button" styleClass="btn btn-default btn-request"
update="@form" action="#{DatasetPage.requestAccessMultipleFiles()}"
disabled="#{DatasetPage.locked}">
<span class="glyphicon glyphicon-bullhorn"/> #{bundle['file.requestAccess']}
</p:commandLink>
<p:commandLink rendered="#{DatasetPage.fileAccessRequestMultiSignUpButtonRequired}"
type="button" styleClass="btn btn-default"
type="button" styleClass="btn btn-default btn-request"
onclick="PF('accessSignUpLogIn_popup').show()"
disabled="#{DatasetPage.locked}">
<span class="glyphicon glyphicon-bullhorn"/> #{bundle['file.requestAccess']}

0 comments on commit 2edb0ab

Please sign in to comment.
You can’t perform that action at this time.