locations.html 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. {% load static %}
  2. {% load crispy_forms_tags %}
  3. <html lang="en">
  4. <head>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  7. <meta name="description" content="">
  8. <meta name="author" content="">
  9. <title>SignatureCare Review Portal</title>
  10. <link rel="canonical" href="https://getbootstrap.com/docs/4.0/examples/dashboard/">
  11. <!-- Bootstrap core CSS -->
  12. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
  13. <!-- Custom styles for this template -->
  14. <link rel="stylesheet" type="text/css" href="{% static 'user-dashboard.css' %}">
  15. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
  16. <style>
  17. a:link {
  18. text-decoration: none;
  19. color: #050608;
  20. }
  21. a:visited {
  22. text-decoration: none;
  23. color: #013568;
  24. }
  25. a:hover {
  26. text-decoration: none;
  27. color: #51585e;
  28. }
  29. a:active {
  30. text-decoration: none;
  31. color: #272727;
  32. }
  33. </style>
  34. </head>
  35. <body>
  36. <nav class="navbar navbar-dark bg-dark">
  37. <div class="container">
  38. <ul class="navbar-nav px-3">
  39. <li class="nav-item text-nowrap">
  40. <a class="nav-link" href="{% url 'home-view' %}" style="color: white; font-size:20px">SignatureCare Review Portal</a>
  41. </li>
  42. </ul>
  43. <ul class="navbar-nav px-3">
  44. <li class="nav-item text-nowrap">
  45. <button style="background: center; border-color: dimgrey; padding: 7px;" type="button" class="nav-link btn btn-primary" data-toggle="modal" data-target="#fileUploadModal">Import staff</button>
  46. </li>
  47. </ul>
  48. <ul class="navbar-nav px-3">
  49. <li class="nav-item text-nowrap">
  50. <a class="nav-link" href="{% url 'logout' %}">Sign out</a>
  51. </li>
  52. </ul>
  53. </div>
  54. </nav>
  55. {% if messages %}
  56. {% for message in messages %}
  57. <div class="alert alert-{{ message.tags }} container">
  58. {{ message }}
  59. </div>
  60. {% endfor %}
  61. {% endif %}
  62. <div class="container">
  63. <div class="row">
  64. {% for loc in all_locations %}
  65. <div class="col-sm-4">
  66. <a href="{% url 'location-analytics-man' loc.location_id %}">
  67. <div class="card mt-2 mb-2 graph-card-shadow">
  68. <div class="card-header">
  69. <span style="font-size: larger; font-family: sans-serif; font-weight: bold;">{{ loc.care_name }}</span>
  70. <span style="float: right;">
  71. <i class="fa fa-hospital-o mr-2" aria-hidden="true"></i>
  72. <spen>{{ loc.location_name }}</spen>
  73. </span>
  74. </div>
  75. <div class="card-body">
  76. <table class="table">
  77. <tr>
  78. <td><i class="fa fa-google" aria-hidden="true" style="color: #ff7700; margin-left: 1rem;">oogle</i></td>
  79. <td style="color: {% if loc.last_week_pos_google_review_count == 0 %} grey {% else %} #212F3D {% endif %}"><i class="fa fa-thumbs-o-up" style="color: green;" aria-hidden="true"></i> {{ loc.last_week_pos_google_review_count }}</td>
  80. <td style="color: {% if loc.last_week_neg_google_review_count == 0 %} grey {% else %} #212F3D {% endif %}"><i class="fa fa-thumbs-o-down" style="color: red;" aria-hidden="true"></i> {{ loc.last_week_neg_google_review_count }}</td>
  81. </tr>
  82. <tr>
  83. <td><i class="fa fa-facebook" aria-hidden="true" style="color: blue; margin-left: 2rem;">acebook</i></td>
  84. <td style="color: {% if loc.last_week_pos_facebook_review_count == 0 %} grey {% else %} #212F3D {% endif %}"><i class="fa fa-thumbs-o-up" style="color: green;" aria-hidden="true"></i> {{ loc.last_week_pos_facebook_review_count }}</td>
  85. <td style="color: {% if loc.last_week_neg_facebook_review_count == 0 %} grey {% else %} #212F3D {% endif %}"><i class="fa fa-thumbs-o-down" style="color: red;" aria-hidden="true"></i> {{ loc.last_week_neg_facebook_review_count }}</td>
  86. </tr>
  87. <tr>
  88. <td><i class="fa fa-yelp" aria-hidden="true" style="color: red; margin-left: 2rem;"> Yelp</i></td>
  89. <td style="color: {% if loc.last_week_pos_yelp_review_count == 0 %} grey {% else %} #212F3D {% endif %}"><i class="fa fa-thumbs-o-up" style="color: green;" aria-hidden="true"></i> {{ loc.last_week_pos_yelp_review_count }}</td>
  90. <td style="color: {% if loc.last_week_neg_yelp_review_count == 0 %} grey {% else %} #212F3D {% endif %}"><i class="fa fa-thumbs-o-down" style="color: red;" aria-hidden="true"></i> {{ loc.last_week_neg_yelp_review_count }}</td>
  91. </tr>
  92. </table>
  93. </div>
  94. </div>
  95. </a>
  96. </div>
  97. {% endfor %}
  98. </div>
  99. <!-- Modal -->
  100. <div class="modal fade" id="fileUploadModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  101. <div class="modal-dialog">
  102. <div class="modal-content">
  103. <div class="modal-header">
  104. <h5 class="modal-title" id="exampleModalLabel">Import Excel File</h5>
  105. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  106. <span aria-hidden="true">&times;</span>
  107. </button>
  108. </div>
  109. <div class="modal-body">
  110. <form method="POST" enctype="multipart/form-data">
  111. {% csrf_token %}
  112. <fieldset class="form-group">
  113. {{ file_upload_form|crispy }}
  114. </fieldset>
  115. <div class="form-group" style="display: grid;">
  116. <button class="btn btn-outline-info" type="submit">Submit</button>
  117. </div>
  118. </form>
  119. </div>
  120. </div>
  121. </div>
  122. </div>
  123. </div>
  124. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
  125. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
  126. <nav class="navbar navbar-dark sticky-top bg-dark flex-md-nowrap mt-4">
  127. <span style="color: white;">&copy;2020 SignatureCare Review Portal. - Developed by Byte Trek Ltd. </span>
  128. </nav>
  129. </body>
  130. </html>