看板初始化提交
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<div class="page-header">
|
||||
<h2><?= t('Attach a document') ?></h2>
|
||||
</div>
|
||||
|
||||
<?= $this->app->component('file-upload', array(
|
||||
'csrf' => $this->app->getToken()->getReusableCSRFToken(),
|
||||
'maxSize' => $max_size,
|
||||
'url' => $this->url->to('ProjectFileController', 'save', array('project_id' => $project['id'])),
|
||||
'labelDropzone' => t('Drag and drop your files here'),
|
||||
'labelOr' => t('or'),
|
||||
'labelChooseFiles' => t('choose files'),
|
||||
'labelOversize' => $max_size > 0 ? t('The maximum allowed file size is %sB.', $this->text->bytes($max_size)) : null,
|
||||
'labelSuccess' => t('All files have been uploaded successfully.'),
|
||||
'labelCloseSuccess' => t('Close this window'),
|
||||
'labelUploadError' => t('Unable to upload this file.'),
|
||||
)) ?>
|
||||
|
||||
<?= $this->modal->submitButtons(array(
|
||||
'submitLabel' => t('Upload files'),
|
||||
'disabled' => true,
|
||||
)) ?>
|
||||
@@ -0,0 +1,15 @@
|
||||
<div class="page-header">
|
||||
<h2><?= t('Remove a file') ?></h2>
|
||||
</div>
|
||||
|
||||
<div class="confirm">
|
||||
<p class="alert alert-info">
|
||||
<?= t('Do you really want to remove this file: "%s"?', $this->text->e($file['name'])) ?>
|
||||
</p>
|
||||
|
||||
<?= $this->modal->confirmButtons(
|
||||
'ProjectFileController',
|
||||
'remove',
|
||||
array('project_id' => $project['id'], 'file_id' => $file['id'])
|
||||
) ?>
|
||||
</div>
|
||||
Reference in New Issue
Block a user