Advertisement
Guest User

Untitled

a guest
Jun 30th, 2019
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.30 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="utf-8">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6.     <title> Confused -.-' </title>
  7. </head>
  8. <body>
  9. <div class="content-section">
  10.  
  11.     <form action="" method="post">
  12.         {{ main_form.hidden_tag() }}
  13.         {{ main_form.title.label(class="form-control-label") }}: {{ main_form.title(class="form-control form-control-lg") }}
  14.  
  15.         {% for entry_line in main_form.entries %}
  16.             <div class="form-group">
  17.                 {{ entry_line.content.label(class="form-control-label") }}
  18.                 {{ entry_line.content.data(class="form-control form-control-lg") }}
  19.             </div>
  20.         {% endfor %}
  21.  
  22.         {# For the main form I use main_form.title(), main_form.submit(), etc - without .data(). #}
  23.         {# If I try to do main_form.title.data() I get the ex that I can't call on 'str' #}
  24.  
  25.         {# But, for entry_lines, if I don't add .data() and just use entry_line.content()  #}
  26.         {# I can see the input field, but it's prepopulated with HTML for that input instead of the value (that I see in that html) #}
  27.  
  28.         <div class="form-group">
  29.             {{ main_form.submit(class="btn btn-outline-info") }}
  30.         </div>
  31.     </form>
  32.  
  33. </div>
  34. </body>
  35. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement