<%@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" id="idTituloCnt" name="idTituloCnt"  >
					<input type="hidden" name="idLista"  >
												
					   <div class="form-group">							
							 <div  class="col-md-12" >
								
								<label for="inputEmail3" class="col-md-2 control-label">Filial:</label>
								<div class="col-md-4">								    																																			
									<select id="filial" name="filial" class="form-control required"></select>									
								</div>
								
								<label for="inputEmail3" class="col-md-2 control-label">DTR:</label>
								<div class="col-md-1">
								    <input type="radio" id="dtr" name="tipoTitulo" value="dtr" onclick="tituloController.selectsDisabledController('dtrType', 'dtoType');">
								</div>
								<div class="col-md-3">																																
									<select id="categoriaDTR" name="categoriaDTR" class="form-control required dtrType">
										<option value="0">Selecciona</option>
										<option value="Premium">Premium</option>
										<option value="Premier">Premier</option>
		   								<option value="Libreria">Librer&iacute;a</option>
									</select>																
								</div>

							</div>
						</div>																		
												
						<div class="form-group">							
							 <div  class="col-md-12" >
								
								<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>
								
								<label for="inputEmail3" class="col-md-2 control-label">DTO:</label>
								<div class="col-md-1">
								    <input type="radio" id="dto" name="tipoTitulo" value="dto" onclick="tituloController.selectsDisabledController('dtoType', 'dtrType');">
								</div>
								
								<div class="col-md-3">																															
									<select id="categoriaSerie" name="categoriaSerie" class="form-control required dtoType" onChange="tituloController.exclusiveSelectController('categoriaSerie', 'tier');">										
									</select>																		
								</div>
							</div>
						</div>	
						
						<div class="form-group">							
							 <div  class="col-md-12" >
								<div class="col-md-9"></div>
								<div class="col-md-3">																														
									<select id="tier" name="tier" class="form-control required dtoType" onChange="tituloController.exclusiveSelectController('tier', 'categoriaSerie');"></select>																																					
								</div>
							</div>
						</div>																
						
						<div class="form-group">							
							 <div  class="col-md-12" >
								<label for="inputEmail3" class="col-md-2 control-label">Nombre &uacute;nico:</label>
								<div class="col-md-8">								    																																			
									<input type="text" class="form-control required" name="nombreUnico"  >									
								</div>
							</div>
						</div>
						
						<div class="form-group">							
							 <div  class="col-md-12" >
								
								<label for="inputEmail3" class="col-md-2 control-label">Nombre est&aacute;ndar:</label>
								<div class="col-md-8">								    																																			
									<input type="text" class="form-control required" name="nombreEstandar"  >									
								</div>

							</div>
						</div>
						
												
						<div class="form-group">							
							 <div  class="col-md-12" >
 								<label for="inputEmail3" class="col-md-2 control-label">Categor&iacute;a:</label>
								<div class="col-md-4">																					
									<select id="categoria" name="categoria" class="form-control required"></select>																				
								</div>
								
								<label for="inputEmail3" class="col-md-2 checkbox-inline control-label">SD:</label> 
								<div class="col-md-4">																					
									<input type="checkbox" name="sd" class="formatos">
								</div> 
							</div>
						</div>
						
						<div class="form-group">							
							 <div  class="col-md-12" >
								<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>
								
								<label for="inputEmail3" class="col-md-2 checkbox-inline control-label">HD:</label> 
								<div class="col-md-4">																					
									<input type="checkbox" name="hd" class="formatos">
								</div> 
							</div>
						</div>
						
						<div class="form-group">							
							 <div  class="col-md-12" >
								<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>
								
								<label for="inputEmail3" class="col-md-2 checkbox-inline control-label">3D:</label> 
								<div class="col-md-4">																					
									<input type="checkbox" name="tresd" class="formatos">
								</div> 
							</div>
						</div>	
						
						<div class="form-group">							
							 <div  class="col-md-12" >
 								<label for="inputEmail3" class="col-md-2 control-label">HVRD:</label>
								<div class="col-md-4">																					
									<input type="text" class="form-control " name="hvrd"  >																				
								</div> 
								
 								<label for="inputEmail3" class="col-md-2 control-label">Duraci&oacute;n:</label>
								<div class="col-md-4">																					
									<input type="text" class="form-control " name="duracion"  >																				
								</div> 
							</div>
						</div>

						<div class="form-group">							
							 <div  class="col-md-12" >
								
								<label for="inputEmail3" class="col-md-2 control-label">Fecha Inicio:</label>
								<div class="col-md-4">								    																																			
									<v:datePicker name="fechaInicio" clazz="form-control required datepicker" >
									</v:datePicker>									
								</div>
								
								<label for="inputEmail3" class="col-md-2 control-label">Aņo:</label>
								<div class="col-md-4">																					
									<input type="text" class="form-control " name="anio"  >																				
								</div>

							</div>
						</div>
																												
						<div class="form-group">							
							 <div  class="col-md-12" >
								<label for="inputEmail3" class="col-md-2 control-label">Fecha Fin:</label>
								<div class="col-md-4">								    																																			
									<v:datePicker name="fechaFin" clazz="form-control required datepicker" >
									</v:datePicker>									
								</div>
								
								<label for="inputEmail3" class="col-md-2 control-label">G&eacute;nero A:</label>
								<div class="col-md-4">																					
									<select id="genero" name="genero" class="form-control required"></select>																				
								</div>
							</div>
						</div>

						<div class="form-group">							
							 <div  class="col-md-12" >
								<label for="inputEmail3" class="col-md-2 control-label">Box Office:</label>
								<div class="col-md-4">								    																																			
									<input type="text" class="form-control" name="boxOffice"  >									
								</div>
															
								<label for="inputEmail3" class="col-md-2 control-label">G&eacute;nero B:</label>
								<div class="col-md-4">																														
									<select id="generoB" name="generoB" class="form-control required"></select>																		
								</div>	
							</div>
						</div>
								
						<div class="form-group">							
							 <div  class="col-md-12" >
								<label for="inputEmail3" class="col-md-2 control-label">Briefcase:</label>
								<div class="col-md-4">								    																																			
									<input type="checkbox" name="briefcase"> 									
								</div>
							</div>
						</div>
						
						<div class="form-group">							
							 <div  class="col-md-12" >
								<label for="inputEmail3" class="col-md-2 control-label">Nombre espaņol:</label>
								<div class="col-md-8">								    																																			
									<input type="text" class="form-control" name="nombreEnEspaniol"  >									
								</div>
							</div>
						</div>
						
						<div class="form-group">							
							 <div  class="col-md-12" >
								<label for="inputEmail3" class="col-md-2 control-label">Nombre en ingl&eacute;s:</label>
								<div class="col-md-8">								    																																			
									<input type="text" class="form-control" name="nombreEnIngles"  >									
								</div>
							</div>
						</div>
						
						<div class="form-group">							
							 <div  class="col-md-12" >
								<label for="inputEmail3" class="col-md-2 control-label">Nombre en portugu&eacute;s:</label>
								<div class="col-md-8">								    																																			
									<input type="text" class="form-control" name="nombreEnPortugues"  >									
								</div>
							</div>
						</div>
						
																																																															
						<br>
						<label id="errorFormatos" name="errorFormatos" class="lbErrores" style="display:none; color:red;">Se debe seleccionar al menos un formato</label>
						<label id="errorEditForm"                      class="lbErrores" 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="divAddSeries" class="modal fade" role="dialog">
  <div class="modal-dialog">
    
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Agregar Series</h4>
      </div>
      
      <div class="modal-body">
        <p>Se agregar&aacute;n los episodios a la serie de forma autom&aacute;tica.</p>
      </div>
      
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
        <button type="button" class="btn btn-default" onclick="tituloController.altaSeriesAutomatico();">Aceptar</button>
      </div>
      
    </div>
  </div>
</div>