Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | espaco | 1 | <form class="inbox-compose form-horizontal" id="fileupload" action="#" method="POST" enctype="multipart/form-data"> |
| 2 | <div class="inbox-compose-btn"> |
||
| 3 | <button class="btn green"> |
||
| 4 | <i class="fa fa-check"></i>Send</button> |
||
| 5 | <button class="btn default inbox-discard-btn">Discard</button> |
||
| 6 | <button class="btn default">Draft</button> |
||
| 7 | </div> |
||
| 8 | <div class="inbox-form-group mail-to"> |
||
| 9 | <label class="control-label">To:</label> |
||
| 10 | <div class="controls controls-to"> |
||
| 11 | <input type="text" class="form-control" name="to"> |
||
| 12 | <span class="inbox-cc-bcc"> |
||
| 13 | <span class="inbox-cc"> Cc </span> |
||
| 14 | <span class="inbox-bcc"> Bcc </span> |
||
| 15 | </span> |
||
| 16 | </div> |
||
| 17 | </div> |
||
| 18 | <div class="inbox-form-group input-cc display-hide"> |
||
| 19 | <a href="javascript:;" class="close"> </a> |
||
| 20 | <label class="control-label">Cc:</label> |
||
| 21 | <div class="controls controls-cc"> |
||
| 22 | <input type="text" name="cc" class="form-control"> </div> |
||
| 23 | </div> |
||
| 24 | <div class="inbox-form-group input-bcc display-hide"> |
||
| 25 | <a href="javascript:;" class="close"> </a> |
||
| 26 | <label class="control-label">Bcc:</label> |
||
| 27 | <div class="controls controls-bcc"> |
||
| 28 | <input type="text" name="bcc" class="form-control"> </div> |
||
| 29 | </div> |
||
| 30 | <div class="inbox-form-group"> |
||
| 31 | <label class="control-label">Subject:</label> |
||
| 32 | <div class="controls"> |
||
| 33 | <input type="text" class="form-control" name="subject"> </div> |
||
| 34 | </div> |
||
| 35 | <div class="inbox-form-group"> |
||
| 36 | <textarea class="inbox-editor inbox-wysihtml5 form-control" name="message" rows="12"></textarea> |
||
| 37 | </div> |
||
| 38 | <div class="inbox-compose-attachment"> |
||
| 39 | <!-- The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload --> |
||
| 40 | <span class="btn green btn-outline fileinput-button"> |
||
| 41 | <i class="fa fa-plus"></i> |
||
| 42 | <span> Add files... </span> |
||
| 43 | <input type="file" name="files[]" multiple> </span> |
||
| 44 | <!-- The table listing the files available for upload/download --> |
||
| 45 | <table role="presentation" class="table table-striped margin-top-10"> |
||
| 46 | <tbody class="files"> </tbody> |
||
| 47 | </table> |
||
| 48 | </div> |
||
| 49 | <script id="template-upload" type="text/x-tmpl"> {% for (var i=0, file; file=o.files[i]; i++) { %} |
||
| 50 | <tr class="template-upload fade"> |
||
| 51 | <td class="name" width="30%"> |
||
| 52 | <span>{%=file.name%}</span> |
||
| 53 | </td> |
||
| 54 | <td class="size" width="40%"> |
||
| 55 | <span>{%=o.formatFileSize(file.size)%}</span> |
||
| 56 | </td> {% if (file.error) { %} |
||
| 57 | <td class="error" width="20%" colspan="2"> |
||
| 58 | <span class="label label-danger">Error</span> {%=file.error%}</td> {% } else if (o.files.valid && !i) { %} |
||
| 59 | <td> |
||
| 60 | <p class="size">{%=o.formatFileSize(file.size)%}</p> |
||
| 61 | <div class="progress progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"> |
||
| 62 | <div class="progress-bar progress-bar-success" style="width:0%;"></div> |
||
| 63 | </div> |
||
| 64 | </td> {% } else { %} |
||
| 65 | <td colspan="2"></td> {% } %} |
||
| 66 | <td class="cancel" width="10%" align="right">{% if (!i) { %} |
||
| 67 | <button class="btn btn-sm red cancel"> |
||
| 68 | <i class="fa fa-ban"></i> |
||
| 69 | <span>Cancel</span> |
||
| 70 | </button> {% } %}</td> |
||
| 71 | </tr> {% } %} </script> |
||
| 72 | <!-- The template to display files available for download --> |
||
| 73 | <script id="template-download" type="text/x-tmpl"> {% for (var i=0, file; file=o.files[i]; i++) { %} |
||
| 74 | <tr class="template-download fade"> {% if (file.error) { %} |
||
| 75 | <td class="name" width="30%"> |
||
| 76 | <span>{%=file.name%}</span> |
||
| 77 | </td> |
||
| 78 | <td class="size" width="40%"> |
||
| 79 | <span>{%=o.formatFileSize(file.size)%}</span> |
||
| 80 | </td> |
||
| 81 | <td class="error" width="30%" colspan="2"> |
||
| 82 | <span class="label label-danger">Error</span> {%=file.error%}</td> {% } else { %} |
||
| 83 | <td class="name" width="30%"> |
||
| 84 | <a href="{%=file.url%}" title="{%=file.name%}" data-gallery="{%=file.thumbnail_url&&'gallery'%}" download="{%=file.name%}">{%=file.name%}</a> |
||
| 85 | </td> |
||
| 86 | <td class="size" width="40%"> |
||
| 87 | <span>{%=o.formatFileSize(file.size)%}</span> |
||
| 88 | </td> |
||
| 89 | <td colspan="2"></td> {% } %} |
||
| 90 | <td class="delete" width="10%" align="right"> |
||
| 91 | <button class="btn default btn-sm" data-type="{%=file.delete_type%}" data-url="{%=file.delete_url%}" {% if (file.delete_with_credentials) { %} data-xhr-fields='{"withCredentials":true}' {% } %}> |
||
| 92 | <i class="fa fa-times"></i> |
||
| 93 | </button> |
||
| 94 | </td> |
||
| 95 | </tr> {% } %} </script> |
||
| 96 | <div class="inbox-compose-btn"> |
||
| 97 | <button class="btn green"> |
||
| 98 | <i class="fa fa-check"></i>Send</button> |
||
| 99 | <button class="btn default">Discard</button> |
||
| 100 | <button class="btn default">Draft</button> |
||
| 101 | </div> |
||
| 102 | </form> |