Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Change deprecated simpleTooglePanel to collapsiblePanel
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Eng committed Jun 13, 2013
1 parent a2584fe commit 1eaaac9
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 14 deletions.
27 changes: 14 additions & 13 deletions zanata-war/src/main/webapp/iteration/source_files.xhtml
Expand Up @@ -240,19 +240,20 @@
escape="true"/>
<h:outputLabel value="#{messages['jsf.SourceLanguage']}"/>
</h:selectOneMenu>
<rich:simpleTogglePanel label="#{messages['jsf.iteration.files.CustomParams']}"
<br/>
<rich:collapsiblePanel header="#{messages['jsf.iteration.files.CustomParams']}"
switchType="client"
opened="false">
expanded="false">
<h:outputLabel for="adapterParams" value="#{messages['jsf.iteration.files.CustomParams.description']}" />
<br/>
<h:inputTextarea id="adapterParams"
value="#{projectIterationFilesAction.documentFileUpload.adapterParams}">
<h:outputLabel for="adapterParams" value="#{messages['jsf.iteration.files.CustomParams.description']}" />
</h:inputTextarea>
value="#{projectIterationFilesAction.documentFileUpload.adapterParams}"/>
<br />
<a target="_blank"
href="https://github.com/zanata/zanata-server/wiki/Custom-document-parameters">
#{messages['jsf.iteration.files.CustomParams.linkText']}
</a>
</rich:simpleTogglePanel>
</rich:collapsiblePanel>
<div align="right">
<h:commandButton value="#{messages['jsf.Upload']}"
action="#{projectIterationFilesAction.uploadDocumentFile}"/>
Expand Down Expand Up @@ -289,20 +290,20 @@
escape="true"/>
<h:outputLabel value="#{messages['jsf.SourceLanguage']}"/>
</h:selectOneMenu>

<rich:simpleTogglePanel label="#{messages['jsf.iteration.files.CustomParams']}"
<br/>
<rich:collapsiblePanel header="#{messages['jsf.iteration.files.CustomParams']}"
switchType="client"
opened="false">
expanded="false">
<h:outputLabel for="adapterParams" value="#{messages['jsf.iteration.files.CustomParams.description']}" />
<br/>
<h:inputTextarea id="adapterParams"
value="#{projectIterationFilesAction.documentFileUpload.adapterParams}">
<h:outputLabel for="adapterParams" value="#{messages['jsf.iteration.files.CustomParams.description']}" />
</h:inputTextarea>
value="#{projectIterationFilesAction.documentFileUpload.adapterParams}"/>
<br />
<a target="_blank"
href="https://github.com/zanata/zanata-server/wiki/Custom-document-parameters">
#{messages['jsf.iteration.files.CustomParams.linkText']}
</a>
</rich:simpleTogglePanel>
</rich:collapsiblePanel>
<div align="right">
<h:commandButton value="#{messages['jsf.Upload']}"
action="#{projectIterationFilesAction.uploadDocumentFile}"/>
Expand Down
25 changes: 24 additions & 1 deletion zanata-war/src/main/webapp/resources/css/jsf-skin.css
Expand Up @@ -213,4 +213,27 @@ div.rf-pp-cnt {
border-bottom-right-radius: 5px;
}

/* ====================== End Rich Dialogs =========================== */
/* ====================== End Rich Dialogs =========================== */

/* ====================== Collapsible panel =========================== */

div.rf-cp-hdr {
background-image: none;
background-color: #461446;
border-top-left-radius: 5px;
order-top-right-radius: 5px;
}

div.rf-cp-lbl-colps, div.rf-cp-lbl-exp {
color: #FFFFFF;
font-size:11px;
font-weight: bold;
}

div.rf-cp {
padding:0;
border-radius: 5px;
margin-top:5px;
}

/* ====================== End Collapsible panel =========================== */

0 comments on commit 1eaaac9

Please sign in to comment.