mirror of
				https://github.com/billz/raspap-webgui.git
				synced 2025-03-01 10:31:47 +00:00 
			
		
		
		
	Wifi client layout fix. Resolves #680
This commit is contained in:
		| @@ -21,7 +21,7 @@ | |||||||
|         <form method="POST" action="?page=wpa_conf" name="wpa_conf_form" class="row"> |         <form method="POST" action="?page=wpa_conf" name="wpa_conf_form" class="row"> | ||||||
|             <?php echo CSRFTokenFieldTag() ?> |             <?php echo CSRFTokenFieldTag() ?> | ||||||
|           <input type="hidden" name="client_settings" ?> |           <input type="hidden" name="client_settings" ?> | ||||||
|           <div class="js-wifi-stations loading-spinner"></div> |           <div class="row js-wifi-stations w-100 loading-spinner"></div> | ||||||
|         </form> |         </form> | ||||||
|       </div><!-- ./ card-body --> |       </div><!-- ./ card-body --> | ||||||
|       <div class="card-footer"><?php echo _("<strong>Note:</strong> WEP access points appear as 'Open'. RaspAP does not currently support connecting to WEP"); ?></div> |       <div class="card-footer"><?php echo _("<strong>Note:</strong> WEP access points appear as 'Open'. RaspAP does not currently support connecting to WEP"); ?></div> | ||||||
|   | |||||||
| @@ -3,13 +3,21 @@ | |||||||
|   <p class="text-center"><?php echo _('Click "Rescan" to search for nearby Wifi stations.') ?></p> |   <p class="text-center"><?php echo _('Click "Rescan" to search for nearby Wifi stations.') ?></p> | ||||||
| <?php endif ?> | <?php endif ?> | ||||||
| <?php $index = 0; ?> | <?php $index = 0; ?> | ||||||
| <div class="row ml-1 mr-1"> | <div class="row ml-1 mr-1 w-100"> | ||||||
|  | <?php $networks = array_slice($networks, 1,1); ?> | ||||||
|  | <?php | ||||||
|  | if (count($networks) == 1) { | ||||||
|  |     $prop_col = "col-sm-12"; | ||||||
|  |     $prop_w = "w-50"; | ||||||
|  | } else { | ||||||
|  |     $prop_col = "col-sm-6"; | ||||||
|  |     $prop_w = "w-100"; | ||||||
|  | } | ||||||
|  | ?> | ||||||
|   <?php foreach ($networks as $ssid => $network) : ?> |   <?php foreach ($networks as $ssid => $network) : ?> | ||||||
|   <div class="col-sm-6 align-items-stretch mb-3"> |     <div class="<?php echo $prop_col; ?> align-items-stretch mb-3"> | ||||||
|     <div class="card h-100"> |     <div class="card h-100 <?php echo $prop_w; ?>"> | ||||||
|       <div class="card-body"> |       <div class="card-body"> | ||||||
|  |  | ||||||
|         <input type="hidden" name="ssid<?php echo $index ?>" value="<?php echo htmlentities($ssid, ENT_QUOTES) ?>" /> |         <input type="hidden" name="ssid<?php echo $index ?>" value="<?php echo htmlentities($ssid, ENT_QUOTES) ?>" /> | ||||||
|         <?php if (strlen($ssid) == 0) { |         <?php if (strlen($ssid) == 0) { | ||||||
|             $ssid = "(unknown)"; |             $ssid = "(unknown)"; | ||||||
| @@ -95,3 +103,4 @@ | |||||||
|   <?php $index += 1; ?> |   <?php $index += 1; ?> | ||||||
|   <?php endforeach ?> |   <?php endforeach ?> | ||||||
| </div><!-- /.row --> | </div><!-- /.row --> | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user