* Batch import stories to lib.
This commit is contained in:
@@ -48,7 +48,6 @@ $lang->export = 'Exportieren';
|
||||
$lang->setFileName = 'Dateiame';
|
||||
$lang->submitting = 'Speichern...';
|
||||
$lang->save = 'Speichern';
|
||||
$lang->saveSuccess = 'Gespeichert.';
|
||||
$lang->confirm = 'Bestätigen';
|
||||
$lang->preview = 'Ansehen';
|
||||
$lang->goback = 'Zurück';
|
||||
@@ -76,6 +75,7 @@ $lang->switchDisplay = 'Umschalten';
|
||||
$lang->expand = 'Alle aufklappen';
|
||||
$lang->collapse = 'Zuklappen';
|
||||
$lang->saveSuccess = 'Gespeichert';
|
||||
$lang->importSuccess = 'Gespeichert';
|
||||
$lang->fail = 'Fehlgeschlagen';
|
||||
$lang->addFiles = 'Hinzufügen';
|
||||
$lang->files = 'Datei ';
|
||||
|
||||
@@ -53,7 +53,6 @@ $lang->export = 'Export';
|
||||
$lang->setFileName = 'File Name';
|
||||
$lang->submitting = 'Saving...';
|
||||
$lang->save = 'Save';
|
||||
$lang->saveSuccess = 'Saved';
|
||||
$lang->confirm = 'Confirm';
|
||||
$lang->preview = 'View';
|
||||
$lang->goback = 'Back';
|
||||
@@ -81,6 +80,7 @@ $lang->switchDisplay = 'Toggle';
|
||||
$lang->expand = 'Expand';
|
||||
$lang->collapse = 'Collapse';
|
||||
$lang->saveSuccess = 'Saved';
|
||||
$lang->importSuccess = 'Saved';
|
||||
$lang->fail = 'Fail';
|
||||
$lang->addFiles = 'Added Files';
|
||||
$lang->files = 'Files ';
|
||||
|
||||
@@ -48,7 +48,6 @@ $lang->export = 'Exporter';
|
||||
$lang->setFileName = 'Nom du Fichier';
|
||||
$lang->submitting = 'Enregistrement...';
|
||||
$lang->save = 'Sauvegarde';
|
||||
$lang->saveSuccess = 'Sauvegardé';
|
||||
$lang->confirm = 'Confirmer';
|
||||
$lang->preview = 'Consulter';
|
||||
$lang->goback = 'Retour';
|
||||
@@ -75,7 +74,8 @@ $lang->reverse = 'Inverser';
|
||||
$lang->switchDisplay = 'Basculer';
|
||||
$lang->expand = 'Déplier';
|
||||
$lang->collapse = 'Replier';
|
||||
$lang->saveSuccess = 'Sauvé';
|
||||
$lang->saveSuccess = 'Sauvegardé';
|
||||
$lang->importSuccess = 'Sauvé';
|
||||
$lang->fail = 'Echec';
|
||||
$lang->addFiles = 'Fichiers ajoutés ';
|
||||
$lang->files = 'Fichiers ';
|
||||
|
||||
@@ -48,7 +48,6 @@ $lang->export = 'Xuất';
|
||||
$lang->setFileName = 'File tên';
|
||||
$lang->submitting = 'Đang lưu...';
|
||||
$lang->save = 'Lưu lại';
|
||||
$lang->saveSuccess = 'Đã lưu';
|
||||
$lang->confirm = 'Xác nhận';
|
||||
$lang->preview = 'Xem';
|
||||
$lang->goback = 'Trở lại';
|
||||
@@ -76,6 +75,7 @@ $lang->switchDisplay = 'Menu';
|
||||
$lang->expand = 'Mở ra';
|
||||
$lang->collapse = 'Co lại';
|
||||
$lang->saveSuccess = 'Đã lưu';
|
||||
$lang->importSuccess = 'Đã lưu';
|
||||
$lang->fail = 'Thất bại';
|
||||
$lang->addFiles = 'Tập tin đã thêm';
|
||||
$lang->files = 'Files ';
|
||||
|
||||
@@ -53,7 +53,6 @@ $lang->export = '导出';
|
||||
$lang->setFileName = '文件名:';
|
||||
$lang->submitting = '稍候...';
|
||||
$lang->save = '保存';
|
||||
$lang->saveSuccess = '保存成功';
|
||||
$lang->confirm = '确认';
|
||||
$lang->preview = '查看';
|
||||
$lang->goback = '返回';
|
||||
@@ -81,6 +80,7 @@ $lang->switchDisplay = '切换显示';
|
||||
$lang->expand = '展开全部';
|
||||
$lang->collapse = '收起';
|
||||
$lang->saveSuccess = '保存成功';
|
||||
$lang->importSuccess = '导入成功';
|
||||
$lang->fail = '失败';
|
||||
$lang->addFiles = '上传了附件 ';
|
||||
$lang->files = '附件 ';
|
||||
|
||||
@@ -66,6 +66,17 @@ $(function()
|
||||
adjustTableFooter();
|
||||
$('body').on('click', '#toggleFold', adjustTableFooter);
|
||||
$('body').on('click', '.icon.icon-angle-double-right', adjustTableFooter);
|
||||
|
||||
/* Get checked stories. */
|
||||
$('#importToLib').on('click', function()
|
||||
{
|
||||
var storyIdList = '';
|
||||
$("input[name^='storyIdList']:checked").each(function()
|
||||
{
|
||||
storyIdList += $(this).val() + ',';
|
||||
$('#storyIdList').val(storyIdList);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
/**
|
||||
|
||||
@@ -281,7 +281,7 @@ $projectIDParam = $isProjectStory ? "projectID=$projectID&" : '';
|
||||
$canBatchChangeModule = ($canBeChanged and common::hasPriv('story', 'batchChangeModule'));
|
||||
$canBatchChangePlan = ($canBeChanged and common::hasPriv('story', 'batchChangePlan'));
|
||||
$canBatchAssignTo = ($canBeChanged and common::hasPriv('story', 'batchAssignTo'));
|
||||
$canBatchImportToLib = ($canBeChanged and $this->app->moduleName == 'projectstory' and isset($this->config->maxVersion) and common::hasPriv('story', 'batchImportToLib'));
|
||||
$canBatchImportToLib = ($canBeChanged and $this->app->openApp == 'project' and isset($this->config->maxVersion) and common::hasPriv('story', 'batchImportToLib'));
|
||||
|
||||
$canBatchAction = ($canBatchEdit or $canBatchClose or $canBatchReview or $canBatchChangeStage or $canBatchChangeModule or $canBatchChangePlan or $canBatchAssignTo or $canBatchImportToLib);
|
||||
?>
|
||||
@@ -518,6 +518,7 @@ $projectIDParam = $isProjectStory ? "projectID=$projectID&" : '';
|
||||
<?php endif;?>
|
||||
|
||||
<?php if($canBatchImportToLib):?>
|
||||
<?php echo html::a('#batchImportToLib', $lang->story->importToLib, '', 'class="btn" data-toggle="modal" id="importToLib"');?>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
<div class="table-statistic"><?php echo $summary;?></div>
|
||||
@@ -543,6 +544,43 @@ $projectIDParam = $isProjectStory ? "projectID=$projectID&" : '';
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="batchImportToLib">
|
||||
<div class="modal-dialog mw-600px">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"><i class="icon icon-close"></i></button>
|
||||
<h4 class="modal-title"><?php echo $lang->story->importToLib;?></h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form method='post' class='form-ajax' action='<?php echo $this->createLink('story', 'batchImportToLib');?>'>
|
||||
<table class='table table-form'>
|
||||
<tr>
|
||||
<th><?php echo $lang->story->lib;?></th>
|
||||
<td>
|
||||
<?php echo html::select('lib', $storyLibs, '', "class='form-control chosen' required");?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if(!common::hasPriv('assetlib', 'approveStory') and !common::hasPriv('assetlib', 'batchApproveStory')):?>
|
||||
<tr>
|
||||
<th><?php echo $lang->story->approver;?></th>
|
||||
<td>
|
||||
<?php echo html::select('assignedTo', $approvers, '', "class='form-control chosen'");?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif;?>
|
||||
<tr>
|
||||
<td colspan='3' class='text-center'>
|
||||
<?php echo html::hidden('storyIdList', '');?>
|
||||
<?php echo html::submitButton($lang->story->importToLib, '', 'btn btn-primary');?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
var moduleID = <?php echo $moduleID?>;
|
||||
var branchID = $.cookie('storyBranch');
|
||||
|
||||
Reference in New Issue
Block a user