85 lines
2.8 KiB
Smarty
85 lines
2.8 KiB
Smarty
<div class="col-lg-7">
|
||
<div class="panel">
|
||
<h3>{l s='Document ajouté' mod='addfileorder'}</h3>
|
||
{if $file_add_success === false}
|
||
<div class="bootstrap">
|
||
<div class="alert alert-danger">
|
||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||
{l s='Il y a eu une erreur lors de l\'ajout du document' mod='addfileorder'}
|
||
</div>
|
||
</div>
|
||
{else if $file_delete_success === false}
|
||
<div class="bootstrap">
|
||
<div class="alert alert-danger">
|
||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||
{l s='Il y a eu une erreur lors de la suppression du document' mod='addfileorder'}
|
||
</div>
|
||
</div>
|
||
{else if $file_add_success === true }
|
||
<div class="bootstrap">
|
||
<div class="alert alert-success">
|
||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||
{l s='Le document a bien été ajouté' mod='addfileorder'}
|
||
</div>
|
||
</div>
|
||
{else if $file_delete_success === true}
|
||
<div class="bootstrap">
|
||
<div class="alert alert-success">
|
||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||
{l s='Le document a bien été supprimé' mod='addfileorder'}
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
<table class="table">
|
||
<thead>
|
||
<tr>
|
||
<th>
|
||
<span class="title_box">{l s='Document' mod='addfileorder'}</span>
|
||
</th>
|
||
<th></th>
|
||
<th>
|
||
<span class="title_box">{l s='Action' mod='addfileorder'}</span>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
{if $dirExist}
|
||
{foreach from=$files item=file}
|
||
<form method="POST" action="#">
|
||
<input type="hidden" name="fileName" value="{$file['name']}">
|
||
<tr>
|
||
<td><a href="{$file['download']}">{$file['name']}</a></td>
|
||
<td></td>
|
||
<td class="action"><button class="btn btn-primary">{l s='Supprimer' mod='addfileorder'}</button></td>
|
||
</tr>
|
||
</form>
|
||
{/foreach}
|
||
{else}
|
||
<tr>
|
||
<td></td>
|
||
<td>{l s='Aucun document ajouté pour cette commande' mod='addfileorder'}</td>
|
||
<td></td>
|
||
</tr>
|
||
{/if}
|
||
<form method="POST" action="#" enctype="multipart/form-data">
|
||
<tr>
|
||
<td></td>
|
||
<td>
|
||
<input id="file" type="file" name="file" class="hide" accept=".pdf">
|
||
<div class="dummyfile input-group">
|
||
<span class="input-group-addon"><i class="icon-file"></i></span>
|
||
<input id="file-name" type="text" name="filename" readonly />
|
||
<span class="input-group-btn">
|
||
<button id="file-selectbutton" type="button" name="submitAddAttachments" class="btn btn-default">
|
||
<i class="icon-folder-open"></i> {l s='Choisir le document' mod='addfileorder'}</button>
|
||
</span>
|
||
|
||
</div>
|
||
</td>
|
||
<td class="action"><button class="btn btn-default">{l s='Ajouter le document' mod='addfileorder'}</button></td>
|
||
</tr>
|
||
</form>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div> |