Subversion Repositories Integrator Subversion

Rev

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