use formSubmit() instead of plain html for submit button

This commit is contained in:
Uwe Steinmann 2022-12-10 13:12:21 +01:00
parent 22d59a61ed
commit 6ae0eb38d9
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ class SeedDMS_View_RemoveFolder extends SeedDMS_Theme_Style {
<input type="Hidden" name="folderid" value="<?php print $folder->getID();?>">
<input type="Hidden" name="showtree" value="<?php echo showtree();?>">
<?php echo createHiddenFieldWithKey('removefolder'); ?>
<p><button class="btn btn-danger" type="submit"><i class="fa fa-remove"></i> <?php printMLText("rm_folder");?></button></p>
<p><?php $this->formSubmit("<i class=\"fa fa-remove\"></i> " . getMLText('rm_folder'), '', '', 'danger'); ?></p>
</form>
<?php
$this->contentEnd();

View File

@ -48,7 +48,7 @@ class SeedDMS_View_RemoveFolderFiles extends SeedDMS_Bootstrap_Style {
<?php echo createHiddenFieldWithKey('removefolderfiles'); ?>
<input type="hidden" name="folderid" value="<?php echo $folder->getID()?>">
<p><?php printMLText("confirm_rm_folder_files", array ("foldername" => htmlspecialchars($folder->getName())));?></p>
<input class="btn" type="submit" value="<?php printMLText("accept");?>">
<?php $this->formSubmit(getMLText('accept'),'','',"neutral"); ?>
</form>
<?php
$this->contentContainerEnd();