* Code for task #89152.

This commit is contained in:
tianshujie
2023-03-27 16:14:58 +08:00
parent 0923c8807f
commit bdac57b504
7 changed files with 26 additions and 8 deletions
+1 -1
View File
@@ -10,4 +10,4 @@ table {width: 90% !important;}
#execution_chosen {width: 50% !important;}
#groups_chosen.chosen-container .chosen-results, #users_chosen.chosen-container .chosen-results {max-height: 160px;}
.objectBox > td.required:after {right: 274px;}
.objectBox > td.required:after {right: 180px;}
+3
View File
@@ -21,6 +21,9 @@ $lang->doclib->execution = $lang->executionCommon . ' Bibliothek';
$lang->doclib->product = $lang->productCommon . ' Bibliothek';
$lang->doclib->apiLibName = 'Api Library Name';
$lang->doclib->type['wiki'] = 'WIKI';
$lang->doclib->type['api'] = 'API';
$lang->doclib->aclListA = array();
$lang->doclib->aclListA['default'] = 'Default';
$lang->doclib->aclListA['custom'] = 'Custom';
+3
View File
@@ -21,6 +21,9 @@ $lang->doclib->execution = $lang->executionCommon . ' Library';
$lang->doclib->product = $lang->productCommon . ' Library';
$lang->doclib->apiLibName = 'Api Library Name';
$lang->doclib->type['wiki'] = 'WIKI';
$lang->doclib->type['api'] = 'API';
$lang->doclib->aclListA = array();
$lang->doclib->aclListA['default'] = 'Default';
$lang->doclib->aclListA['custom'] = 'Custom';
+3
View File
@@ -21,6 +21,9 @@ $lang->doclib->execution = 'Bibliothèque ' . $lang->executionCommon;
$lang->doclib->product = $lang->productCommon . ' Library';
$lang->doclib->apiLibName = 'Api Library Name';
$lang->doclib->type['wiki'] = 'WIKI';
$lang->doclib->type['api'] = 'API';
$lang->doclib->aclListA = array();
$lang->doclib->aclListA['default'] = 'Défaut';
$lang->doclib->aclListA['custom'] = 'Person.';
+4 -1
View File
@@ -21,6 +21,9 @@ $lang->doclib->execution = $lang->executionCommon . '库';
$lang->doclib->product = $lang->productCommon . '库';
$lang->doclib->apiLibName = '接口库名称';
$lang->doclib->type['wiki'] = 'WIKI文档库';
$lang->doclib->type['api'] = '接口库';
$lang->doclib->aclListA = array();
$lang->doclib->aclListA['default'] = '默认';
$lang->doclib->aclListA['custom'] = '自定义';
@@ -146,7 +149,7 @@ $lang->doc->api = '接口';
$lang->doc->collectAction = '收藏文档';
$lang->doc->libName = '文档库名称';
$lang->doc->libType = '文档库类型';
$lang->doc->libType = '库类型';
$lang->doc->custom = '自定义文档库';
$lang->doc->customAB = '自定义库';
$lang->doc->createLib = '创建库';
+2 -1
View File
@@ -193,10 +193,11 @@ class docModel extends model
{
$lib = fixer::input('post')
->setForce('product', $this->post->type == 'product' ? $this->post->product : 0)
->setForce('project', $this->post->type == 'project' ? $this->post->project : 0)
->setForce('execution', $this->post->type == 'execution' ? $this->post->execution : 0)
->join('groups', ',')
->join('users', ',')
->remove('uid,contactListMenu')
->remove('uid,contactListMenu,libType')
->get();
if($lib->type == 'execution' and $lib->execution)
+10 -5
View File
@@ -27,15 +27,17 @@
<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>
<tr>
<th><?php echo $lang->doc->libType;?></th>
<td>
<span><?php echo html::radio('libType', $lang->doclib->type, 'wiki')?></span>
</td>
</tr>
<?php endif;?>
<tr class="normalLib">
<th><?php echo $lang->doclib->name?></th>
<td><?php echo html::input('name', '', "class='form-control'")?></td>
</tr>
<tr class='apilib hidden'>
<th><?php echo $lang->api->name?></th>
<td><?php echo html::input('name', '', "class='form-control'")?></td>
</tr>
<tr class="apilib hidden">
<th><?php echo $lang->api->baseUrl?></th>
<td><?php echo html::input('baseUrl', '', "class='form-control' placeholder='" . $lang->api->baseUrlDesc . "'");?></td>
@@ -77,7 +79,10 @@
</td>
</tr>
<tr>
<td class='text-center form-actions' colspan='2'><?php echo html::submitButton();?></td>
<td class='text-center form-actions' colspan='2'>
<?php echo html::submitButton();?>
<?php echo html::hidden('type', $type);?>
</td>
</tr>
</table>
</form>