* Finish task #5299.
This commit is contained in:
@@ -44,7 +44,7 @@ class doc extends control
|
||||
$pager = new pager(0, 5, 1);
|
||||
|
||||
$this->lang->modulePageActions = $this->doc->setFastMenu($this->lang->doc->fast);
|
||||
$this->lang->modulePageActions .= common::hasPriv('doc', 'createLib') ? html::a(helper::createLink('doc', 'createLib'), "<i class='icon icon-folder-plus'></i> " . $this->lang->doc->createLib, '', "class='btn btn-secondary iframe'") : '';
|
||||
$this->lang->modulePageActions .= common::hasPriv('doc', 'createLib') ? html::a(helper::createLink('doc', 'createLib'), "<i class='icon icon-folder-plus'></i> " . $this->lang->doc->createLib, '', "class='btn btn-secondary iframe' data-width='45%'") : '';
|
||||
|
||||
$actionURL = $this->createLink('doc', 'browse', "lib=0&browseType=bySearch&queryID=myQueryID");
|
||||
$this->doc->buildSearchForm(0, array(), 0, $actionURL, 'index');
|
||||
@@ -328,7 +328,7 @@ class doc extends control
|
||||
$this->product->setMenu($this->product->getPairs(), $lib->product);
|
||||
$this->lang->set('menugroup.doc', 'product');
|
||||
|
||||
if(common::hasPriv('doc', 'create')) $this->lang->modulePageActions = html::a(helper::createLink('doc', 'create', "libID=$libID"), "<i class='icon icon-plus'></i> " . $this->lang->doc->create, '', "class='btn btn-primary'");
|
||||
$this->lang->modulePageActions = common::hasPriv('doc', 'createLib') ? html::a(helper::createLink('doc', 'createLib'), "<i class='icon icon-folder-plus'></i> " . $this->lang->doc->createLib, '', "class='btn btn-secondary iframe' data-width='45%'") : '';
|
||||
}
|
||||
elseif($this->from == 'project')
|
||||
{
|
||||
@@ -337,7 +337,7 @@ class doc extends control
|
||||
$this->project->setMenu($this->project->getPairs('nocode'), $lib->project);
|
||||
$this->lang->set('menugroup.doc', 'project');
|
||||
|
||||
if(common::hasPriv('doc', 'create')) $this->lang->modulePageActions = html::a(helper::createLink('doc', 'create', "libID=$libID"), "<i class='icon icon-plus'></i> " . $this->lang->doc->create, '', "class='btn btn-primary'");
|
||||
$this->lang->modulePageActions = common::hasPriv('doc', 'createLib') ? html::a(helper::createLink('doc', 'createLib'), "<i class='icon icon-folder-plus'></i> " . $this->lang->doc->createLib, '', "class='btn btn-secondary iframe' data-width='45%'") : '';
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -796,7 +796,7 @@ class doc extends control
|
||||
}
|
||||
elseif($from == 'project')
|
||||
{
|
||||
$this->lang->modulePageActions = common::hasPriv('doc', 'createLib') ? html::a(helper::createLink('doc', 'createLib', "from=project&projectID=$objectID"), "<i class='icon icon-folder-plus'></i> " . $this->lang->doc->createLib, '', "class='btn btn-secondary iframe'") : '';
|
||||
$this->lang->modulePageActions = common::hasPriv('doc', 'createLib') ? html::a(helper::createLink('doc', 'createLib'), "<i class='icon icon-folder-plus'></i> " . $this->lang->doc->createLib, '', "class='btn btn-secondary iframe' data-width='45%'") : '';
|
||||
$this->lang->doc->menu = $this->lang->project->menu;
|
||||
$this->lang->doc->menuOrder = $this->lang->project->menuOrder;
|
||||
$this->project->setMenu($this->project->getPairs('nocode'), $objectID);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
.modal-dialog{width:75%}
|
||||
form{margin-bottom:130px; padding-left:65px}
|
||||
form{margin-bottom:100px; padding-left:65px}
|
||||
table{width:90% !important}
|
||||
|
||||
#whiteListBox div.input-group {margin-bottom: 2px;}
|
||||
|
||||
@@ -16,7 +16,7 @@ function toggleAcl(acl, type)
|
||||
}
|
||||
if(type == 'lib')
|
||||
{
|
||||
var libType = $('#type').val();
|
||||
var libType = $('input[name="type"]').val();
|
||||
var notice = typeof(noticeAcl[libType][acl]) != 'undefined' ? noticeAcl[libType][acl] : '';
|
||||
$('#noticeAcl').html(notice);
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
$(function()
|
||||
{
|
||||
$('#type').change(function()
|
||||
$('input[name="type"]').change(function()
|
||||
{
|
||||
var libType = $(this).val();
|
||||
changeByLibType(libType);
|
||||
})
|
||||
changeByLibType($('#type').val());
|
||||
changeByLibType($('input[name="type"]').val());
|
||||
toggleAcl($('[name=acl]').val(), 'lib');
|
||||
});
|
||||
|
||||
|
||||
@@ -23,23 +23,26 @@
|
||||
<table class='table table-form'>
|
||||
<tr>
|
||||
<th class='w-80px'><?php echo $lang->doc->libType?></th>
|
||||
<td><?php echo html::select('type', $libTypeList, $type, "class='form-control'")?></td>
|
||||
<td colspan='2'><?php echo html::radio('type', $libTypeList, "product")?></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>
|
||||
<td></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>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->doclib->name?></th>
|
||||
<td><?php echo html::input('name', '', "class='form-control'")?></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->doclib->control;?></th>
|
||||
<td>
|
||||
<td colspan='2'>
|
||||
<?php echo html::radio('acl', $lang->doc->aclList, 'open', "onchange='toggleAcl(this.value, \"lib\")'")?>
|
||||
<span class='text-warning' id='noticeAcl'><?php echo $lang->doc->noticeAcl['lib']['product']['open'];?></span>
|
||||
</td>
|
||||
@@ -47,7 +50,7 @@
|
||||
</tr>
|
||||
<tr id='whiteListBox' class='hidden'>
|
||||
<th><?php echo $lang->doc->whiteList;?></th>
|
||||
<td>
|
||||
<td colspan='2'>
|
||||
<div class='input-group'>
|
||||
<span class='input-group-addon groups-addon'><?php echo $lang->doclib->group?></span>
|
||||
<?php echo html::select('groups[]', $groups, '', "class='form-control chosen' multiple")?>
|
||||
@@ -59,7 +62,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='text-center form-actions' colspan='2'><?php echo html::submitButton();?></td>
|
||||
<td class='text-center form-actions' colspan='3'><?php echo html::submitButton();?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user