* code for task #89148.
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
?>
|
||||
<?php include '../../common/view/header.lite.html.php';?>
|
||||
<?php include '../../common/view/chosen.html.php';?>
|
||||
<?php js::set('libType', $type);?>
|
||||
<div id="main">
|
||||
<div class="container">
|
||||
<div id='mainContent' class='main-content'>
|
||||
@@ -21,30 +22,12 @@
|
||||
</div>
|
||||
<form method='post' target='hiddenwin' class='no-stash'>
|
||||
<table class='table table-form'>
|
||||
<tr>
|
||||
<th class='w-110px'><?php echo $lang->doc->libType?></th>
|
||||
<?php if($this->app->tab != 'doc'):?>
|
||||
<?php
|
||||
foreach($libTypeList as $key => $libType)
|
||||
{
|
||||
if($this->app->tab != $key) unset($libTypeList[$key]);
|
||||
}
|
||||
?>
|
||||
<?php endif;?>
|
||||
<td><?php echo html::radio('type', $libTypeList, $type ? $type : key($libTypeList))?></td>
|
||||
</tr>
|
||||
<tr class='product'>
|
||||
<th><?php echo $lang->doc->product?></th>
|
||||
<td><?php echo html::select('product', $products, $type == 'product' ? $objectID : '', "class='form-control chosen' data-drop_direction='down'")?></td>
|
||||
</tr>
|
||||
<tr class='project hidden'>
|
||||
<th><?php echo $lang->doc->project?></th>
|
||||
<td><?php echo html::select('project', $projects, $type == 'project' ? $objectID : '', "class='form-control chosen' data-drop_direction='down'")?></td>
|
||||
</tr>
|
||||
<tr class='execution hidden'>
|
||||
<th><?php echo $lang->doc->execution?></th>
|
||||
<td><?php echo html::select('execution', $executions, $type == 'execution' ? $objectID : '', "class='form-control chosen' data-drop_direction='down'")?></td>
|
||||
<?php if(in_array($type, array('product', 'project', 'execution'))):?>
|
||||
<tr class='objectBox'>
|
||||
<th><?php echo $lang->doc->{$type}?></th>
|
||||
<td class='required'><?php echo html::select($type, $objects, $objectID, "class='form-control chosen' data-drop_direction='down'")?></td>
|
||||
</tr>
|
||||
<?php endif;?>
|
||||
<tr class="normalLib">
|
||||
<th><?php echo $lang->doclib->name?></th>
|
||||
<td><?php echo html::input('name', '', "class='form-control'")?></td>
|
||||
|
||||
Reference in New Issue
Block a user