source: src/main/resources/templates/html/adminNews.html@ 743de55

Last change on this file since 743de55 was 743de55, checked in by macagaso <gasoskamarija@…>, 6 weeks ago

Initial commit

  • Property mode set to 100644
File size: 1.7 KB
Line 
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">
6 <link rel="stylesheet" href="/css/adminNews.css">
7</head>
8<body data-page="events">
9<h2>Настани, новости...</h2>
10<div class="news-container">
11 <div class="add-news" onclick="showForm()">+</div>
12 <div id="news-list">
13 </div>
14</div>
15
16<div id="news-form" class="form-container" style="display: none;">
17 <form id="form">
18 <div id="title-part">
19 <label for="title">Наслов: </label>
20 <input type="text" id="title" required>
21 </div>
22 <div id="image-part">
23 <button id="open-popup">Прикачи слика</button>
24 <div id="main-image"></div>
25 <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;">
26 <h3>Избери слика</h3>
27 <input type="file" id="image-url" accept="image/*" required>
28 <div id="image-preview" style="display: none;"></div>
29 <button id="save-button" style="display: none;">Save Image</button>
30 <button id="cancel-button">Cancel</button>
31 </div>
32 <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>
33 </div>
34 <div id="text-part">
35 <label for="text">Содржина: </label>
36 <textarea id="text" required></textarea>
37 </div>
38 <button type="button" onclick="submitForm()" id="submit-btn">Submit</button>
39 <button type="button" onclick="hideForm()">Cancel</button>
40 </form>
41</div>
42
43<script src="/js/adminNewsCoupons.js"></script>
44</body>
45</html>
Note: See TracBrowser for help on using the repository browser.