<%@include file="/jsp/common/taglibs.jsp"%>


<!-- Modal -->
<div class="modal fade bs-example-modal-lg" id="modalEditForm">
	<div class="modal-dialog  modal-lg">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
				<h3 class="modal-title">Titulos</h3>
			</div>
			<div class="modal-body">
				<s:form id="idEditForm" class="form-horizontal col-md-10" action="#">
					<fieldset>
					<input type="hidden" name="idTituloCnt"  >
					<input type="hidden" name="idLista"  >
						
						<div class="form-group">
								<label for="inputEmail3" class="col-md-2  control-label">Id BroadView</label>
								<div class="col-md-4">
									<input type="text" class="form-control " name="idBv"  >
								</div>
						</div>
						
						<div class="form-group">
								<label for="inputEmail3" class="col-md-2  control-label">NombreUnico</label>
								<div class="col-md-4">
									<input type="text" class="form-control required" name="nombreUnico"  >
								</div>
						</div>
						<div class="form-group">
							<label for="inputEmail3" class="col-md-2  control-label">T&iacute;tulo</label>
							<div class="col-md-4">
								<input type="text" class="form-control required" name="descTitulo" >
							</div>
						</div>
						<div class="form-group">
								<label for="inputEmail3" class="col-md-2  control-label">Temporada</label>
								<div class="col-md-4">
									<input type="text" class="form-control" name="temporada"  >
								</div>
						</div>
						<div class="form-group">
								<label for="inputEmail3" class="col-md-2  control-label">Episodio</label>
								<div class="col-md-4">
									<input type="text" class="form-control" name="episodio"  >
								</div>
						</div>
						<div class="form-group">
							<label for="inputEmail3" class="col-md-2  control-label">Ventana</label>
							<div  class="col-md-8" >
								<div class="col-md-6">
									<v:datePicker name="fechaInicio" clazz="form-control required datepicker" >
									</v:datePicker>
								</div>
								<div class="col-md-6">
									<v:datePicker name="fechaFin" clazz="form-control required datepicker" >
									</v:datePicker>
								</div>
							</div>
						</div>
						
						<div class="form-group">
							<label for="inputEmail3" class="col-md-2  control-label ">Categor&iacute;a</label>
							<div class="col-md-4">
								<select name="categoriaTit" class="form-control required"></select>
							</div>
						</div>												

						<c:if test="${'EXCLUSIVIDAD' eq tipoAmortizacion }">
							<div class="form-group">
								<label for="inputEmail3" class="col-md-2  control-label">Porcentaje Exclusivo</label>
								<div class="col-md-4">
									<input type="text" class="form-control number" name="pjeExclusivo" id="pjeExclusivo" >
								</div>
							</div>
							<div class="form-group">
								<label for="inputEmail3" class="col-md-2  control-label">Meses Exclusivo</label>
								<div class="col-md-4">
									<input type="text" class="form-control number" name="mesesExclusivo" id="mesesExclusivo" >
								</div>
							</div>
						</c:if>
						
	
						<div class="checkbox">
							<label for="inputEmail3" class="col-md-2  control-label">Caracteristicas</label>
							<div class="checkbox">
								<label for="inputEmail3" class="control-label"> 
									<input type="checkbox" name="briefcase"> Briefcase
								</label>																																
							</div>
							
						</div>
						
						<br>
						<label id="errPerCat" style="display:none; color:red;">El t&iacute;tulo no debe tener Precio y Categor&iacute;a</label>
					</fieldset>
				</s:form>

			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal" >Cerrar</button>
				<button type="button" class="btn btn-primary" onclick="tituloController.alta();" >Guardar</button>
			</div>
		</div>
	</div>
</div>

<div id=dialogAmortizacion >
	  
</div>