-
Notifications
You must be signed in to change notification settings - Fork 1
/
_fileBlock.php
85 lines (84 loc) · 4.22 KB
/
_fileBlock.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?php
use yii\helpers\Html;
use Itstructure\MFUploader\Module;
?>
<tr role="file-block-{fileNumber}">
<td>
<table width="100%">
<tbody>
<tr>
<td width="128">
{preview}
</td>
<td width="10">
</td>
<td>
<div>
{size}
</div>
<div>
{title}
</div>
<div role="progress-block">
<div class="progress">
<div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%;">
<span class="sr-only">100% Complete</span>
</div>
</div>
</div>
</td>
<td width="10">
</td>
<td width="200">
<div role="button-block-upload">
<?php echo Html::button('<span class="glyphicon glyphicon-upload"></span> ' . Module::t('uploadmanager', 'Upload'), [
'class' => 'btn btn-primary btn-sm',
'id' => 'upload-button-{fileNumber}',
'role' => 'upload-file',
'data-file-number' => '{fileNumber}'
]) ?>
<?php echo Html::button('<span class="glyphicon glyphicon-ban-circle"></span> ' . Module::t('uploadmanager', 'Cancel'), [
'class' => 'btn btn-info btn-sm',
'id' => 'cancel-button-{fileNumber}',
'role' => 'cancel-upload',
'data-file-number' => '{fileNumber}'
]) ?>
</div>
<div role="button-block-delete">
<?php echo Html::button('<span class="glyphicon glyphicon-trash"></span> ' . Module::t('uploadmanager', 'Delete'), [
'class' => 'btn btn-danger btn-sm',
'id' => 'delete-button-{fileNumber}',
'role' => 'delete-file-button',
'data-file-number' => '{fileNumber}',
'data-file-id' => ''
]) ?>
<?php echo Html::checkbox(Module::t('uploadmanager', 'Delete'), false, [
'id' => 'delete-checkbox-{fileNumber}',
'role' => 'delete-file-checkbox',
]) ?>
</div>
</td>
</tr>
<tr>
<td colspan="5">
<div class="input-group input-group-sm {altVisibility}">
<span class="input-group-addon" id="file-alt"><?php echo Module::t('filemanager', 'Alt') ?></span>
<input type="text" class="form-control" placeholder="<?php echo Module::t('filemanager', 'Alt') ?>"
aria-describedby="file-alt" name="alt" role="file-alt">
</div>
<div class="input-group input-group-sm">
<span class="input-group-addon" id="file-title"><?php echo Module::t('filemanager', 'Title') ?></span>
<input type="text" class="form-control" placeholder="<?php echo Module::t('filemanager', 'Title') ?>"
aria-describedby="file-title" name="title" role="file-title">
</div>
<div class="input-group input-group-sm">
<span class="input-group-addon" id="file-description"><?php echo Module::t('filemanager', 'Description') ?></span>
<textarea class="form-control" placeholder="<?php echo Module::t('filemanager', 'Description') ?>"
aria-describedby="file-description" name="description" role="file-description"></textarea>
</div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>