summaryrefslogblamecommitdiffstats
path: root/printing_templates/Two Dives.html
blob: 5dba74303083facc264a49e8fb84c455016aea8b (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                      
                                                      
                                     

                                                                         

                    
                                                                      

                                    


                                                                        






                                         



                                                 


                                          


                                                       




                                         
                                     
                                    


                                                       




                                         
                                     
                                    


                                                       

                             
                                                                        
                                         
                                  

                              
                                   
                                    


                                          
                                     

                              
                                     











                                        
                                                    
                                           
                                                                         
                 



                                    
                
                             
                   




                                                              
                                                                           






































                                                                                                      
                                                                           






































                                                                                                         
                                                                                                 

                                                               
                                                                                 

















                                                                                                           
                 
      
       
<html>
<head>
	<style>
		body {
			{{ print_options.grayscale }};
			padding: 0px;
			margin: 0px;
			font-size: {{ template_options.font_size }}vw;
			line-height: {{ template_options.line_spacing }};
			font-family: {{ template_options.font }};
		}

		h1 {
			font-size: {{ template_options.font_size }}vw;
			float: left;
		}

		#body_div {
			background-color: {{ template_options.color1 }};
		}

		.mainContainer {
			width: 96%;
			height: 50%;
			margin-left: 2%;
			margin-right: 2%;
			margin-top: 0;
			margin-bottom: 0;
			overflow: hidden;
			page-break-inside: avoid;
		}

		.innerContainer {
			height: 85%;
			padding: 0.5%;
			margin-top: 1%;
			margin-bottom: 1%;
			overflow: hidden;
			-webkit-box-sizing: border-box;
			box-sizing: border-box;
			border:max(0.1vw, 1px);
			border-style:solid;
		}

		.table_class {
			overflow: hidden;
			max-width: 25%;
			min-width: 25%;
			margin: 0.5%;
			float: left;
			-webkit-box-sizing: border-box;
			box-sizing: border-box;
			border:max(0.1vw, 1px);
			border-style:solid;
		}

		.notes_table_class {
			overflow: hidden;
			max-width: 100%;
			min-width: 100%;
			margin: 0.5%;
			float: left;
			-webkit-box-sizing: border-box;
			box-sizing: border-box;
			border:max(0.1vw, 1px);
			border-style:solid;
		}

		.fieldTitle {
			background-color: {{ template_options.color2 }};
			overflow: hidden;
			padding:0;
		}

		.diveProfile {
			width: 48%;
			height: 95%;
			margin-left: 0%;
			margin-right: 0%;
			margin-bottom: 0%;
			margin-top: 0.5%;
			float: right;
		}

		.diveDetails {
			width: 98.5%;
			float: left;
		}

		.dataPart {
			height: 45%;
			max-height: 60%;
		}

		.notesPart {
			height: 35%;
		}

		.textArea {
			overflow: hidden !important;
			text-overflow: ellipsis;
			max-height: 10.3vw;
			line-height: {{ template_options.line_spacing }};
		}

		#footer {
			width: 96%;
			height: 50%;
		}
	</style>
</head>
<body data-numberofdives = 2>
<div id="body_div">
{% block main_rows %}
	{% for dive in dives %}
		<div class="mainContainer">
			<div class="innerContainer">
				<div class="diveDetails">
					<div class="dataPart">
						<table class="table_class">
							<tbody><tr>
								<td class="fieldTitle">
									<h1> Dive No. </h1>
								</td>
								<td>
									<h1> {{ dive.number }} </h1>
								</td>
							</tr>
							<tr>
								<td class="fieldTitle">
									<h1> Date </h1>
								</td>
									<td><h1> {{ dive.date }} </h1>
								</td>
							</tr>
							<tr>
								<td class="fieldTitle">
									<h1> Location </h1>
								</td>
								<td>
									<h1> {{ dive.location }} </h1>
								</td>
							</tr>
							<tr>
								<td class="fieldTitle">
									<h1> Max depth </h1>
								</td>
								<td>
									<h1> {{ dive.depth }} </h1>
								</td>
							</tr>
							<tr>
								<td class="fieldTitle">
									<h1> Duration </h1>
								</td>
								<td>
									<h1> {{ dive.duration }} </h1>
								</td>
							</tr>
						</tbody></table>
						<table class="table_class">
							<tbody><tr>
								<td class="fieldTitle">
									<h1> Time. </h1>
								</td>
								<td>
									<h1> {{ dive.time }} </h1>
								</td>
							</tr>
							<tr>
								<td class="fieldTitle">
									<h1> Air Temp. </h1>
								</td>
									<td><h1> {{ dive.airTemp }} </h1>
								</td>
							</tr>
							<tr>
								<td class="fieldTitle">
									<h1> Water Temp. </h1>
								</td>
								<td>
									<h1> {{ dive.waterTemp }} </h1>
								</td>
							</tr>
							<tr>
								<td class="fieldTitle">
									<h1> Buddy </h1>
								</td>
								<td>
									<h1> {{ dive.buddy }} </h1>
								</td>
							</tr>
							<tr>
								<td class="fieldTitle">
									<h1> Dive Master </h1>
								</td>
								<td>
									<h1> {{ dive.divemaster }} </h1>
								</td>
							</tr>
						</tbody></table>
						<div class="diveProfile" id="dive_{{ dive.id }}">
						</div>
					</div>
					<div class="notesPart">
						<table class="notes_table_class">
							<tbody><tr>
								<td class="fieldTitle">
									<h1> Notes </h1>
								</td>
							</tr>
							<tr>
								<td>
									<div class="textArea">
										<h1> {{ dive.notes }} </h1>
									</div>
								</td>
							</tr>
						</tbody></table>
					</div>
				</div>
			</div>
		</div>
	{% endfor %}
{% endblock %}
<div id="footer">
<div>
</div>
</body>
</html>