mirror of
				https://github.com/tiyn/container-critique.git
				synced 2025-10-31 19:21:20 +01:00 
			
		
		
		
	src: logging and writing complete
This commit is contained in:
		| @@ -15,7 +15,6 @@ | ||||
|                 {{ form.password.label }}<br> | ||||
|                 {{ form.password(size=32) }} | ||||
|             </p> | ||||
|             <p>{{ form.remember_me() }} {{ form.remember_me.label }}</p> | ||||
|             <p>{{ form.submit() }}</p> | ||||
|             {% for mesg in get_flashed_messages() %} | ||||
|             <p>{{ mesg }}</p> | ||||
|   | ||||
							
								
								
									
										38
									
								
								src/templates/register.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								src/templates/register.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,38 @@ | ||||
| {% extends "template.html" %} | ||||
|  | ||||
| {% block content %} | ||||
|  | ||||
| <div class="container"> | ||||
|     <div class="logging"> | ||||
|         <h1>Register</h1> | ||||
|         <form action="" method="post" novalidate> | ||||
|             {{ form.hidden_tag() }} | ||||
|             <p> | ||||
|                 {{ form.username.label }}<br> | ||||
|                 {{ form.username(size=32) }} | ||||
|                 {% for error in form.username.errors %} | ||||
|                 <span style="color: red;">[{{ error }}]</span> | ||||
|                 {% endfor %} | ||||
|             </p> | ||||
|             <p> | ||||
|                 {{ form.password.label }}<br> | ||||
|                 {{ form.password(size=32) }} | ||||
|                 {% for error in form.password.errors %} | ||||
|                 <span style="color: red;">[{{ error }}]</span> | ||||
|                 {% endfor %} | ||||
|             </p> | ||||
|             <p> | ||||
|                 {{ form.password2.label }}<br> | ||||
|                 {{ form.password2(size=32) }} | ||||
|                 {% for error in form.password2.errors %} | ||||
|                 <span style="color: red;">[{{ error }}]</span> | ||||
|                 {% endfor %} | ||||
|             </p> | ||||
|             <p>{{ form.submit() }}</p> | ||||
|             {% for mesg in get_flashed_messages() %} | ||||
|             <p>{{ mesg }}</p> | ||||
|             {% endfor %} | ||||
|         </form> | ||||
|     </div> | ||||
| </div> | ||||
| {% endblock %} | ||||
| @@ -16,11 +16,6 @@ | ||||
|             <a href="{{ url_for('index') }}">Blog</a> | ||||
|             <a href="{{ url_for('archive') }}">Archive</a> | ||||
|             <label for="main-menu-check" class="hide-menu">X</label> | ||||
|             {% if current_user.is_anonymous %} | ||||
|             <a href="{{ url_for('login') }}">Login</a> | ||||
|             {% else %} | ||||
|             <a href="{{ url_for('logout') }}">Logout</a> | ||||
|             {% endif %} | ||||
|         </div> | ||||
|     </div> | ||||
|     <!-- Menu --> | ||||
| @@ -30,7 +25,15 @@ | ||||
|     <!-- Content --> | ||||
|     <footer> | ||||
|         <div class="center"> | ||||
|             Made with <a href="https://github.com/tiyn/container-critique">Container Critique </a>. | ||||
|             Made with <a href="https://github.com/tiyn/container-critique">Container Critique </a>.<br> | ||||
|             {% if current_user.is_anonymous %} | ||||
|             <a href="{{ url_for('login') }}">Login</a> | ||||
|             - | ||||
|             <a href="{{ url_for('register') }}">Register</a> | ||||
|             {% else %} | ||||
|             <a href="{{ url_for('logout') }}">Logout</a> | ||||
|             <a href="{{ url_for('write') }}">Write entry</a> | ||||
|             {% endif %} | ||||
|         </div> | ||||
|     </footer> | ||||
| </body> | ||||
|   | ||||
							
								
								
									
										45
									
								
								src/templates/write.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										45
									
								
								src/templates/write.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,45 @@ | ||||
| {% extends "template.html" %} | ||||
|  | ||||
| {% block content %} | ||||
|  | ||||
| <div class="container"> | ||||
|     <div class="writing"> | ||||
|         <h1>Sign In</h1> | ||||
|         <form action="" method="post" novalidate> | ||||
|             {{ form.hidden_tag() }} | ||||
|             <p> | ||||
|                 {{ form.name.label }}<br> | ||||
|                 {{ form.name(size=64) }} | ||||
|                 {% for error in form.name.errors %} | ||||
|                 <span style="color: red;">[{{ error }}]</span> | ||||
|                 {% endfor %} | ||||
|             </p> | ||||
|             <p> | ||||
|                 {{ form.date.label }}<br> | ||||
|                 {{ form.date }} | ||||
|                 {% for error in form.date.errors %} | ||||
|                 <span style="color: red;">[{{ error }}]</span> | ||||
|                 {% endfor %} | ||||
|             </p> | ||||
|             <p> | ||||
|                 {{ form.text.label }}<br> | ||||
|                 {{ form.text }} | ||||
|                 {% for error in form.text.errors %} | ||||
|                 <span style="color: red;">[{{ error }}]</span> | ||||
|                 {% endfor %} | ||||
|             </p> | ||||
|             <p> | ||||
|                 {{ form.rating.label }}<br> | ||||
|                 {{ form.rating }} | ||||
|                 {% for error in form.rating.errors %} | ||||
|                 <span style="color: red;">[{{ error }}]</span> | ||||
|                 {% endfor %} | ||||
|             </p> | ||||
|             <p>{{ form.submit() }}</p> | ||||
|             {% for mesg in get_flashed_messages() %} | ||||
|             <p>{{ mesg }}</p> | ||||
|             {% endfor %} | ||||
|         </form> | ||||
|     </div> | ||||
| </div> | ||||
| {% endblock %} | ||||
		Reference in New Issue
	
	Block a user