Fix table not being 100%. Use appropriate bootstrap style labels for radios
This commit is contained in:
parent
3a943d6f09
commit
80c4e2fa57
|
@ -31,12 +31,11 @@
|
||||||
'Shallow' => translate('Shallow'),
|
'Shallow' => translate('Shallow'),
|
||||||
);
|
);
|
||||||
|
|
||||||
$servers = ZM\Server::find( null, array('order'=>'lower(Name)') );
|
global $Servers;
|
||||||
$ServersById = array();
|
$ServersById = array();
|
||||||
foreach ( $servers as $S ) {
|
foreach ( $Servers as $S ) {
|
||||||
$ServersById[$S->Id()] = $S;
|
$ServersById[$S->Id()] = $S;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="modal fade" id="storageModal" data-backdrop="static" data-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true">
|
<div class="modal fade" id="storageModal" data-backdrop="static" data-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
|
@ -56,48 +55,54 @@
|
||||||
<input type="hidden" name="view" value="storage"/>
|
<input type="hidden" name="view" value="storage"/>
|
||||||
<input type="hidden" name="object" value="storage"/>
|
<input type="hidden" name="object" value="storage"/>
|
||||||
<input type="hidden" name="id" value="<?php echo validHtmlStr($sid) ?>"/>
|
<input type="hidden" name="id" value="<?php echo validHtmlStr($sid) ?>"/>
|
||||||
<table class="major table-sm">
|
<div class="table-responsive">
|
||||||
|
<table class="major table table-sm">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="text-right pr-3" scope="row"><?php echo translate('Name') ?></th>
|
<th class="text-right " scope="row"><?php echo translate('Name') ?></th>
|
||||||
<td><input type="text" name="newStorage[Name]" value="<?php echo $newStorage->Name() ?>"/></td>
|
<td><input type="text" name="newStorage[Name]" value="<?php echo $newStorage->Name() ?>"/></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="text-right pr-3" scope="row"><?php echo translate('Path') ?></th>
|
<th class="text-right " scope="row"><?php echo translate('Path') ?></th>
|
||||||
<td><input type="text" name="newStorage[Path]" value="<?php echo $newStorage->Path() ?>"/></td>
|
<td><input type="text" name="newStorage[Path]" value="<?php echo $newStorage->Path() ?>"/></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="text-right pr-3" scope="row"><?php echo translate('Url') ?></th>
|
<th class="text-right " scope="row"><?php echo translate('Url') ?></th>
|
||||||
<td><input type="text" name="newStorage[Url]" value="<?php echo $newStorage->Url() ?>"/></td>
|
<td><input type="text" name="newStorage[Url]" value="<?php echo $newStorage->Url() ?>"/></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="text-right pr-3" scope="row"><?php echo translate('Server') ?></th>
|
<th class="text-right " scope="row"><?php echo translate('Server') ?></th>
|
||||||
<td><?php echo htmlSelect('newStorage[ServerId]', array(''=>'Remote / No Specific Server') + $ServersById, $newStorage->ServerId()) ?></td>
|
<td><?php echo htmlSelect('newStorage[ServerId]', array(''=>'Remote / No Specific Server') + $ServersById, $newStorage->ServerId()) ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="text-right pr-3" scope="row"><?php echo translate('Type') ?></th>
|
<th class="text-right " scope="row"><?php echo translate('Type') ?></th>
|
||||||
<td><?php echo htmlSelect('newStorage[Type]', $type_options, $newStorage->Type()) ?></td>
|
<td><?php echo htmlSelect('newStorage[Type]', $type_options, $newStorage->Type()) ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="text-right pr-3" scope="row"><?php echo translate('StorageScheme') ?></th>
|
<th class="text-right " scope="row"><?php echo translate('StorageScheme') ?></th>
|
||||||
<td><?php echo htmlSelect('newStorage[Scheme]', $scheme_options, $newStorage->Scheme()) ?></td>
|
<td><?php echo htmlSelect('newStorage[Scheme]', $scheme_options, $newStorage->Scheme()) ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="text-right pr-3" scope="row"><?php echo translate('StorageDoDelete') ?></th>
|
<th class="text-right " scope="row"><?php echo translate('StorageDoDelete') ?></th>
|
||||||
<td>
|
<td>
|
||||||
<input type="radio" name="newStorage[DoDelete]" value="1" <?php echo $newStorage->DoDelete() ? $checked : $null ?>>Yes
|
<input type="radio" name="newStorage[DoDelete]" id="newStorage[DoDelete]1" value="1" <?php echo $newStorage->DoDelete() ? $checked : $null ?>/>
|
||||||
<input type="radio" name="newStorage[DoDelete]" value="0" <?php echo $newStorage->DoDelete() ? $null : $checked ?>>No
|
<label class="form-check-label" for="newStorage[DoDelete]1">Yes</label>
|
||||||
|
<input type="radio" name="newStorage[DoDelete]" id="newStorage[DoDelete]0" value="0" <?php echo $newStorage->DoDelete() ? $null : $checked ?>/>
|
||||||
|
<label class="form-check-label" for="newStorage[DoDelete]0">No</label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="text-right pr-3" scope="row"><?php echo translate('Enabled') ?></th>
|
<th class="text-right " scope="row"><?php echo translate('Enabled') ?></th>
|
||||||
<td>
|
<td>
|
||||||
<input type="radio" name="newStorage[Enabled]" value="1" <?php echo $newStorage->Enabled() ? $checked : $null ?>>Yes
|
<input type="radio" name="newStorage[Enabled]" id="newStorage[Enabled]1" value="1" <?php echo $newStorage->Enabled() ? $checked : $null ?>/>
|
||||||
<input type="radio" name="newStorage[Enabled]" value="0" <?php echo $newStorage->Enabled() ? $null : $checked ?>>No
|
<label class="form-check-label" for="newStorage[Enabled]1">Yes</label>
|
||||||
|
<input type="radio" name="newStorage[Enabled]" id="newStorage[Enabled]0" value="0" <?php echo $newStorage->Enabled() ? $null : $checked ?>/>
|
||||||
|
<label class="form-check-label" for="newStorage[Enabled]0">No</label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button name="action" id="storageSubmitBtn" type="submit" class="btn btn-primary" value="Save"><?php echo translate('Save') ?></button>
|
<button name="action" id="storageSubmitBtn" type="submit" class="btn btn-primary" value="Save"><?php echo translate('Save') ?></button>
|
||||||
|
|
Loading…
Reference in New Issue