PageRenderTime 294ms CodeModel.GetById 171ms app.highlight 1ms RepoModel.GetById 119ms app.codeStats 1ms

/src/main/webapp/WEB-INF/jsp/projects/edit.jsp

http://thoughtsite.googlecode.com/
JavaServer Pages | 127 lines | 121 code | 6 blank | 0 comment | 0 complexity | a55020eba5b4e865db5a108a700f2abd MD5 | raw file
  1<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
  2<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
  3<html>
  4<head>
  5  <title>Create Project!</title>
  6    <script type="text/javascript" src="<%=request.getContextPath()%>/public/js/lib/jquery.limit.js"></script>
  7    <script type='text/javascript' src='<%=request.getContextPath()%>/public/js/lib/jquery.autocomplete.js'></script>
  8    <script type="text/javascript" src="<%=request.getContextPath()%>/public/js/projects/edit-project.js"></script>
  9    <script type="text/javascript" src="http://api.recaptcha.net/js/recaptcha_ajax.js"></script>
 10    <link href="<%=request.getContextPath()%>/public/css/lib/jquery.autocomplete.css" type="text/css" rel="stylesheet" />
 11    <meta name="currentPage" content="project" />
 12</head>
 13<body>
 14  <div id="submit-idea-pg-content">
 15    <form action="/projects/create" enctype="multipart/form-data" method="POST" id='projectForm' >
 16      <c:if test="${not empty ideaKey}">
 17        <input type="hidden" value="<c:out value='${ideaKey}'/>" id="ideaKey" name="ideaKey"/>        
 18      </c:if>
 19      <c:if test="${not empty projectKey}">
 20        <input type="hidden" value="<c:out value='${projectKey}'/>" id="projectKey" name="projectKey"/>        
 21      </c:if>
 22      <table width="98%" border="0" align="left" cellpadding="2" cellspacing="1" class="ie-submit-idea-tb" id="sub-my-idea">
 23        <tr>
 24          <td width="23%"></td>
 25          <td colspan="5">
 26            <div class="ie-left-mar-10 ie-top-mar-5 ie-rd" id="errDisplay">
 27
 28            <ul><c:forEach items="${viewStatus.messages}" var="msgEntry">
 29                      <!-- Print other messages -->
 30                      <fmt:bundle basename="ui">
 31                      <li><c:out value="${msgEntry.value}"/></li>
 32                      </fmt:bundle>
 33                </c:forEach></ul>
 34            </div>
 35          </td>
 36         
 37        </tr>
 38         <c:set var="projectDetail" value="${viewStatus.data['project']}"></c:set>
 39         <c:set var="ideaTitle" value="${viewStatus.data['ideaTitle']}"></c:set>
 40         <c:set var="project" value="${projectDetail['project']}"/>  
 41        	<div class="ie-left-mar-5">
 42        	<c:if test="${true eq editProject}">
 43               <h3 class="blu-heading">Update your Project</h3>
 44      		</c:if>
 45      		<c:if test="${empty editProject}">
 46              <h3 class="blu-heading">Create your Project</h3>
 47            </c:if>
 48                    	
 49            <div class="ie-text ie-left-mar-5"><c:out value='${ideaTitle}'/>
 50            </div>
 51        </div>
 52        <tr>
 53          <td width="23%" class="ie-td-lbg" >Project Name<em>*</em></td>
 54          <td colspan="5" class="ie-td-lbg" ><input name="name" type="text" id="name" size="70" maxlength="150" value="<c:out value='${project.name}'/>"/>
 55          <br />
 56          <span class="ie-left-mar-3" id="charsLeftName"></span> chars left.
 57          </td>
 58        </tr>
 59        <tr>
 60          <td class="ie-td-lbg">Description</td>
 61          <td colspan="5" class="ie-td-lbg">
 62            <textarea name="description" cols="110" rows="7"  id="description" ><c:out value='${project.description}'/></textarea>
 63            <br />
 64            <span class="ie-left-mar-3" id="charsLeftDescription"></span> chars left.
 65          </td>
 66        </tr> 
 67        <tr>
 68          <td class="ie-td-lbg">Upload Logo</td>
 69          <td colspan="5" class="ie-td-lbg">
 70            <input type="file" name="logoFile" id="fileField"  value="<c:out value='${project.logo}'/>"/>
 71            <input type="hidden" name="recaptchaChallengeField" id="recaptchaChallengeField"/>
 72            <input type="hidden" name="recaptchaResponseField" id="recaptchaResponseField"/>
 73		  	<br />
 74          </td>
 75        </tr>
 76        <tr>
 77          <td class="ie-td-lbg">Add Developers</td>
 78          <td colspan="5" class="ie-td-lbg">
 79			<div  id="developerList">
 80				<c:if test="${not empty projectDetail.developers}">
 81			    <c:forEach items="${projectDetail.developers}" var="developer" >				
 82				<input name="devName" type="text"  value="<c:out value='${developer.name}'/>" readonly="readonly" size="30" maxlength="50" />
 83				<input name="email" type="text"  value="<c:out value='${developer.emailId}'/>" readonly="readonly" size="30" maxlength="50" />
 84				<input type="hidden" name="status" value="<c:out value='${developer.status}'/>" />
 85				<input type="hidden" name="devKey" value="<c:out value='${developer.key}'/>"/>
 86				<br></br>
 87			   </c:forEach>		
 88			   </c:if>	  
 89			  
 90		   		<input type="hidden" value="0" id="theValue" />
 91				<input name="devName" onClick="blankDevName()" onSelect="blankDevName()" type="text" id="devName" value="name" size="30" maxlength="50" />
 92				<input name="email" onClick="blankEmailId()" onSelect="blankEmailId()" type="text" id="email" value="emailId" size="30" maxlength="50" />	
 93				<input type="hidden" name="status" value="" />	
 94				<input type="hidden" name="devKey" value="" /> <a href="#javascript:void(0)" onclick="addMore()" class="ie-nm-blu">Add more</a>	
 95			</div>
 96                 
 97		  	<br />
 98          </td>
 99        </tr>
100        <tr>
101          <td class="ie-td-lbg">&nbsp;</td>
102          <td colspan="5" class="ie-td-lbg">&nbsp;</td>
103        </tr>
104        <tr>
105          <td width="23%" class="ie-td-lbg">&nbsp;</td>
106          <td colspan="5" class="ie-td-lbg">
107            <div align="left">
108            <c:if test="${true eq editProject}">
109               <input type="button" name="button" id="btnCreateProj" value="Update Project" class="ie-button" 
110              style="padding-left:20px; padding-right:20px;"/>
111      		</c:if>
112      		<c:if test="${empty editProject}">
113              <input type="button" name="button" id="btnCreateProj" value="Create Project" class="ie-button" 
114              style="padding-left:20px; padding-right:20px;"/>
115            </c:if>
116            </div></td>
117        </tr>
118        <tr>
119          <td class="ie-td-lbg">&nbsp;</td>
120          <td colspan="5" class="ie-td-lbg">&nbsp;</td>
121        </tr>
122        
123      </table> 
124    </form>
125  </div>
126</body>
127</html>