Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <title> Confused -.-' </title>
- </head>
- <body>
- <div class="content-section">
- <form action="" method="post">
- {{ main_form.hidden_tag() }}
- {{ main_form.title.label(class="form-control-label") }}: {{ main_form.title(class="form-control form-control-lg") }}
- {% for entry_line in main_form.entries %}
- <div class="form-group">
- {{ entry_line.content.label(class="form-control-label") }}
- {{ entry_line.content.data(class="form-control form-control-lg") }}
- </div>
- {% endfor %}
- {# For the main form I use main_form.title(), main_form.submit(), etc - without .data(). #}
- {# If I try to do main_form.title.data() I get the ex that I can't call on 'str' #}
- {# But, for entry_lines, if I don't add .data() and just use entry_line.content() #}
- {# 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) #}
- <div class="form-group">
- {{ main_form.submit(class="btn btn-outline-info") }}
- </div>
- </form>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement