FIX_ISSUE
This commit is contained in:
parent
1cf83a69cd
commit
7c95e0fa0d
@ -8,6 +8,8 @@ $increment = 1;
|
|||||||
$isFirstField = ($index === 0);
|
$isFirstField = ($index === 0);
|
||||||
$placeholder = $isFirstField ? 'First file must be Demography.' : '';
|
$placeholder = $isFirstField ? 'First file must be Demography.' : '';
|
||||||
$accept = $isFirstField ? '.xls,.xlsx' : '.xls,.xlsx,.pdf,.jpg,.jpeg,.png';
|
$accept = $isFirstField ? '.xls,.xlsx' : '.xls,.xlsx,.pdf,.jpg,.jpeg,.png';
|
||||||
|
$accept_text = $isFirstField ? 'First file: Excel only (.xls, .xlsx)' : 'Files: PDF, Excel (.xlsx, .xls), Images (.png, .jpg, .jpeg)';
|
||||||
|
|
||||||
$displayIndex = $index + 1;
|
$displayIndex = $index + 1;
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@ -35,6 +37,7 @@ $increment = 1;
|
|||||||
<div class="input-icon">
|
<div class="input-icon">
|
||||||
<input type="file" class="form-control" id="file_name_<?= $displayIndex ?>" name="file_name_<?= $increment ?>[]" accept="<?= $accept ?>" onchange="showFileName(this, <?= $displayIndex ?>)" style="background: #F5FFFF !important;">
|
<input type="file" class="form-control" id="file_name_<?= $displayIndex ?>" name="file_name_<?= $increment ?>[]" accept="<?= $accept ?>" onchange="showFileName(this, <?= $displayIndex ?>)" style="background: #F5FFFF !important;">
|
||||||
<i class="mdi mdi-upload additional-icon"></i>
|
<i class="mdi mdi-upload additional-icon"></i>
|
||||||
|
<small style="margin-left: 10px;font-size: 10px;"><span class="text-danger"><?= $accept_text ?></span></small>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -67,6 +70,7 @@ $increment = 1;
|
|||||||
<input type="file" class="form-control" id="file_name_1"
|
<input type="file" class="form-control" id="file_name_1"
|
||||||
name="file_name_1[]" accept=".xls,.xlsx" onchange="showFileName(this, 1)" style="background: #F5FFFF !important;">
|
name="file_name_1[]" accept=".xls,.xlsx" onchange="showFileName(this, 1)" style="background: #F5FFFF !important;">
|
||||||
<i class="mdi mdi-upload additional-icon"></i>
|
<i class="mdi mdi-upload additional-icon"></i>
|
||||||
|
<small style="margin-left: 10px;font-size: 10px;"><span class="text-danger">First file: Excel only (.xls, .xlsx)</span></small>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-auto">
|
<div class="col-auto">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user