| 
									
										
										
										
											2024-08-18 19:12:45 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-08-19 10:25:09 +00:00
										 |  |  |                 <!-- widget "config" --> | 
					
						
							|  |  |  |                 <div class="card text-center w-50 mx-auto"> | 
					
						
							| 
									
										
										
										
											2024-09-04 09:53:02 +00:00
										 |  |  |                     <p class="h4 card-header">Jilo web configuration for Jitsi platform <strong>"<?= htmlspecialchars($platformDetails[0]['name']) ?>"</strong></p> | 
					
						
							| 
									
										
										
										
											2024-08-19 10:25:09 +00:00
										 |  |  |                     <div class="card-body"> | 
					
						
							|  |  |  |                         <p class="card-text">edit the platform details:</p> | 
					
						
							|  |  |  |                         <form method="POST" action="<?= $app_root ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=config"> | 
					
						
							| 
									
										
										
										
											2024-09-04 09:53:02 +00:00
										 |  |  | <?php | 
					
						
							|  |  |  | foreach ($platformDetails[0] as $key => $value) { | 
					
						
							|  |  |  |     if ($key === 'id') continue; | 
					
						
							|  |  |  | ?>
 | 
					
						
							| 
									
										
										
										
											2024-08-19 10:25:09 +00:00
										 |  |  |                             <div class="row mb-3"> | 
					
						
							|  |  |  |                                 <div class="col-md-4 text-end"> | 
					
						
							| 
									
										
										
										
											2024-09-04 09:53:02 +00:00
										 |  |  |                                     <label for="<?= htmlspecialchars($config_item) ?>" class="form-label"><?= htmlspecialchars($key) ?></label>
 | 
					
						
							| 
									
										
										
										
											2024-08-19 10:25:09 +00:00
										 |  |  |                                     <span class="text-danger" style="margin-right: -12px;">*</span> | 
					
						
							|  |  |  |                                 </div> | 
					
						
							|  |  |  |                                 <div class="col-md-8"> | 
					
						
							| 
									
										
										
										
											2024-09-10 15:29:58 +00:00
										 |  |  |                                     <input class="form-control" type="text" name="<?= htmlspecialchars($key) ?>" value="<?= htmlspecialchars($value ?? '')?>" required autofocus /> | 
					
						
							| 
									
										
										
										
											2024-09-04 09:53:02 +00:00
										 |  |  | <?php if ($key === 'name') { ?>
 | 
					
						
							| 
									
										
										
										
											2024-08-26 18:19:21 +00:00
										 |  |  |                                     <p class="text-start"><small>descriptive name for the platform</small></p> | 
					
						
							| 
									
										
										
										
											2024-09-04 09:53:02 +00:00
										 |  |  | <?php } elseif ($key === 'jitsi_url') { ?>
 | 
					
						
							| 
									
										
										
										
											2024-08-27 18:18:27 +00:00
										 |  |  |                                     <p class="text-start"><small>URL of the Jitsi Meet (used for checks and for loading config.js)</small></p> | 
					
						
							| 
									
										
										
										
											2024-09-04 09:53:02 +00:00
										 |  |  | <?php } elseif ($key === 'jilo_database') { ?>
 | 
					
						
							| 
									
										
										
										
											2024-08-26 18:19:21 +00:00
										 |  |  |                                     <p class="text-start"><small>path to the database file (relative to the app root)</small></p> | 
					
						
							|  |  |  | <?php } ?>
 | 
					
						
							| 
									
										
										
										
											2024-08-19 10:25:09 +00:00
										 |  |  |                                 </div> | 
					
						
							|  |  |  |                             </div> | 
					
						
							|  |  |  | <?php } ?>
 | 
					
						
							| 
									
										
										
										
											2024-08-26 18:19:21 +00:00
										 |  |  |                             <br /> | 
					
						
							|  |  |  |                             <input type="hidden" name="platform" value="<?= htmlspecialchars($platform_id) ?>" /> | 
					
						
							|  |  |  |                             <a class="btn btn-secondary" href="<?= $app_root ?>?page=config" />Cancel</a> | 
					
						
							| 
									
										
										
										
											2024-08-19 10:25:09 +00:00
										 |  |  |                             <input type="submit" class="btn btn-primary" value="Save" /> | 
					
						
							|  |  |  |                         </form> | 
					
						
							|  |  |  |                     </div> | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |                 <!-- /widget "config" --> |