use formSubmit() instead of plain html for submit button

This commit is contained in:
Uwe Steinmann 2022-12-10 14:18:07 +01:00
parent 8a01102cf5
commit aeb0e4f1de
4 changed files with 5 additions and 5 deletions

View File

@ -698,7 +698,7 @@ $(document).ready(function() {
<?php echo createHiddenFieldWithKey('cancelcheckout'); ?>
<input type="hidden" name="documentid" value="<?php print $document->getID(); ?>">
<input type="hidden" name="confirm" value="1">
<input type="submit" class="btn btn-danger" value="<?php printMLText("cancel_checkout"); ?>">
<?php $this->formSubmit(getMLText('cancel_checkout'),'','','danger');?>
</form>
<?php
}

View File

@ -49,7 +49,7 @@ class SeedDMS_View_RemoveTransmittal extends SeedDMS_Theme_Style {
<input type="hidden" name="action" value="removetransmittal">
<?php echo createHiddenFieldWithKey('removetransmittal'); ?>
<p><button type="submit" class="btn btn-danger"><i class="fa fa-remove"></i> <?php printMLText("rm_transmittal");?></button></p>
<p><?php $this->formSubmit('<i class="fa fa-remove"></i> '.getMLText('rm_transmittal'),'','','danger');?></p>
</form>
<?php

View File

@ -117,7 +117,7 @@ $(document).ready( function() {
<?php echo createHiddenFieldWithKey('removerole'); ?>
<input type="hidden" name="roleid" value="<?php echo $selrole->getID()?>">
<input type="hidden" name="action" value="removerole">
<button type="submit" class="btn"><i class="fa fa-remove"></i> <?php echo getMLText("rm_role")?></button>
<?php $this->formSubmit('<i class="fa fa-remove"></i> '.getMLText('rm_role'),'','','neutral');?>
</form>
<?php
}

View File

@ -282,7 +282,7 @@ $(document).ready( function() {
<div class="control-group">
<label class="control-label" for="login"></label>
<div class="controls">
<button type="submit" class="btn btn-primary"><i class="fa fa-save"></i> <?php printMLText("save")?></button>
<?php $this->formSubmit('<i class="fa fa-save"></i> '.getMLText('save'),'','','primary');?>
</div>
</div>
</form>
@ -469,7 +469,7 @@ $(document).ready( function() {
<div class="control-group">
<label class="control-label" for="login"></label>
<div class="controls">
<button type="submit" class="btn btn-primary"><i class="fa fa-save"></i> <?php printMLText("save")?></button>
<?php $this->formSubmit('<i class="fa fa-save"></i> '.getMLText('save'),'','','primary');?>
</div>
</div>
</form>