<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<%@ taglib prefix="webpath" uri="/WEB-INF/tlds/path.tld"%>
<%@ taglib prefix="webpage" uri="/WEB-INF/tlds/pageview.tld"%>

<head>


</head>
		

<div class="main-content">
	<div class="breadcrumbs" id="breadcrumbs">
		

		<ul class="breadcrumb">
			<li>
				<i class="icon-home home-icon"></i>
				<a href="#">首页</a>
			</li>
			<li class="active">彩虹计划</li>
			<li class="active">愿望管理</li>
			<li class="active">保存</li>
		</ul><!-- .breadcrumb -->

		
	</div>
	<div class="page-content">
		<div class="row">
		
			<div class="col-xs-12">
				
				<form action="#" id="wish_form" name="wish_form" method="post" onsubmit="return false" class="form-horizontal" role="form">
				<input class="col-xs-10 col-sm-10" id="id" name="id" type="hidden" value="${wish.id}"/>
				<input class="col-xs-10 col-sm-10" id="activityId" name="activityId" type="hidden" value="${wish.activityId}"/>
				<input class="col-xs-10 col-sm-10" id="rainbowPlanUserId" name="rainbowPlanUserId" type="hidden" value="${wish.rainbowPlanUserId}"/>
				
				<div class="row">
				<div class="col-xs-12">
				<h3 class="header smaller lighter blue">${wish.children.name}</h3></div>
				</div>
				
				
				<div class="row">
					<div class="col-xs-4">
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right" for="form-field-1">编号</label>
	
							<div class="col-sm-9">
							<input class="col-xs-10 col-sm-10" id="code" name="code" type="text" value="${wish.code}"/>
							  
							</div>
						</div>
									
						<div class="form-group children">
							<label class="col-sm-3 control-label no-padding-right" for="form-field-1">内容 </label>
	
							<div class="col-sm-9">
								<textarea rows="4" class="col-xs-10 col-sm-10" id="content" name="content">${wish.content}</textarea>
							  
							</div>
						</div>
					
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right" for="form-field-1"><font color="red">*</font>图片</label>
	
							<div class="col-sm-9">
							<c:if test="${wish.uploadImage!=null}">
								<img src="<webpath:path/>/wx/rainbowplan/loadResource?imageName=${wish.uploadImage}" /><br></c:if>
								<input type="file" id="input_file" name="file" accept="image/gif,image/jpeg,image/jpg,image/png" >
							</div>
						</div>
						
						<div class="form-group children">
							<label class="col-sm-3 control-label no-padding-right" for="form-input-readonly"> 状态 </label>
	
							<div class="col-sm-9">
								<select class="" id="status" name="status">
									<option value="0" <c:if test="${wish.status==0}">selected</c:if>>发布</option>
									<option value="1" <c:if test="${wish.status==1}">selected</c:if>>认领</option>
									<option value="2" <c:if test="${wish.status==2}">selected</c:if>>寄送中</option>
									<option value="3" <c:if test="${wish.status==3}">selected</c:if>>红会代收</option>
									<option value="4" <c:if test="${wish.status==4}">selected</c:if>>完成</option>
								</select>
							</div>
						</div>
						
						
	
						
						<c:if test="${wish.id!=null}">
						<div class="form-group children">
							<label class="col-sm-3 control-label no-padding-right" for="form-input-readonly"> 重新认领 </label>
	
							<div class="col-sm-9">
								<select class="" id="reset" name="reset">
									<option value="false">否</option>
									<option value="true" >是</option>
								</select>
							</div>
						</div>
						</c:if>
					</div>
		
				
				</div>
				
				
					<div class="col-md-offset-3 col-md-9">
						<button class="btn btn-sm btn-success" type="submit" onclick="wish.save()">
							<i class="icon-save bigger-110"></i>
							保存
						</button>
						<a class="btn btn-sm btn-success" href="javascript:history.go(-1)">
							<i class="icon-reply bigger-110"></i>
							返回
						</a>
					</div>
				
				
			</form>
			
			
											
											
										
			</div>
			
		</div>
	</div>
	

</div>




<script src="<webpath:path/>/resources/js/rainbow/wish.js?v=window.number" type="text/javascript"></script>




