use form controlls instead of table

This commit is contained in:
Uwe Steinmann 2017-01-04 17:53:27 +01:00
parent b56cb9c018
commit daa6b1dea1
3 changed files with 29 additions and 31 deletions

View File

@ -51,17 +51,17 @@ class SeedDMS_View_MoveDocument extends SeedDMS_Bootstrap_Style {
$this->contentHeading(getMLText("move_document"));
$this->contentContainerStart('warning');
?>
<form action="../op/op.MoveDocument.php" name="form1">
<form class="form-horizontal" action="../op/op.MoveDocument.php" name="form1">
<input type="hidden" name="documentid" value="<?php print $document->getID();?>">
<table>
<tr>
<td><?php printMLText("choose_target_folder");?>:</td>
<td><?php $this->printFolderChooserHtml("form1", M_READWRITE, -1, $target);?></td>
</tr>
<tr>
<td colspan="2"><input type="submit" class="btn" value="<?php printMLText("move");?>"></td>
</tr>
</table>
<div class="control-group">
<label class="control-label"><?php printMLText("choose_target_folder");?>:</label>
<div class="controls">
<?php $this->printFolderChooserHtml("form1", M_READWRITE, -1, $target);?>
</div>
</div>
<div class="controls">
<input class="btn" type="submit" value="<?php printMLText("move"); ?>">
</div>
</form>
<?php
$this->contentContainerEnd();

View File

@ -50,13 +50,11 @@ class SeedDMS_View_SetExpires extends SeedDMS_Bootstrap_Style {
$expdate = '';
?>
<form action="../op/op.SetExpires.php" method="post">
<form class="form-horizontal" action="../op/op.SetExpires.php" method="post">
<input type="hidden" name="documentid" value="<?php print $document->getID();?>">
<table class="table-condensed">
<tr>
<td><?php printMLText("expires");?>:</td>
<td>
<div class="control-group">
<label class="control-label"><?php printMLText("expires");?>:</label>
<div class="controls">
<span class="input-append date span12" id="expirationdate" data-date="<?php echo $expdate; ?>" data-date-format="yyyy-mm-dd" data-date-language="<?php echo str_replace('_', '-', $this->params['session']->getLanguage()); ?>">
<input class="span6" name="expdate" type="text" value="<?php echo $expdate; ?>">
<span class="add-on"><i class="icon-calendar"></i></span>
@ -64,13 +62,11 @@ class SeedDMS_View_SetExpires extends SeedDMS_Bootstrap_Style {
<label class="checkbox inline">
<input type="checkbox" name="expires" value="false"<?php if (!$document->expires()) print " checked";?>><?php printMLText("does_not_expire");?><br>
</label>
</td>
</tr>
<tr>
<td></td>
<td><button type="submit" class="btn"><i class="icon-save"></i> <?php printMLText("save") ?></button></td>
</tr>
</table>
</div>
</div>
<div class="controls">
<button type="submit" class="btn"><i class="icon-save"></i> <?php printMLText("save") ?></button>
</div>
</form>
<?php
$this->contentContainerEnd();

View File

@ -106,18 +106,20 @@ $(document).ready(function() {
?>
<div class="row-fluid">
<div class="span4">
<form method="POST" action="../op/op.TriggerWorkflow.php" id="form1" name="form1">
<form class="form-horizontal" method="post" action="../op/op.TriggerWorkflow.php" id="form1" name="form1">
<?php echo createHiddenFieldWithKey('triggerworkflow'); ?>
<table>
<tr><td><?php printMLText("comment")?>:</td>
<td><textarea name="comment" cols="80" rows="4"></textarea>
</td></tr>
<tr><td></td><td>
<div class="control-group">
<label class="control-label"><?php printMLText('comment'); ?>:</label>
<div class="controls">
<textarea name="comment" cols="80" rows="4"></textarea>
</div>
</div>
<input type='hidden' name='documentid' value='<?php echo $document->getId(); ?>'/>
<input type='hidden' name='version' value='<?php echo $latestContent->getVersion(); ?>'/>
<input type='hidden' name='transition' value='<?php echo $transition->getID(); ?>'/>
<input type='submit' class="btn" value='<?php printMLText("action_".strtolower($action->getName()), array(), $action->getName()); ?>'/>
</td></tr></table>
<div class="controls">
<input type='submit' class="btn" value='<?php printMLText("action_".strtolower($action->getName()), array(), $action->getName()); ?>'/>
</div>
</form>
</div>
<div id="workflowgraph" class="span8">