mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
replace old table layout
This commit is contained in:
parent
e68608bf04
commit
7d93bccee6
|
@ -128,31 +128,33 @@ $(document).ready(function() {
|
|||
print "</tr></tbody></table><br>\n";
|
||||
}
|
||||
?>
|
||||
<form method="post" action="../op/op.ReviseDocument.php" id="form<?= $revisiontype ?>" name="form<?= $revisiontype ?>">
|
||||
<form class="form-horizontal" method="post" action="../op/op.ReviseDocument.php" id="form<?= $revisiontype ?>" name="form<?= $revisiontype ?>">
|
||||
<?php echo createHiddenFieldWithKey('revisedocument'); ?>
|
||||
<table class="table-condensed">
|
||||
<tr>
|
||||
<td><?php printMLText("comment")?>:</td>
|
||||
<td><textarea name="comment" cols="80" rows="4"></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("revision_status")?>:</td>
|
||||
<td>
|
||||
<select name="revisionStatus">
|
||||
<?php if($revisionStatus['status'] != 1) { ?>
|
||||
<option value='1'><?php printMLText("status_revised")?></option>
|
||||
<?php } ?>
|
||||
<?php if($revisionStatus['status'] != -1) { ?>
|
||||
<option value='-1'><?php printMLText("status_needs_correction")?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td><input type='submit' class="btn" name='<?= $revisiontype ?>Revision' value='<?php printMLText("submit_revision")?>'/></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
$this->formField(
|
||||
getMLText("comment"),
|
||||
array(
|
||||
'element'=>'textarea',
|
||||
'name'=>'comment',
|
||||
'rows'=>4,
|
||||
'cols'=>80
|
||||
)
|
||||
);
|
||||
$options = array();
|
||||
if($revisionStatus['status'] != 1)
|
||||
$options[] = array('1', getMLText("status_revised"));
|
||||
if($revisionStatus['status'] != -1)
|
||||
$options[] = array('-1', getMLText("status_needs_correction"));
|
||||
$this->formField(
|
||||
getMLText("revision_status"),
|
||||
array(
|
||||
'element'=>'select',
|
||||
'name'=>'revisionStatus',
|
||||
'options'=>$options,
|
||||
)
|
||||
);
|
||||
$this->formSubmit(getMLText('submit_revision'), $revisiontype.'Revision');
|
||||
?>
|
||||
<input type='hidden' name='revisionType' value='<?= $revisiontype ?>'/>
|
||||
<?php if($revisiontype == 'grp'): ?>
|
||||
<input type='hidden' name='revisionGroup' value='<?php echo $revisionStatus['required']; ?>'/>
|
||||
|
|
Loading…
Reference in New Issue
Block a user