<%--

    Copyright 2005-2018 The Kuali Foundation

    Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php

    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.

--%>
<%@ include file="/kr/WEB-INF/jsp/tldHeader.jsp" %>
<html>

	<head>
		<title>
			Feedback
		</title>
		<link href="css/screen.css" rel="stylesheet" type="text/css">

    <script language="JavaScript" src="scripts/feedback.js"></script>

	</head>
	<body>

		<table width="100%" border=0 cellpadding=0 cellspacing=0 class="headercell1">
			<tr>
				<td>
					<img src="images/wf-logo.gif" alt="Workflow" width=150 height=21 hspace=5 vspace=5>
				</td>
			</tr>
		</table>

		<br>
		<jsp:include page="WorkflowMessages.jsp" flush="true" />

		<html-el:form action="Feedback.do">

			<kul:csrf />

			<table width="100%" border=0 cellspacing=0 cellpadding=0>
				<tr>
					<td width="20" height="30">
						&nbsp;
					</td>
					<td>
						&nbsp;
					</td>
					<td width="20">
						&nbsp;
					</td>
				</tr>
				<tr>
					<td></td>
					<td>
						<table width="100%" border="0" cellpadding="0" cellspacing="0" class="bord-r-t">

							<!-- fixed-value properties for Falcon contact - not available in Feedback Form -->
							<!-- properties available in Feedback Form -->
							<html-el:hidden name="FeedbackForm" property="timeDate" />
							<html-el:hidden name="FeedbackForm" property="pageUrl" />
							<html-el:hidden name="FeedbackForm" property="exception" />
							<html-el:hidden name="FeedbackForm" property="methodToCall" />
							<html-el:hidden name="FeedbackForm" property="networkId" />
							<html-el:hidden name="FeedbackForm" property="userEmail" />
							<html-el:hidden name="FeedbackForm" property="userName" />

							<tr>
								<td align="right" valign="top" nowrap class="thnormal">
									Name:
								</td>
								<td class="datacell">
								  <c:out value="${FeedbackForm.userName}" default=""/>
      							</td>
  							</tr>

							<tr>
								<td align="right" valign="top" nowrap class="thnormal">
									E-mail:
								</td>
								<td class="datacell">
									<c:out value="${FeedbackForm.userEmail}" default="" />
							    </td>
  							</tr>

							<tr>
								<td align="right" valign="top" nowrap class="thnormal">
									Phone:
								</td>
								<td class="datacell">
									<html-el:text name="FeedbackForm" property="phone" />
								</td>
							</tr>

							<tr>
								<td align="right" valign="top" nowrap class="thnormal">
									Document Id:
								</td>
								<td class="datacell">

									<!-- Document Id in Request -->
									<c:choose>
										<c:when test="${FeedbackForm.documentId != ''}">
											<c:out value="${FeedbackForm.documentId}" />
											<html-el:hidden name="FeedbackForm" property="documentId" />
										</c:when>
            							<c:otherwise>
              								<html-el:text name="FeedbackForm" property="documentId" />
            							</c:otherwise>
          							</c:choose>
    							</td>
  							</tr>

							<tr>
								<td align="right" valign="top" nowrap class="thnormal">
									Document Type:
								</td>
								<td class="datacell">

									<!-- Document Type in Request -->
									<c:choose>
										<c:when test="${FeedbackForm.documentType != ''}">
											<c:out value="${FeedbackForm.documentType}" />
											<html-el:hidden name="FeedbackForm" property="documentType" value="${FeedbackForm.documentType}" />
										</c:when>


            <c:otherwise>
              <html-el:text name="FeedbackForm" property="documentType" value="" />
            </c:otherwise>
          </c:choose>
    </td>
  </tr>
  <tr>
    <td align="right" valign="top" nowrap class="thnormal">Category:</td>
    <td nowrap class="datacell">
          <html-el:select name="FeedbackForm" property="category">
              <html-el:option value="suggestion">Suggestion</html-el:option>
              <html-el:option value="problem">Problem or Technical Question</html-el:option>
          </html-el:select>
    </td>
  </tr>

							<tr>
								<td align="right" valign="top" nowrap class="thnormal">
									Comments:
								</td>
								<td nowrap class="datacell">
									<html-el:textarea name="FeedbackForm" property="comments" cols="23" rows="4"></html-el:textarea>
								</td>
							</tr>
							<logic-el:present name="FeedbackForm" property="exception">
								<tr>
									<td align="right" valign="top" nowrap class="thnormal">
										Exception:
									</td>
									<td class="datacell">
										<c:out value="${FeedbackForm.exception}" />
									</td>
								</tr>
							</logic-el:present>

							<tr>
								<td class="thnormal" colspan="2" align="center">
									<div align="center">
										<html-el:image property="methodToCall.sendFeedback" src="images/buttonsmall_submit.gif" align="absmiddle" />
										&nbsp;&nbsp;&nbsp;&nbsp;
										<html-el:img src="images/buttonsmall_cancel.gif" align="absmiddle" onclick="javascript:window.close()" />
									</div>
								</td>
							</tr>

						</table>

					</td>
					<td></td>
				</tr>
			</table>

		</html-el:form>

	</body>
</html>


