Skip to content

Commit

Permalink
Added new kebab file options icon btn to upload/edit files pg, styled…
Browse files Browse the repository at this point in the history
… file level msgs [ref #7081]
  • Loading branch information
mheppler committed Aug 26, 2020
1 parent d37784c commit 7721db6
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/main/webapp/editFilesFragment.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -405,9 +405,6 @@
</ui:repeat>
</ui:fragment>
</div>
<div jsf:rendered="#{!(empty fileMetadata.dataFile.duplicateFilename)}" class="alert alert-warning no-margin-bottom padding-6" role="alert">
#{fileMetadata.dataFile.duplicateFilename}
</div>
</div>
</div>
</p:column>
Expand Down Expand Up @@ -444,12 +441,22 @@
</ul>
</div>
</f:facet>

<!-- FILE LEVEL MSGs -->
<div class="bg-warning text-warning text-center margin-bottom-half" jsf:rendered="#{!(empty fileMetadata.dataFile.duplicateFilename)}">
<!-- Duplicate file name -->
<span class="glyphicon glyphicon-warning-sign"/> #{fileMetadata.dataFile.duplicateFilename}
</div>
<!-- END: FILE LEVEL MSGs -->

<div style="margin-right:14px;" class="btn-group">
<button type="button" class="btn btn-default btn-access dropdown-toggle" data-toggle="dropdown"
<button class="btn-file-options btn btn-link bootstrap-button-tooltip dropdown-toggle" title="#{bundle['file.optionsBtn']}" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"
disabled="#{DatasetPage.lockedFromEdits ? 'disabled' : ''}">
<span class="glyphicon glyphicon-pencil"/> #{bundle['file.editFile']} <span class="caret"></span>
<span class="glyphicon glyphicon-option-vertical"/><span class="sr-only">#{bundle['file.optionsBtn']}</span><span class="caret"></span>
</button>
<ul class="dropdown-menu multi-level pull-right text-left" role="menu">
<!-- Edit Options -->
<li class="dropdown-header">#{bundle['file.optionsBtn.header.edit']} <span class="glyphicon glyphicon-pencil"/></li>
<ui:fragment rendered="#{systemConfig.provCollectionEnabled}">
<li class="#{DatasetPage.lockedFromEdits ? 'disabled' : ''}">
<p:commandLink id="fileProvenanceButton"
Expand Down

0 comments on commit 7721db6

Please sign in to comment.