Webgui improve maintenance list and filter

This commit is contained in:
thooge committed 2026-10-21 20:06:15 +02:00
1 parent 06a9834688
commit c2df7e8013
3 files changed
+79 -22

No files matched your search

+11 -7
View File
@@ -203,20 +203,20 @@ elseif ($action == ACT_ADD):
echo '<h2>', _('Add Storage'), "</h2>\n";
?>
<form method="post" action="<?=$g_scriptname?>">
<?php
/*
<div class="mb-3">
<label for="sname" class="form-label"><?=_('Name')?></label>
<input type="text" class="form-control" id="sname" name="sname">
</div>
<?php
</div> */
form_create_text('sname', _('Name'), 40);
form_create_select('stype', _('Type'), $opt_stype);
?>
<button type="submit" name="submit[insert]" class="btn btn-primary"><?=_('Save')?></button>
<a href="<?=$g_scriptname?>" class="btn btn-secondary"><?=_('Back')?></a>
</form>
<?php
elseif ($action == ACT_VIEW):
@@ -363,15 +363,19 @@ form_create_select('stype', _('Type'), $opt_stype, $storage->stype);
<label for="capacity" class="form-label"><?=_('Capacity')?></label>
<input type="number" class="form-control" id="capacity" name="capacity" value="<?=$storage->capacity ?>">
</div>
<?php form_create_select('capaunit', _('Capacity Unit'), $opt_capaunit, $storage->capaunit); ?>
<div class="mb-3">
<?php
form_create_select('capaunit', _('Capacity Unit'), $opt_capaunit, $storage->capaunit);
/* <div class="mb-3">
<label for="color"><?=_('Color')?></label>
<input type="color" class="form-control" id="color" name="color" value="#<?=$storage->color ?>">
</div>
<div class="mb-3">
<label for="remarks" class="form-label"><?=_('Remarks')?></label>
<textarea class="form-control" id="remarks" name="remarks" rows="3"><?=h($storage->remarks)?></textarea>
</div>
</div> */
form_create_color('color', _('Color'), $storage->color);
form_create_textarea('remarks', _('Remarks'), 3, 150, $storage->remarks);
?>
<button type="submit" name="submit[update]" class="btn btn-primary"><?=_('Save')?></button>
<a href="<?=$g_scriptname?>?f=view&id=<?=$id?>" class="btn btn-secondary"><?=_('Back')?></a>
</form>