Advertisement
MartinYanchev-99

HTML

Oct 11th, 2020
362
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. {% extends 'core/base.html'%}
  2.  
  3.  
  4. {% block content %}
  5.  
  6. <div class="flex items-center justify-center h-screen">
  7.  
  8.  
  9. <div class=" w-full max-w-xl">
  10. <form class="g-white shadow-md rounded p-20" action="/{{exercise.id}}/exercise/"method="post">
  11. {% csrf_token %}
  12. <h1 class="text-3xl text-center mb-5 ">{{exercise.name}}</h1>
  13. <div class="shadow appearance-none border rounded w-full py-4 px-4 text-gray-700 leading-tight focus:outline-none focus:shadow-outline'">
  14. <input class=" m-5 py-4 px-4" id="opt_1" type="radio" name="{{exercise.id}}" value="{{ opt_1 }}">
  15. <label for="opt_1">{{exercise.opt_1}} </label>
  16.  
  17. </div>
  18.  
  19. <div class="shadow appearance-none border rounded w-full py-4 px-4 text-gray-700 leading-tight focus:outline-none focus:shadow-outline'">
  20. <input class="m-5 py-4 px-4" id="opt_2" type="radio" name="{{exercise.id}}" value="{{ opt_2 }}">
  21. <label for="opt_2">{{exercise.opt_2}} </label>
  22.  
  23. </div>
  24. <div class="shadow appearance-none border rounded w-full py-4 px-4 text-gray-700 leading-tight focus:outline-none focus:shadow-outline'">
  25. <input class="m-5 py-4 px-4" id="opt_3" type="radio" name="{{exercise.id}}" value="{{ opt_3 }}">
  26. <label for="opt_3">{{exercise.opt_3}} </label>
  27.  
  28. </div>
  29. <div class="shadow appearance-none border rounded w-full py-4 px-4 text-gray-700 leading-tight focus:outline-none focus:shadow-outline'">
  30. <input class="m-5 py-4 px-4" id="opt_4" type="radio" name="{{exercise.id}}" value="{{ opt_4 }}">
  31. <label for="opt_4">{{exercise.opt_4}} </label>
  32.  
  33. </div>
  34.  
  35.  
  36. <button class="mt-3 bg-indigo-500 hover:bg-indigo-700 text-white font-bold py-2 px-4 border border-blue-700 rounded"" type="submit" >Check result</button>
  37. </form>
  38. </div>
  39. </div>
  40. {% endblock content%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement