Advertisement
Guest User

Untitled

a guest
Apr 26th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. <!DOCTYPE html>
  2. {% load static %}
  3. <html lang="pl">
  4. <head>
  5. <title>Challenges</title>
  6. <meta charset="utf-8">
  7. <meta name="viewport" content="width=device-width, initial-scale=1">
  8. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  9. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  10. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  11.  
  12.  
  13. <script src="{% static 'challenges/script.js' %}"></script>
  14. </head>
  15.  
  16. <body>
  17. {% if latest_challenge_list %}
  18. <table style="width:100%" class='center'>
  19. <tr>
  20. <th>Wyzwanie</th>
  21. <th>ID</th>
  22. <th>Data Publikacji</th>
  23. <th>Opis</th>
  24. <th>Całkowita ilość dni</th>
  25. <th>Aktualna ilość dni</th>
  26. </tr>
  27. {% for challenge in latest_challenge_list %}
  28. <tr id='{{ challenge.id }}'>
  29. <td>{{ challenge.name }}</td>
  30. <td>{{ challenge.id }}</td>
  31. <td>{{ challenge.pub_date }}</td>
  32. <td>{{ challenge.desc }}</td>
  33. <td>{{ challenge.days }}</td>
  34. <td>{{ challenge.counter }}</td>
  35. <td><button class="btn plus-button">+</button></td>
  36. </tr>
  37. {% endfor %}
  38. </table>
  39.  
  40. <form method="post" class = 'center'>
  41. {% csrf_token %}
  42. {{form.as_p}}
  43. <p><input type="submit" value="Dodaj!"></p>
  44. </form>
  45. {% else %}
  46. <p>No challenges are available.</p>
  47. {% endif %}
  48. </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement