mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
use form controls
This commit is contained in:
parent
9f0e5c4f3e
commit
fbb91c9c30
|
@ -70,18 +70,24 @@ class SeedDMS_View_SetRevisors extends SeedDMS_Bootstrap_Style {
|
|||
|
||||
<?php $this->contentContainerStart(); ?>
|
||||
|
||||
<form action="../op/op.SetRevisors.php" method="post" name="form1">
|
||||
<form class="form-horizontal" action="../op/op.SetRevisors.php" method="post" name="form1">
|
||||
|
||||
<?php $this->contentSubHeading(getMLText("update_revisors"));?>
|
||||
|
||||
<div class="cbSelectTitle"><?php printMLText("revision_date")?>:</div>
|
||||
<span class="input-append date" style="display: inline;" id="revisionstartdate" data-date="<?php echo date('Y-m-d'); ?>" data-date-format="yyyy-mm-dd" data-date-language="<?php echo str_replace('_', '-', $this->params['session']->getLanguage()); ?>">
|
||||
<input class="span4" size="16" name="startdate" type="text" value="<?php if($startdate) echo $startdate; else echo date('Y-m-d'); ?>">
|
||||
<span class="add-on"><i class="icon-calendar"></i></span>
|
||||
</span>
|
||||
<div class="control-group">
|
||||
<label class="control-label"><?php printMLText("revision_date")?>:</label>
|
||||
<div class="controls">
|
||||
<span class="input-append date" style="display: inline;" id="revisionstartdate" data-date="<?php echo date('Y-m-d'); ?>" data-date-format="yyyy-mm-dd" data-date-language="<?php echo str_replace('_', '-', $this->params['session']->getLanguage()); ?>">
|
||||
<input class="span4" size="16" name="startdate" type="text" value="<?php if($startdate) echo $startdate; else echo date('Y-m-d'); ?>">
|
||||
<span class="add-on"><i class="icon-calendar"></i></span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="cbSelectTitle"><?php printMLText("individuals")?>:</div>
|
||||
<select class="chzn-select span9" name="indRevisors[]" multiple="multiple" data-placeholder="<?php printMLText('select_ind_revisors'); ?>" data-no_results_text="<?php printMLText('unknown_owner'); ?>">
|
||||
<div class="control-group">
|
||||
<label class="control-label"><?php printMLText("individuals")?>:</label>
|
||||
<div class="controls">
|
||||
<select class="chzn-select span9" name="indRevisors[]" multiple="multiple" data-placeholder="<?php printMLText('select_ind_revisors'); ?>" data-no_results_text="<?php printMLText('unknown_owner'); ?>">
|
||||
<?php
|
||||
|
||||
foreach ($docAccess["users"] as $usr) {
|
||||
|
@ -107,10 +113,14 @@ class SeedDMS_View_SetRevisors extends SeedDMS_Bootstrap_Style {
|
|||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="cbSelectTitle"><?php printMLText("groups")?>:</div>
|
||||
<select class="chzn-select span9" name="grpRevisors[]" multiple="multiple" data-placeholder="<?php printMLText('select_grp_revisors'); ?>" data-no_results_text="<?php printMLText('unknown_group'); ?>">
|
||||
<div class="control-group">
|
||||
<label class="control-label"><?php printMLText("groups")?>:</label>
|
||||
<div class="controls">
|
||||
<select class="chzn-select span9" name="grpRevisors[]" multiple="multiple" data-placeholder="<?php printMLText('select_grp_revisors'); ?>" data-no_results_text="<?php printMLText('unknown_group'); ?>">
|
||||
<?php
|
||||
foreach ($docAccess["groups"] as $group) {
|
||||
if (isset($revisionIndex["g"][$group->getID()])) {
|
||||
|
@ -131,13 +141,18 @@ class SeedDMS_View_SetRevisors extends SeedDMS_Bootstrap_Style {
|
|||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
<input type='hidden' name='documentid' value='<?php echo $document->getID() ?>'/>
|
||||
<input type='hidden' name='version' value='<?php echo $content->getVersion() ?>'/>
|
||||
<input type="submit" class="btn" value="<?php printMLText("update");?>">
|
||||
</p>
|
||||
<input type='hidden' name='documentid' value='<?php echo $document->getID() ?>'/>
|
||||
<input type='hidden' name='version' value='<?php echo $content->getVersion() ?>'/>
|
||||
<div class="control-group">
|
||||
<label class="control-label"></label>
|
||||
<div class="controls">
|
||||
<input type="submit" class="btn" value="<?php printMLText("update");?>">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
|
|
Loading…
Reference in New Issue
Block a user