Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- {% load static %}
- <html lang="pl">
- <head>
- <title>Challenges</title>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
- <script src="{% static 'challenges/script.js' %}"></script>
- </head>
- <body>
- {% if latest_challenge_list %}
- <table style="width:100%" class='center'>
- <tr>
- <th>Wyzwanie</th>
- <th>ID</th>
- <th>Data Publikacji</th>
- <th>Opis</th>
- <th>Całkowita ilość dni</th>
- <th>Aktualna ilość dni</th>
- </tr>
- {% for challenge in latest_challenge_list %}
- <tr id='{{ challenge.id }}'>
- <td>{{ challenge.name }}</td>
- <td>{{ challenge.id }}</td>
- <td>{{ challenge.pub_date }}</td>
- <td>{{ challenge.desc }}</td>
- <td>{{ challenge.days }}</td>
- <td>{{ challenge.counter }}</td>
- <td><button class="btn plus-button">+</button></td>
- </tr>
- {% endfor %}
- </table>
- <form method="post" class = 'center'>
- {% csrf_token %}
- {{form.as_p}}
- <p><input type="submit" value="Dodaj!"></p>
- </form>
- {% else %}
- <p>No challenges are available.</p>
- {% endif %}
- </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement