| 
									
										
										
										
											2023-08-02 00:55:42 +08:00
										 |  |  | <div id="qsl_card_labels_container" class="container"> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <br> | 
					
						
							|  |  |  | 	<?php if($this->session->flashdata('message')) { ?>
 | 
					
						
							|  |  |  | 		<!-- Display Message --> | 
					
						
							|  |  |  | 		<div class="alert-message error"> | 
					
						
							|  |  |  | 		  <p><?php echo $this->session->flashdata('message'); ?></p>
 | 
					
						
							|  |  |  | 		</div> | 
					
						
							|  |  |  | 	<?php } ?>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <?php echo validation_errors(); ?>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-08-02 16:05:24 +08:00
										 |  |  | <form method="post" action="<?php echo site_url('labels/updatePaper/' . $paper->id); ?>" name="create_label_type"> | 
					
						
							| 
									
										
										
										
											2023-08-02 00:55:42 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	<div class="card"> | 
					
						
							|  |  |  | 		<h2 class="card-header"><?php echo $page_title; ?></h2>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		<div class="card-body"> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			<!-- Label Name Input --> | 
					
						
							| 
									
										
										
										
											2023-08-02 16:05:24 +08:00
										 |  |  | 	    	<div class="form-group row"> | 
					
						
							|  |  |  | 			<label class= "col-sm-2 col-form-label" for="PaperName">Paper Type Name</label> | 
					
						
							|  |  |  | 				<div class="col-sm-4"> | 
					
						
							|  |  |  | 			    	<input name="paper_name" type="text" class="form-control" id="PaperName" aria-describedby="paper_nameHelp" value="<?php if(isset($paper->paper_name)) { echo $paper->paper_name; } ?>"> | 
					
						
							|  |  |  | 			    	<small id="paper_nameHelp" class="form-text text-muted">Paper name used for display purposes, so pick something meaningful.</small> | 
					
						
							|  |  |  | 				</div> | 
					
						
							|  |  |  |     				<label class="col-sm-2 col-form-label" for="measurementType">Measurement used</label> | 
					
						
							|  |  |  | 			    	<div class="col-sm-4"> | 
					
						
							| 
									
										
										
										
											2023-08-02 00:55:42 +08:00
										 |  |  | 				    <select name="measurementType" class="form-control" id="measurementType"> | 
					
						
							| 
									
										
										
										
											2023-08-02 16:05:24 +08:00
										 |  |  | 						<option value="mm" <?php if($paper->metric == "mm") { echo "selected=\"selected\""; } ?>>Millimeters</option>
 | 
					
						
							|  |  |  | 						<option value="in" <?php if($paper->metric == "in") { echo "selected=\"selected\""; } ?>>Inches</option>
 | 
					
						
							| 
									
										
										
										
											2023-08-02 00:55:42 +08:00
										 |  |  | 					</select> | 
					
						
							|  |  |  | 			    </div> | 
					
						
							|  |  |  |   			</div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			<div class="form-group row"> | 
					
						
							| 
									
										
										
										
											2023-08-02 16:05:24 +08:00
										 |  |  |     			<label class="col-sm-2 col-form-label" for="width">Width of paper</label> | 
					
						
							| 
									
										
										
										
											2023-08-02 00:55:42 +08:00
										 |  |  | 			    <div class="col-sm-4"> | 
					
						
							| 
									
										
										
										
											2023-08-02 16:05:24 +08:00
										 |  |  | 				    <input name="width" type="text" class="form-control" id="width" aria-describedby="widthHelp" value="<?php if(isset($paper->width)) { echo $paper->width; } ?>"> | 
					
						
							|  |  |  | 			    	<small id="widthHelp" class="form-text text-muted">Total width of paper.</small> | 
					
						
							| 
									
										
										
										
											2023-08-02 00:55:42 +08:00
										 |  |  | 			    </div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-08-02 16:05:24 +08:00
										 |  |  |     			<label class="col-sm-2 col-form-label" for="height">Height of paper</label> | 
					
						
							| 
									
										
										
										
											2023-08-02 00:55:42 +08:00
										 |  |  | 			    <div class="col-sm-4"> | 
					
						
							| 
									
										
										
										
											2023-08-02 16:05:24 +08:00
										 |  |  | 				    <input name="height" type="text" class="form-control" id="height" aria-describedby="heightHelp" value="<?php if(isset($paper->height)) { echo $paper->height; } ?>"> | 
					
						
							|  |  |  | 			    	<small id="heightHelp" class="form-text text-muted">Total width of paper.</small> | 
					
						
							| 
									
										
										
										
											2023-08-02 00:55:42 +08:00
										 |  |  | 			    </div> | 
					
						
							|  |  |  |   			</div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-08-02 16:05:24 +08:00
										 |  |  |  			<button type="submit" class="btn btn-primary"><i class="fas fa-plus-square"></i> Save Paper Type</button> | 
					
						
							| 
									
										
										
										
											2023-08-02 00:55:42 +08:00
										 |  |  | 		</div> | 
					
						
							|  |  |  | 	</div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | </form> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | </div> | 
					
						
							|  |  |  | <br> |