Advertisement
Guest User

graph mod

a guest
Dec 13th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. {% for graphicBlock in graphicBlocks.wybierzModulGraficzny.all() %}
  2.  
  3. {% switch graphicBlock.type %}
  4. {% case "banerZeSlajdami" %}
  5. {% include "components/_news-banner.html" with {
  6. graphicBlock: graphicBlock
  7. } %}
  8.  
  9. {% case "oNas" %}
  10. {% include "home/_about.html" with {
  11. graphicBlock: graphicBlock
  12. } %}
  13.  
  14. {% case "klienciLogotypy" %}
  15. {% include "home/_clients.html" with {
  16. graphicBlock: graphicBlock
  17. } %}
  18.  
  19. {% case "formularzKontaktowy" %}
  20. {% include "home/_contact.html" with {
  21. graphicBlock: graphicBlock
  22. } %}
  23.  
  24. {% case "wybierzObszary" %}
  25. {% include "home/_fields.html" with {
  26. graphicBlock: graphicBlock
  27. } %}
  28.  
  29. {% case "socialMedia" %}
  30. {% include "home/_social.html" with {
  31. graphicBlock: graphicBlock
  32. } %}
  33.  
  34. {% case "centrumPrasowe" %}
  35. {% include "home/_news.html" with {
  36. graphicBlock: graphicBlock
  37. } %}
  38.  
  39.  
  40. {% default %}
  41.  
  42. <p>Nie ma obsługi {{ graphicBlock.type }}(moduły graficzne)</p>
  43.  
  44. {% endswitch %}
  45.  
  46. {% endfor %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement