Revert "Remove unnecessary views"
This reverts commit 8b336164362bada541f1dbac48dd46419638d5f5.
This commit is contained in:
		
							parent
							
								
									99923ae97d
								
							
						
					
					
						commit
						775e6146ab
					
				
							
								
								
									
										11
									
								
								app/views/passwords/edit.html.erb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								app/views/passwords/edit.html.erb
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,11 @@
 | 
				
			|||||||
 | 
					<%# Copyright (C) 2024 Manuel Bustillo %>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<h1>Update your password</h1>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<%= tag.div(flash[:alert], style: "color:red") if flash[:alert] %>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<%= form_with url: password_path(params[:token]), method: :put do |form| %>
 | 
				
			||||||
 | 
					  <%= form.password_field :password, required: true, autocomplete: "new-password", placeholder: "Enter new password", maxlength: 72 %><br>
 | 
				
			||||||
 | 
					  <%= form.password_field :password_confirmation, required: true, autocomplete: "new-password", placeholder: "Repeat new password", maxlength: 72 %><br>
 | 
				
			||||||
 | 
					  <%= form.submit "Save" %>
 | 
				
			||||||
 | 
					<% end %>
 | 
				
			||||||
							
								
								
									
										10
									
								
								app/views/passwords/new.html.erb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								app/views/passwords/new.html.erb
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,10 @@
 | 
				
			|||||||
 | 
					<%# Copyright (C) 2024 Manuel Bustillo %>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<h1>Forgot your password?</h1>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<%= tag.div(flash[:alert], style: "color:red") if flash[:alert] %>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<%= form_with url: passwords_path do |form| %>
 | 
				
			||||||
 | 
					  <%= form.email_field :email_address, required: true, autofocus: true, autocomplete: "username", placeholder: "Enter your email address", value: params[:email_address] %><br>
 | 
				
			||||||
 | 
					  <%= form.submit "Email reset instructions" %>
 | 
				
			||||||
 | 
					<% end %>
 | 
				
			||||||
							
								
								
									
										13
									
								
								app/views/sessions/new.html.erb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								app/views/sessions/new.html.erb
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,13 @@
 | 
				
			|||||||
 | 
					<%# Copyright (C) 2024 Manuel Bustillo %>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<%= tag.div(flash[:alert], style: "color:red") if flash[:alert] %>
 | 
				
			||||||
 | 
					<%= tag.div(flash[:notice], style: "color:green") if flash[:notice] %>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<%= form_with url: session_path do |form| %>
 | 
				
			||||||
 | 
					  <%= form.email_field :email_address, required: true, autofocus: true, autocomplete: "username", placeholder: "Enter your email address", value: params[:email_address] %><br>
 | 
				
			||||||
 | 
					  <%= form.password_field :password, required: true, autocomplete: "current-password", placeholder: "Enter your password", maxlength: 72 %><br>
 | 
				
			||||||
 | 
					  <%= form.submit "Sign in" %>
 | 
				
			||||||
 | 
					<% end %>
 | 
				
			||||||
 | 
					<br>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<%= link_to "Forgot password?", new_password_path %>
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user