Webgui code improvements and fixes

This commit is contained in:
thooge committed 2026-10-30 11:40:59 +01:00
1 parent dacf32b401
commit 5fe9a52f15
14 files changed
+205 -311

No files matched your search

+2 -8
View File
@@ -113,11 +113,8 @@ elseif ($action == ACT_ADD):
echo '<h2>', _('Add Checklist'), "</h2>\n";
?>
<form method="post" action="<?=$g_scriptname?>">
<div class="mb-3">
<label for="title" class="form-label"><?=_('Title')?></label>
<input type="text" class="form-control" id="title" name="title">
</div>
<?php
form_create_text('title', _('Title'), 30);
form_new_buttons($g_scriptname);
echo "</form>\n";
@@ -158,11 +155,8 @@ echo '<h2>', _('Edit checklist'), "</h2>\n";
?>
<form method="post" action="<?=$g_scriptname?>">
<input type="hidden" name="id" value="<?=$id?>">
<div class="mb-3">
<label for="provname" class="form-label"><?=_('Name')?></label>
<input type="text" class="form-control" id="title" name="title" value="<?=$checklist->title ?>">
</div>
<?php
form_create_text('title', _('Title'), 30, $checklist->title);
form_create_select('clstate', _('State'), $opt_clstate, $checklist->clstate);
form_edit_buttons($g_scriptname, $id);