Skip to content

Commit

Permalink
SAK-42751 - Improve layout when there are no attachments (sakaiprojec…
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Pellicer authored and ern committed Nov 15, 2019
1 parent 4412a3d commit 8daa1de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions samigo/samigo-app/src/webapp/jsf/author/item/attachment.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@
</h:column>
</h:dataTable>
</h:panelGroup>
<h:panelGroup rendered="#{!itemauthor.hasAttachment}">
<h:panelGroup layout="block" rendered="#{!itemauthor.hasAttachment}">
<h:outputText escape="false" value="#{authorMessages.no_attachments}" />
</h:panelGroup>

<h:panelGroup rendered="#{!itemauthor.hasAttachment}">
<h:panelGroup layout="block" rendered="#{!itemauthor.hasAttachment}">
<sakai:button_bar>
<h:commandButton action="#{itemauthor.addAttachmentsRedirect}" value="#{authorMessages.add_attachments}"/>
</sakai:button_bar>
</h:panelGroup>

<h:panelGroup rendered="#{itemauthor.hasAttachment}">
<h:panelGroup layout="block" rendered="#{itemauthor.hasAttachment}">
<sakai:button_bar>
<h:commandButton action="#{itemauthor.addAttachmentsRedirect}" value="#{authorMessages.add_remove_attachments}"/>
</sakai:button_bar>
Expand Down

0 comments on commit 8daa1de

Please sign in to comment.