|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="ru" dir="ltr"> |
| 3 | + <head> |
| 4 | + <meta charset="utf-8"> |
| 5 | + <title></title> |
| 6 | + |
| 7 | + <link href=" https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" |
| 8 | + rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" |
| 9 | + crossorigin="anonymous"> |
| 10 | + <link rel="stylesheet" href="/static/css/styles.css"> |
| 11 | + <link rel="stylesheet" type="text/css" href="/static/fonts/font-awesome-4.7.0/font-awesome-4.7.0/css/font-awesome.min.css"> |
| 12 | + <link rel="stylesheet" type="text/css" href="/static/fonts/font-awesome-4.7.0/font-awesome-4.7.0/fonts/fontawesome-webfont.ttf"> |
| 13 | + <link rel="stylesheet" type="text/css" href="/static/fonts/Comfortaa/Comfortaa.ttf"> |
| 14 | + <link rel="preconnect" href="https://fonts.googleapis.com"> |
| 15 | + <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> |
| 16 | + <link href="https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&display=swap" rel="stylesheet"> |
| 17 | + </head> |
| 18 | + <body style="font-family: 'Helvetica';"> |
| 19 | + |
| 20 | +<div class="container-fluid main" style="min-height: 100vh; max-width:100%; padding-left: 0px; padding-right: 0px;"> |
| 21 | + <nav class="navbar navbar-expand-md navbar-dark" style="background-color: #7406A4; max-width: 100%;"> |
| 22 | + <div class="container-fluid" style="max-width: 100%;"> |
| 23 | + <!-- <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation"> |
| 24 | + <span class="navbar-toggler-icon"></span> |
| 25 | + </button> --> |
| 26 | + <div class="collapse navbar-collapse" id="navbarNavAltMarkup"> |
| 27 | + <div class="navbar-nav"> |
| 28 | + <a class="nav-link active" aria-current="page" href="#">Главная</a> |
| 29 | + <a class="nav-link" href="my_map.html">Карта</a> |
| 30 | + <a class="nav-link" href="aboutProject.html">О Проекте</a> |
| 31 | + <a class="nav-link" href="contacts.html">Контакты</a> |
| 32 | + </div> |
| 33 | + </div> |
| 34 | + |
| 35 | + <div class="row"> |
| 36 | + <div class="col"> |
| 37 | + <form action="log_out" > |
| 38 | + <a href="/" class="btn btn-primary buttoncustom">Выход</a> |
| 39 | + </form> |
| 40 | + </div> |
| 41 | + </div> |
| 42 | + </div> |
| 43 | + |
| 44 | + </nav> |
| 45 | + |
| 46 | + |
| 47 | + <div style="padding-top: 50px; padding-bottom: 20px;"> |
| 48 | + <div class="text-center"> |
| 49 | + <h1 class="display2" style="color: #7406A4;font-family: 'Helvetica';">Личный кабинет</h1> |
| 50 | + </div> |
| 51 | + <p></p> |
| 52 | + <p></p> |
| 53 | + </div> |
| 54 | + |
| 55 | + <div class="container center"> |
| 56 | + <div class="card cardcustom" style="background-color: rgba(215, 194, 220, 0.2); font-family: 'Helvetica';"> |
| 57 | + <!-- <div class="column"> --> |
| 58 | + <div class="row"> |
| 59 | + |
| 60 | + <div class="col-md-4" style="margin-top: 15px;"> |
| 61 | + <div class="d-grid gap-2 col-6 mx-auto"> |
| 62 | + <img src="/static/img/user_icon_svg.svg" style="height: 235px; width:180px; margin-bottom: 20px;"> |
| 63 | + |
| 64 | + <a href="/create_application" class="btn btn-primary buttoncustom" style="width:180px; background-color: #CA3732; border: #CA3732;">Создать обращение</a> |
| 65 | + <a href="/user_applications" class="btn btn-primary buttoncustom" style="width:180px;">Мои обращения</a> |
| 66 | + <a href="/user_votes" class="btn btn-primary buttoncustom" style="width:180px;">Мои голоса</a> |
| 67 | + <p> </p> |
| 68 | + </div> |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + </div> |
| 73 | + |
| 74 | + |
| 75 | + <div class="col-md-6" style="padding: 15px;"> |
| 76 | + |
| 77 | + <div class="row"> |
| 78 | + <div class="col-md-1"> |
| 79 | + <label class="text infostyles">Имя:</label> |
| 80 | + </div> |
| 81 | + <div class="col-md-6 offset-2"> |
| 82 | + <label class="text" style="font-size: 22px;">{{ user_name }}</label> |
| 83 | + </div> |
| 84 | + <p> </p> |
| 85 | + </div> |
| 86 | + |
| 87 | + <div class="row"> |
| 88 | + <div class="col-md-1"> |
| 89 | + <label class="text infostyles" >Телефон:</label> |
| 90 | + </div> |
| 91 | + <div class="col-md-6 offset-2"> |
| 92 | + <label class="text" style="font-size: 22px;">{{ user_mobile }}</label> |
| 93 | + </div> |
| 94 | + <p> </p> |
| 95 | + </div> |
| 96 | + |
| 97 | + <div class="row"> |
| 98 | + <div class="col-md-1"> |
| 99 | + <label class="text infostyles">Город:</label> |
| 100 | + </div> |
| 101 | + <div class="col-md-6 offset-2"> |
| 102 | + <label class="text" style="font-size: 22px;">{{ user_city }}</label> |
| 103 | + </div> |
| 104 | + <p> </p> |
| 105 | + </div> |
| 106 | + |
| 107 | + <div class="row"> |
| 108 | + <div class="col-md-1"> |
| 109 | + <label class="text infostyles">Адрес:</label> |
| 110 | + </div> |
| 111 | + <div class="col-md-6 offset-2"> |
| 112 | + <label class="text" style="font-size: 22px;">{{ user_address }}</label> |
| 113 | + </div> |
| 114 | + <p> </p> |
| 115 | + </div> |
| 116 | + |
| 117 | + <div class="row"> |
| 118 | + <div class="col-md-1"> |
| 119 | + <label class="text infostyles">Пол:</label> |
| 120 | + </div> |
| 121 | + <div class="col-md-6 offset-2"> |
| 122 | + <label class="text" style="font-size: 22px;">{{ user_sex }}</label> |
| 123 | + </div> |
| 124 | + <p> </p> |
| 125 | + </div> |
| 126 | + |
| 127 | + <div class="row"> |
| 128 | + <div class="col-md-1"> |
| 129 | + <label class="text infostyles">Роль:</label> |
| 130 | + </div> |
| 131 | + <div class="col-md-6 offset-2"> |
| 132 | + <label class="text" style="font-size: 22px;">{{ user_role }}</label> |
| 133 | + </div> |
| 134 | + <p> </p> |
| 135 | + </div> |
| 136 | + </div> |
| 137 | + </div> |
| 138 | + </div> |
| 139 | + </div> |
| 140 | + |
| 141 | + |
| 142 | + <div class="container" style="padding-top: 50px;padding-bottom: 25px;"> |
| 143 | + <div class="text-center"> |
| 144 | + <p> </p> |
| 145 | + <h1 style="color: #7406A4">Список обращений</h1> |
| 146 | + </div> |
| 147 | + </div> |
| 148 | + |
| 149 | + <div class="container"> |
| 150 | + <div class="column" > |
| 151 | + {% for article in applications %} |
| 152 | + <form action="/account_page" class="row g-3" method="post"> |
| 153 | + <div class="card cardcustom"> |
| 154 | + <div class="row g-0"> |
| 155 | + <div class="col-md-8"> |
| 156 | + <div class="card-body"> |
| 157 | + <h5 class="card-title text-left">{{article.location}}</h5> |
| 158 | + <p class="date"><small class="text-muted">{{article.date.strftime("%Y-%m-%d")}}</small></p> |
| 159 | + |
| 160 | + <div class="card-text"> |
| 161 | + <p class=""> {{article.description}} |
| 162 | + </p> |
| 163 | + </div> |
| 164 | + <div class="card-text"> |
| 165 | + <p class=""> {{article.role}} |
| 166 | + </p> |
| 167 | + </div> |
| 168 | + |
| 169 | + <input type="hidden" name="card_id" value={{article.crossroad_id}}> |
| 170 | + |
| 171 | + |
| 172 | + <div class="row"> |
| 173 | + <div class="col"> |
| 174 | +{# <a class="btn btn-primary buttoncustom" style="background-color: #CA3732; border: none;">Поддержать</a>#} |
| 175 | + <button type="submit" class="btn btn-primary buttoncustom" style="background-color: #CA3732; border: none;">Поддержать</button> |
| 176 | + </div> |
| 177 | + <div class="col"> |
| 178 | + <h6 > <label style="font-weight: bold;">Количество голосов:</label> {{article.votes_number}}</h6> |
| 179 | + </div> |
| 180 | + |
| 181 | + <div class="col"> |
| 182 | + <h6 > <label style="font-weight: bold;">Текущий статус:</label> {{article.status.lower()}}</h6> |
| 183 | + </div> |
| 184 | + |
| 185 | + </div> |
| 186 | + |
| 187 | + </div> |
| 188 | + </div> |
| 189 | + <div class="col-md-4" style="display:flex; align-items:center;"> |
| 190 | + <!-- <img src="/static/img/map1.png" alt="" style="width: 400px;" class="img-fluid rounded"> --> |
| 191 | + <!-- <img src="https://yandex.ru/maps/?ll=30.310182,59.951059&z=12&l=map"> --> |
| 192 | + <div style="width: 200px; height: 150px;"> |
| 193 | + <script type="text/javascript" charset="utf-8" src="https://api-maps.yandex.ru/services/constructor/1.0/js/?um=constructor%3A053bd947d462cc1a45aeba4070defff75501905071c0eaf68436ac9976ec698c&width=400&height=180&lang=ru_RU&apikey=<API-ключ>"></script> |
| 194 | + </div> |
| 195 | + |
| 196 | + </div> |
| 197 | + </div> |
| 198 | + |
| 199 | + </div> |
| 200 | + </form> |
| 201 | + {% endfor %} |
| 202 | + </div> |
| 203 | + </div> |
| 204 | + |
| 205 | + </div> |
| 206 | + |
| 207 | + <script type="text/javascript" src="/static/js/main.js"></script> |
| 208 | + |
| 209 | + </body> |
| 210 | +</html> |
0 commit comments