blob: c043acade6d900667835030893529e5f339c0c66 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:tr="http://myfaces.apache.org/trinidad"
template="/samples/email/e-mailTemplate.xhtml">
<ui:define name="componentContent">
<tr:panelHorizontalLayout styleClass="fit_to_parrent">
<h2>
New
</h2>
<tr:spacer width="30px"/>
<tr:panelHorizontalLayout halign="end">
<tr:panelGroupLayout layout="horizontal">
<tr:commandLink id="newEmailImg"
partialSubmit="true"
styleClass="newContact" action="#{sentEmailListBean.newEmail}"
inlineStyle="width:16px;height:16px;"/>
<tr:commandLink id="newEmailLink"
partialSubmit="true"
text="New" action="#{sentEmailListBean.newEmail}"/>
</tr:panelGroupLayout>
<tr:spacer width="10px"/>
<tr:panelGroupLayout layout="horizontal">
<tr:commandLink styleClass="deleteContact" action="none"
inlineStyle="width:16px;height:16px;"/>
<tr:commandLink text="Delete" action="none"/>
</tr:panelGroupLayout>
</tr:panelHorizontalLayout>
</tr:panelHorizontalLayout>
<tr:panelGroupLayout layout="vertical" inlineStyle="margin-top: 22px;" styleClass="rightColumn">
<tr:panelBox text="New E-Mail" inlineStyle="width: 100%" styleClass="mail_list"
partialTriggers="saveEmail">
<tr:panelGroupLayout layout="vertical"
partialTriggers="newEmailImg newEmailLink openMail receivedEmailList">
<tr:panelBox inlineStyle="width: 97%">
<h:panelGrid columns="2" width="100%" style="width: 100%;" cellpadding="0" cellspacing="0px">
<tr:outputLabel value="To:" for="to"/>
<tr:inputText id="to" value="#{sentEmailListBean.sentEmail.to}"/>
<tr:spacer height="5px"/>
<tr:spacer height="5px"/>
<tr:outputLabel value="Subject:" for="subject"/>
<tr:inputText id="Subject" value="#{sentEmailListBean.sentEmail.subject}"/>
</h:panelGrid>
<tr:spacer height="20px"/>
<tr:panelGroupLayout layout="vertical" >
<tr:outputLabel value="Content:" for="content"/>
<tr:spacer height="10px"/>
<tr:inputText id="content" value="#{sentEmailListBean.sentEmail.content}"
rows="7" columns="100"/>
</tr:panelGroupLayout>
<tr:spacer height="10px"/>
<tr:panelHorizontalLayout>
<tr:spacer width="8px"/>
<tr:commandButton id="saveEmail" text="Save"
action="#{sentEmailListBean.save}" partialSubmit="true"/>
<tr:spacer width="10px"/>
<tr:commandButton id="cancelEmail" text="Cancel"
action="#{sentEmailListBean.cancel}" partialSubmit="true"/>
</tr:panelHorizontalLayout>
</tr:panelBox>
</tr:panelGroupLayout>
</tr:panelBox>
</tr:panelGroupLayout>
</ui:define>
</ui:composition>