feat(ui): modern send update page with page header and styled form
This commit is contained in:
		
							parent
							
								
									f2d225c56a
								
							
						
					
					
						commit
						17fe0bf79f
					
				
					 1 changed files with 29 additions and 34 deletions
				
			
		|  | @ -1,37 +1,32 @@ | |||
| <!DOCTYPE html> | ||||
| <html lang="en"> | ||||
| {% extends "base.html" %} | ||||
| {% block title %}Send Update{% endblock %} | ||||
| {% block content %} | ||||
|   <div class="page-header"> | ||||
|     <div> | ||||
|       <h1 class="page-title">Send Update</h1> | ||||
|       <p class="page-subtitle">Send an email update to all subscribers</p> | ||||
|     </div> | ||||
|     <div class="page-actions"> | ||||
|       <a href="{{ url_for('index') }}" class="button button-secondary">Dashboard</a> | ||||
|     </div> | ||||
|   </div> | ||||
| 
 | ||||
| <head> | ||||
|   <meta charset="UTF-8"> | ||||
|   <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||||
|   <title>Admin Center - Send Update</title> | ||||
|   <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}"> | ||||
| </head> | ||||
|   <div class="card"> | ||||
|     <form action="{{ url_for('send_update') }}" method="POST" class="form"> | ||||
|       <div class="form-group"> | ||||
|         <label for="subject">Subject</label> | ||||
|         <input type="text" name="subject" id="subject" required /> | ||||
|       </div> | ||||
| 
 | ||||
| <body> | ||||
|   <h1>Send Update Email</h1> | ||||
|   <p> | ||||
|     <a href="{{ url_for('index') }}">Back to Subscribers List</a> | | ||||
|     <a href="{{ url_for('logout') }}">Logout</a> | ||||
|   </p> | ||||
|   {% with messages = get_flashed_messages() %} | ||||
|     {% if messages %} | ||||
|       {% for message in messages %} | ||||
|         <div class="flash">{{ message }}</div> | ||||
|       {% endfor %} | ||||
|     {% endif %} | ||||
|   {% endwith %} | ||||
|       <div class="form-group"> | ||||
|         <label for="body">Body (HTML allowed)</label> | ||||
|         <textarea name="body" id="body" rows="12" required | ||||
|           placeholder="<h1>Title</h1><p>Your content...</p>"></textarea> | ||||
|       </div> | ||||
| 
 | ||||
|   <form action="{{ url_for('send_update') }}" method="POST"> | ||||
|     <label for="subject">Subject:</label> | ||||
|     <input type="text" name="subject" required> | ||||
| 
 | ||||
|     <label for="body">Body (HTML allowed):</label> | ||||
|     <textarea name="body" rows="10" required></textarea> | ||||
| 
 | ||||
|     <button type="submit">Send Update</button> | ||||
|   </form> | ||||
| 
 | ||||
| </body> | ||||
| 
 | ||||
| </html> | ||||
|       <div class="form-actions"> | ||||
|         <button type="submit" class="button button-primary">Send Update</button> | ||||
|       </div> | ||||
|     </form> | ||||
|   </div> | ||||
| {% endblock %} | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Cipher Vance
						Cipher Vance