use formField() instead of plain html

This commit is contained in:
Uwe Steinmann 2019-11-28 15:01:36 +01:00
parent dcc64bc539
commit cbaa038c55

View File

@ -230,68 +230,124 @@ class SeedDMS_View_RemoveUserFromProcesses extends SeedDMS_Bootstrap_Style {
<?php } ?>
<?php if(isset($tmpb["0"])) { ?>
<div class="control-group">
<div class="controls">
<label class="checkbox">
<input type="checkbox" name="status[receipt][]" value="0" checked> <?php echo getMLText('receipts_not_touched', array('no_receipts' => count($tmpb["0"]))); ?> <?php echo getMLText('receipts_not_touched_latest', array('no_receipts' => $cb["0"])); ?>
</label>
</div>
</div>
<?php
$this->formField(
getMLText('receipts_not_touched', array('no_receipts' => count($tmpb["0"]))),
array(
'element'=>'input',
'type'=>'checkbox',
'name'=>'status[receipt][]',
'value'=>'0',
'checked'=>true
),
array(
'field_wrap' => array('<label class="checkbox">', getMLText('receipts_not_touched_latest', array('no_receipts' => $cb["0"]))."</label>")
)
);
?>
<?php } ?>
<?php if(isset($tmpb["1"])) { ?>
<div class="control-group">
<div class="controls">
<label class="checkbox">
<input type="checkbox" name="status[receipt][]" value="1"> <?php echo getMLText('receipts_accepted', array('no_receipts' => count($tmpb["1"]))); ?> <?php echo getMLText('receipts_accepted_latest', array('no_receipts' => $cb["1"])); ?><br />
</label>
</div>
</div>
<?php
$this->formField(
getMLText('receipts_accepted', array('no_receipts' => count($tmpb["1"]))),
array(
'element'=>'input',
'type'=>'checkbox',
'name'=>'status[receipt][]',
'value'=>'1',
'checked'=>true
),
array(
'field_wrap' => array('<label class="checkbox">', getMLText('receipts_accepted_latest', array('no_receipts' => $cb["1"]))."</label>")
)
);
?>
<?php } ?>
<?php if(isset($tmpb["-1"])) { ?>
<div class="control-group">
<div class="controls">
<label class="checkbox">
<input type="checkbox" name="status[receipt][]" value="-1"> <?php echo getMLText('receipts_rejected', array('no_receipts' => count($tmpb["-1"]))); ?> <?php echo getMLText('receipts_rejected_latest', array('no_receipts' => $cb["-1"])); ?><br />
</label>
</div>
</div>
<?php
$this->formField(
getMLText('receipts_rejected', array('no_receipts' => count($tmpb["-1"]))),
array(
'element'=>'input',
'type'=>'checkbox',
'name'=>'status[receipt][]',
'value'=>'-1',
'checked'=>true
),
array(
'field_wrap' => array('<label class="checkbox">', getMLText('receipts_rejected_latest', array('no_receipts' => $cb["-1"]))."</label>")
)
);
?>
<?php } ?>
<?php if(isset($tmpc["0"])) { ?>
<div class="control-group">
<div class="controls">
<label class="checkbox">
<input type="checkbox" name="status[revision][]" value="0" checked> <?php echo getMLText('revisions_not_touched', array('no_revisions' => count($tmpc["0"]))); ?> <?php echo getMLText('revisions_not_touched_latest', array('no_revisions' => $cc["0"])); ?>
</label>
</div>
</div>
<?php
$this->formField(
getMLText('revisions_not_touched', array('no_revisions' => count($tmpc["0"]))),
array(
'element'=>'input',
'type'=>'checkbox',
'name'=>'status[revision][]',
'value'=>'0',
'checked'=>true
),
array(
'field_wrap' => array('<label class="checkbox">', getMLText('revisions_not_touched_latest', array('no_revisions' => $cc["0"]))."</label>")
)
);
?>
<?php } ?>
<?php if(isset($tmpc["-3"])) { ?>
<div class="control-group">
<div class="controls">
<label class="checkbox">
<input type="checkbox" name="status[revision][]" value="-3" checked> <?php echo getMLText('revisions_pending', array('no_revisions' => count($tmpc["-3"]))); ?> <?php echo getMLText('revisions_pending_latest', array('no_revisions' => $cc["-3"])); ?>
</label>
</div>
</div>
<?php
$this->formField(
getMLText('revisions_pending', array('no_revisions' => count($tmpc["-3"]))),
array(
'element'=>'input',
'type'=>'checkbox',
'name'=>'status[revision][]',
'value'=>'-3',
'checked'=>true
),
array(
'field_wrap' => array('<label class="checkbox">', getMLText('revisions_pending_latest', array('no_revisions' => $cc["-3"]))."</label>")
)
);
?>
<?php } ?>
<?php if(isset($tmpc["1"])) { ?>
<div class="control-group">
<div class="controls">
<label class="checkbox">
<input type="checkbox" name="status[revision][]" value="1"> <?php echo getMLText('revisions_accepted', array('no_revisions' => count($tmpc["1"]))); ?> <?php echo getMLText('revisions_accepted_latest', array('no_revisions' => $cc["1"])); ?><br />
</label>
</div>
</div>
<?php
$this->formField(
getMLText('revisions_accepted', array('no_revisions' => count($tmpc["1"]))),
array(
'element'=>'input',
'type'=>'checkbox',
'name'=>'status[revision][]',
'value'=>'1',
'checked'=>true
),
array(
'field_wrap' => array('<label class="checkbox">', getMLText('revisions_accepted_latest', array('no_revisions' => $cc["1"]))."</label>")
)
);
?>
<?php } ?>
<?php if(isset($tmpc["-1"])) { ?>
<div class="control-group">
<div class="controls">
<label class="checkbox">
<input type="checkbox" name="status[revision][]" value="-1"> <?php echo getMLText('revisions_rejected', array('no_revisions' => count($tmpc["-1"]))); ?> <?php echo getMLText('revisions_rejected_latest', array('no_revisions' => $cc["-1"])); ?><br />
</label>
</div>
</div>
<?php
$this->formField(
getMLText('revisions_rejected', array('no_revisions' => count($tmpc["-1"]))),
array(
'element'=>'input',
'type'=>'checkbox',
'name'=>'status[revision][]',
'value'=>'-1',
'checked'=>true
),
array(
'field_wrap' => array('<label class="checkbox">', getMLText('revisions_rejected_latest', array('no_revisions' => $cc["-1"]))."</label>")
)
);
?>
<?php } ?>
<?php