Skip to content

Commit ac992f5

Browse files
committed
Improved attachement section of edit_part_info.php
Removed the preview field for the file upload.
1 parent 8557687 commit ac992f5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

templates/nextgen/edit_part_info.php/smarty_attachements.tpl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@
3232

3333
<div class="col-sm-7">
3434
<div class="row">
35-
<div class="col-sm-4 form-group">
35+
<div class="col-sm-3 form-group">
3636
<label>{t}Name:{/t}</label>
3737
<input type="text" class="form-control" name="name" size="12" value="{$attach.name}"
3838
{if !($can_attachement_edit || ($can_attachement_create && $attach.id == "new"))}disabled{/if}>
3939
</div>
40-
<div class="col-sm-4 form-group">
40+
<div class="col-sm-5 form-group">
4141
<label>{t}Dateityp:{/t}</label>
4242
<select class="form-control" name="attachement_type_id"
4343
{if !($can_attachement_edit || ($can_attachement_create && $attach.id == "new"))}disabled{/if}>
@@ -69,17 +69,17 @@
6969
value="{$attach.filename_base_relative}" {if !($can_attachement_edit || ($can_attachement_create && $attach.id == "new"))}disabled{/if}>
7070
</div>
7171
</div>
72-
<div class="form-group row">
72+
<div class="form-group row mb-0">
7373
<label class="col-sm-3">
7474
{t}Neue Datei hochladen:{/t}
7575
</label>
76-
<div class="col-sm-6">
77-
<input data-show-caption="false" data-show-upload="false" type="file" class="file" name="attachement_file"
76+
<div class="col-sm-5">
77+
<input data-show-caption="false" data-show-upload="false" data-show-preview="false" type="file" class="file" name="attachement_file"
7878
{if !($can_attachement_edit || ($can_attachement_create && $attach.id == "new"))}disabled{/if}>
79-
<p>(max. {$max_upload_filesize})</p>
79+
<p class="mb-0">(max. {$max_upload_filesize})</p>
8080
</div>
8181
{if $downloads_enable}
82-
<div class="col-sm-3">
82+
<div class="col-sm-4">
8383
<div class="form-check form-check-inline abc-checkbox">
8484
<input class="form-check-input" type="checkbox" name="download_file" {if $attach.download_file}checked{/if}
8585
{if !($can_attachement_edit || ($can_attachement_create && $attach.id == "new"))}disabled{/if}>

0 commit comments

Comments
 (0)