[5577566] | 1 | <!DOCTYPE html>
|
---|
| 2 | <html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
|
---|
| 3 | <head>
|
---|
| 4 | <meta charset="UTF-8"/>
|
---|
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"/>
|
---|
| 6 | <title>Upload</title>
|
---|
| 7 | <!-- Bootstrap core CSS -->
|
---|
| 8 | <link href="css/bootstrap.min.css" rel="stylesheet"/>
|
---|
| 9 | <link href="css/fileUploadPreview.css" rel="stylesheet"/>
|
---|
| 10 | </head>
|
---|
| 11 | <body>
|
---|
| 12 | <header th:replace="common/navbar :: navbar"></header>
|
---|
| 13 | <br/>
|
---|
| 14 | <br/>
|
---|
| 15 | <br/>
|
---|
| 16 | <br/>
|
---|
| 17 | <div class="row">
|
---|
| 18 | <div class="col-md-4" id="left">
|
---|
| 19 | <form th:action="@{/newPost}" method="post" id="myForm" enctype="multipart/form-data" class="row g-3">
|
---|
| 20 | <div class="col-md-6">
|
---|
| 21 | <label for="title" class="form-label">Title</label>
|
---|
| 22 | <input type="text" class="form-control" id="title" name="title" required>
|
---|
| 23 | </div>
|
---|
| 24 | <div class="col-md-6">
|
---|
| 25 | <label for="fundsNeeded" class="form-label">Funds Needed</label>
|
---|
| 26 | <div class="input-group">
|
---|
| 27 | <input type="number" class="form-control" id="fundsNeeded" name="fundsNeeded" required>
|
---|
| 28 | <select class="input-group-text" name="currency">
|
---|
| 29 | <option value="MKD">MKD</option>
|
---|
| 30 | <option value="EUR">EUR</option>
|
---|
| 31 | </select>
|
---|
| 32 | </div>
|
---|
| 33 | </div>
|
---|
| 34 | <div class="col-12">
|
---|
| 35 | <label for="description" class="form-label">Description</label>
|
---|
| 36 | <textarea class="form-control" id="description" name="description" rows="5" required></textarea>
|
---|
| 37 | </div>
|
---|
| 38 | <div class="col-12">
|
---|
| 39 | Phone numbers
|
---|
| 40 | </div>
|
---|
| 41 | <div class="col-md-6">
|
---|
| 42 | <!-- <label for="telekom" class="form-label">Phone numbers</label>-->
|
---|
| 43 | <div class="input-group">
|
---|
| 44 | <input type="text" class="form-control" id="telekom" name="telekom">
|
---|
| 45 | <span class="input-group-text">Telekom</span>
|
---|
| 46 | </div>
|
---|
| 47 | </div>
|
---|
| 48 | <div class="col-md-6">
|
---|
| 49 | <!-- <label for="a1" class="form-label"></label>-->
|
---|
| 50 | <div class="input-group">
|
---|
| 51 | <input type="text" class="form-control" id="a1" name="a1">
|
---|
| 52 | <span class="input-group-text">A1</span>
|
---|
| 53 | </div>
|
---|
| 54 | </div>
|
---|
| 55 | <div class="col-md-6">
|
---|
| 56 | <label for="dateDue" class="form-label">Date due</label>
|
---|
| 57 | <input type="date" class="form-control" id="dateDue" name="dateDue" required>
|
---|
| 58 | </div>
|
---|
| 59 | <div class="col-md-6">
|
---|
| 60 | <label for="bankAccount" class="form-label">Bank account</label>
|
---|
| 61 | <input type="text" class="form-control" id="bankAccount" name="bankAccount" required>
|
---|
| 62 | </div>
|
---|
| 63 | </form>
|
---|
| 64 | </div>
|
---|
| 65 | <div class="col-md-5" id="right">
|
---|
| 66 | <div class="col-md-6">
|
---|
| 67 | <label for="titleImage" class="form-label">Title image</label>
|
---|
| 68 | <input type="file" class="form-control" id="titleImage" name="titleImage" form="myForm" required>
|
---|
| 69 | </div>
|
---|
| 70 | <div class="col-md-6">
|
---|
| 71 | <label for="images" class="form-label">Images</label>
|
---|
| 72 | <input type="file" class="form-control" id="images" name="images" form="myForm" multiple>
|
---|
| 73 | </div>
|
---|
| 74 | <div class="col-md-6">
|
---|
| 75 | <label for="images" class="form-label">Moderator images</label>
|
---|
| 76 | <input type="file" class="form-control" id="moderatorImages" name="moderatorImages" form="myForm" multiple required>
|
---|
| 77 | </div>
|
---|
| 78 | <br/>
|
---|
| 79 | <div id="drop-region">
|
---|
| 80 | <div class="drop-message">
|
---|
| 81 | Image preview
|
---|
| 82 | </div>
|
---|
| 83 | <div id="image-preview"></div>
|
---|
| 84 | </div>
|
---|
| 85 | <div class="row">
|
---|
| 86 | <div class="col-5"></div>
|
---|
| 87 | <div class="col-2">
|
---|
| 88 | <input type="submit" class="btn btn-primary" value="Upload post" form="myForm">
|
---|
| 89 | </div>
|
---|
| 90 | <div class="col-5"></div>
|
---|
| 91 | </div>
|
---|
| 92 | </div>
|
---|
| 93 | </div>
|
---|
| 94 |
|
---|
| 95 | <script src="/js/bootstrap.min.js"></script>
|
---|
| 96 | <script src="/js/fileUploadPreview.js"></script>
|
---|
| 97 | </body>
|
---|
| 98 | </html> |
---|