app/Resources/views/group/upload-modal.html.twig line 1

Open in your IDE?
  1. <div class="modal fade" id="uploadModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  2.   <div class="modal-dialog">
  3.     <div class="modal-content">
  4.       <div class="modal-header">
  5.         <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  6.         <h4 class="modal-title" id="myModalLabel">{{'attachments.upload'|trans}}</h4>
  7.       </div>
  8.       <div class="modal-body">
  9.         <button class="btn btn-default btn-sm upload-img" style="height:33px;" type="button" data-url="{{ path('group_upload', {group:'user'}) }}"  >{{'attachments.upload.upload_btn'|trans}}</button>
  10.         {{ 'attachments.upload.upload_tips'|trans|raw }}
  11.         <table id="block-table" class="table table-striped table-condensed mtl">
  12.           <tr >
  13.           <th width="60%">{{'attachments.upload.file_name'|trans}}</th>
  14.           <th>{{'attachments.upload.description'|trans}}</th>
  15.           <th>{{setting('coin').coin_name|default('')}}</th>
  16.           <th>{{'attachments.upload.operations'|trans}}</th>
  17.           </tr>
  18.           {% if thread|default(null) %}
  19.           {% for attach in attachs %}
  20.             <tr id="file-{{attach.id}}">
  21.               <td><label class="control-label"><span class="glyphicon glyphicon-folder-close"></span> {{attach.title}}</label></td>
  22.               <td><input type="hidden" name="id[]" value="{{attach.fileId}}"/><input type="text" class="form-control" name="description[]" title="{{attach.title}}" value="{{attach.description}}"></td>
  23.               <td><input type="text" name="coin[]" class="form-control" value="{{attach.coin}}"></td>
  24.               <td><button type="button" class="del-file btn btn-default" data-id="{{attach.id}}">{{'attachments.upload.delete_btn'|trans}}</button></td>
  25.             </tr>
  26.           {% endfor %}
  27.         {% endif %}
  28.         </table>
  29.       </div>
  30.       <div class="modal-footer">
  31.           <div class="pull-left color-gray">{{'attachments.upload.tips'|trans({'%name%':setting('coin').coin_name|default('')})}}
  32.           </div>
  33.         <button type="button" class="btn btn-default" data-dismiss="modal">{{'form.btn.cancel'|trans}}</button>
  34.         <button type="button" class="btn btn-primary" id="sure">{{'form.btn.confirm'|trans}}</button>
  35.       </div>
  36.     </div>
  37.   </div>
  38. </div>