mirror of
				https://github.com/fspc/BikeShed-1.git
				synced 2025-10-31 08:55:36 -04:00 
			
		
		
		
	Created new dashboard index
*Added js for logging out button *WIP
This commit is contained in:
		
							parent
							
								
									a84b0e0fe7
								
							
						
					
					
						commit
						ecb5083f1c
					
				| @ -0,0 +1,9 @@ | ||||
| $("#index_logout").click(function(){ | ||||
|   $.ajax({ | ||||
|     type: "DELETE", | ||||
|     url: $("#index_logout").data("url"), | ||||
|     complete: function(){ | ||||
|       window.location.href="/"; | ||||
|     } | ||||
|   }); | ||||
| }); | ||||
							
								
								
									
										21
									
								
								app/views/site/index.html.haml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								app/views/site/index.html.haml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,21 @@ | ||||
| = stylesheet_link_tag "bootstrap_and_overrides", :media => "all" | ||||
| %h2 Dashboard | ||||
| 
 | ||||
| %p | ||||
|   %p | ||||
|     %a{class: "btn btn-lg btn-block btn-primary"} Add Time Entry | ||||
|   %p | ||||
|     %a{class: "btn btn-lg btn-block btn-primary"} View Timesheet | ||||
|   %p | ||||
|     %a{class: "btn btn-lg btn-block btn-primary"} Add Bike | ||||
| 
 | ||||
| %p Your Bikes: | ||||
| %ol | ||||
|   %li Bike 1 | ||||
|   %li Bike 2 | ||||
| 
 | ||||
| %p | ||||
|   %p | ||||
|     %a{class: "btn btn-lg btn-block btn-primary", href: admin_index_path} Admin View | ||||
|   %p | ||||
|     %input{id: "index_logout", value: "Logout", type: "button", class: "btn btn-lg btn-block btn-danger", "data-url" => destroy_user_session_path } | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user