[743de55] | 1 | <!DOCTYPE html>
|
---|
| 2 | <html lang="en">
|
---|
| 3 | <head>
|
---|
| 4 | <meta charset="UTF-8">
|
---|
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
---|
[43c9090] | 6 | <script src="/js/cookie.js" defer></script>
|
---|
[743de55] | 7 | <link rel="stylesheet" href="/css/adminNews.css">
|
---|
| 8 | </head>
|
---|
| 9 | <body data-page="events">
|
---|
[43c9090] | 10 | <button id="authButton" style="display: none;"></button>
|
---|
[743de55] | 11 | <h2>Настани, новости...</h2>
|
---|
| 12 | <div class="news-container">
|
---|
| 13 | <div class="add-news" onclick="showForm()">+</div>
|
---|
| 14 | <div id="news-list">
|
---|
| 15 | </div>
|
---|
| 16 | </div>
|
---|
| 17 |
|
---|
| 18 | <div id="news-form" class="form-container" style="display: none;">
|
---|
| 19 | <form id="form">
|
---|
| 20 | <div id="title-part">
|
---|
| 21 | <label for="title">Наслов: </label>
|
---|
| 22 | <input type="text" id="title" required>
|
---|
| 23 | </div>
|
---|
| 24 | <div id="image-part">
|
---|
| 25 | <button id="open-popup">Прикачи слика</button>
|
---|
| 26 | <div id="main-image"></div>
|
---|
| 27 | <div id="image-popup" style="display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: white; border: 1px solid #ccc; padding: 20px; z-index: 1000;">
|
---|
| 28 | <h3>Избери слика</h3>
|
---|
| 29 | <input type="file" id="image-url" accept="image/*" required>
|
---|
| 30 | <div id="image-preview" style="display: none;"></div>
|
---|
| 31 | <button id="save-button" style="display: none;">Save Image</button>
|
---|
| 32 | <button id="cancel-button">Cancel</button>
|
---|
| 33 | </div>
|
---|
| 34 | <div id="overlay" style="display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 999;"></div>
|
---|
| 35 | </div>
|
---|
| 36 | <div id="text-part">
|
---|
| 37 | <label for="text">Содржина: </label>
|
---|
| 38 | <textarea id="text" required></textarea>
|
---|
| 39 | </div>
|
---|
| 40 | <button type="button" onclick="submitForm()" id="submit-btn">Submit</button>
|
---|
| 41 | <button type="button" onclick="hideForm()">Cancel</button>
|
---|
| 42 | </form>
|
---|
| 43 | </div>
|
---|
| 44 |
|
---|
| 45 | <script src="/js/adminNewsCoupons.js"></script>
|
---|
| 46 | </body>
|
---|
| 47 | </html>
|
---|