|
1 | 1 | % if(~ $#posts_users_only 0 || check_user $groups_allowed_posts) { |
2 | 2 | <noscript> |
3 | 3 | <div> |
4 | | - <form action="" method="POST"> |
| 4 | + <form action="" method="POST" enctype="multipart/form-data"> |
5 | 5 | <div class="input-field"> |
6 | 6 | <textarea name="comment" id="comment" class="materialize-textarea validate" required="" length="%($charlimit%)" maxlength="%($charlimit%)"></textarea> |
7 | 7 | <label for="comment">Message</label> |
|
12 | 12 | <label for="tags">Tags (comma separated)</label> |
13 | 13 | </div> |
14 | 14 |
|
15 | | - <!-- <div class="input-field file-field"> |
| 15 | + <div class="input-field file-field"> |
16 | 16 | <div class="btn pink"> |
| 17 | + <i class="mdi mdi-attachment left"></i> |
17 | 18 | <span>File</span> |
18 | | - <input type="file"> |
| 19 | + <input type="file" name="file"> |
19 | 20 | </div> |
20 | 21 | <div class="file-path-wrapper"> |
21 | | - <input class="file-path validate" type="text"> |
| 22 | + <input class="file-path validate" type="text" placeholder="<%(`{echo $filesizelimit | humanize}%)"> |
22 | 23 | </div> |
23 | | - </div> --> |
24 | | -
|
25 | | - <div class="input-field"> |
26 | | - <input type="text" placeholder="https://example.com/image.png" name="file" id="file"> |
27 | | - <label for="file">Attachment (<%(`{echo $filesizelimit | humanize}%))</label> |
28 | 24 | </div> |
29 | 25 |
|
30 | 26 | <div class="input-field"> |
|
39 | 35 | </noscript> |
40 | 36 |
|
41 | 37 | <div id="modalpost" class="yesscript modal"> |
42 | | - <form action="" method="POST" onsubmit="$('#postprog').show()"> |
| 38 | + <form action="" method="POST" enctype="multipart/form-data" onsubmit="$('#postprog').show()"> |
43 | 39 | <div class="modal-content"> |
44 | 40 | <div class="input-field"> |
45 | 41 | <textarea name="comment" id="comment" class="materialize-textarea validate" required="" length="%($charlimit%)" maxlength="%($charlimit%)"></textarea> |
|
75 | 71 | </script> |
76 | 72 | <br /><a onclick="toggleAdvanced()" class="waves-effect btn-flat" style="padding: 0 0.75rem">Advanced <i class="mdi mdi-chevron-down" id="advancedArrow"></i></a> |
77 | 73 | <div id="advanced"> |
78 | | - <!-- <div class="input-field file-field"> |
| 74 | + <div class="input-field file-field"> |
79 | 75 | <div class="btn pink"> |
| 76 | + <i class="mdi mdi-attachment left"></i> |
80 | 77 | <span>File</span> |
81 | | - <input type="file"> |
| 78 | + <input type="file" name="file"> |
82 | 79 | </div> |
83 | 80 | <div class="file-path-wrapper"> |
84 | | - <input class="file-path validate" type="text"> |
| 81 | + <input class="file-path validate" type="text" placeholder="<%(`{echo $filesizelimit | humanize}%)"> |
85 | 82 | </div> |
86 | | - </div> --> |
87 | | - |
88 | | - <br /><br /> |
89 | | - <div class="input-field"> |
90 | | - <input type="text" placeholder="https://example.com/image.png" name="file" id="file"> |
91 | | - <label for="file">Attachment (<%(`{echo $filesizelimit | humanize}%))</label> |
92 | 83 | </div> |
93 | 84 |
|
94 | 85 | <div class="input-field"> |
|
0 commit comments