Project

General

Profile

« Previous | Next » 

Revision f0b20c3f

Added by Peter Bouwdewijn over 10 years ago

#126
Wrapped table in table responsive div.

View differences:

usr/local/www/services_wol.php
162 162

  
163 163
	<div class="panel-body">
164 164
		<p><?=gettext("Click the MAC address to wake up an individual device.")?></p>
165
		<table class="table">
166
			<thead>
167
				<tr>
168
					<th><?=gettext("Interface")?></th>
169
					<th><?=gettext("MAC address")?></th>
170
					<th><?=gettext("Description")?></th>
171
					<th></th>
172
				</tr>
173
			</thead>
174
			<tbody>
175
				<?php foreach ($a_wol as $i => $wolent): ?>
165
		<div class="table-responsive">
166
			<table class="table">
167
				<thead>
176 168
					<tr>
177
						<td>
178
							<?=convert_friendly_interface_to_friendly_descr($wolent['interface']);?>
179
						</td>
180
						<td>
181
							<a href="?mac=<?=$wolent['mac'];?>&amp;if=<?=$wolent['interface'];?>"><?=strtolower($wolent['mac']);?></a>
182
						</td>
183
						<td>
184
							<?=htmlspecialchars($wolent['descr']);?>
185
						</td>
186
						<td>
187
							<a class="btn btn-xs btn-primary" href="services_wol_edit.php?id=<?=$i?>">
188
								edit
189
							</a>
190
							<a class="btn btn-xs btn-danger" href="services_wol.php?act=del&amp;id=<?=$i?>" onclick="return confirm('<?=gettext("Do you really want to delete this entry?")?>')">
191
								delete
192
							</a>
193
						</td>
169
						<th><?=gettext("Interface")?></th>
170
						<th><?=gettext("MAC address")?></th>
171
						<th><?=gettext("Description")?></th>
172
						<th></th>
194 173
					</tr>
195
				<?php endforeach?>
196
			</tbody>
197
		</table>
174
				</thead>
175
				<tbody>
176
					<?php foreach ($a_wol as $i => $wolent): ?>
177
						<tr>
178
							<td>
179
								<?=convert_friendly_interface_to_friendly_descr($wolent['interface']);?>
180
							</td>
181
							<td>
182
								<a href="?mac=<?=$wolent['mac'];?>&amp;if=<?=$wolent['interface'];?>"><?=strtolower($wolent['mac']);?></a>
183
							</td>
184
							<td>
185
								<?=htmlspecialchars($wolent['descr']);?>
186
							</td>
187
							<td>
188
								<a class="btn btn-xs btn-primary" href="services_wol_edit.php?id=<?=$i?>">
189
									edit
190
								</a>
191
								<a class="btn btn-xs btn-danger" href="services_wol.php?act=del&amp;id=<?=$i?>" onclick="return confirm('<?=gettext("Do you really want to delete this entry?")?>')">
192
									delete
193
								</a>
194
							</td>
195
						</tr>
196
					<?php endforeach?>
197
				</tbody>
198
			</table>
199
		</div>
198 200
	</div>
199 201
	<div class="panel-footer">
200 202
		<a class="btn btn-success" href="services_wol_edit.php">

Also available in: Unified diff