Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
Remove HTML to upload files.
Browse files Browse the repository at this point in the history
You can add files to description issue by RichTextField
  • Loading branch information
githubjeka committed Jun 18, 2019
1 parent 20ecbb2 commit 9c25d68
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions views/issue/form.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,32 +150,6 @@

</div>

<div id="post_upload_progress_<?= $issueForm->id ?>" style="display:none;margin:10px 0px;"></div>

<?=
\humhub\modules\file\widgets\FilePreview::widget([
'id' => 'post_upload_preview_' . $issueForm->id,
'options' => ['style' => 'margin-top:10px'],
'model' => new \tracker\models\Issue,
'edit' => true,
])
?>

<div class="row">
<div class="col-md-12">
<?=
\humhub\modules\file\widgets\UploadButton::widget([
'id' => 'post_upload_' . $issueForm->id,
'model' => new \tracker\models\Issue,
'dropZone' => '#post_edit_' . $issueForm->id . ':parent',
'preview' => '#post_upload_preview_' . $issueForm->id,
'progress' => '#post_upload_progress_' . $issueForm->id,
'max' => Yii::$app->getModule('content')->maxAttachedFiles,
])
?>
</div>
</div>

<?php endif ?>

<div class="row">
Expand Down

0 comments on commit 9c25d68

Please sign in to comment.