Add /games page and add checkboxes for subscribing to games
This commit is contained in:
		
							
								
								
									
										29
									
								
								core/templates/games.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								core/templates/games.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,29 @@
 | 
			
		||||
{% extends "base.html" %}
 | 
			
		||||
{% block content %}
 | 
			
		||||
    <div class="container mt-4">
 | 
			
		||||
        <div class="row">
 | 
			
		||||
            {% for game in games %}
 | 
			
		||||
                <div class="col-xl-3 col-lg-4 col-md-6 col-sm-12 mb-4">
 | 
			
		||||
                    <div class="card h-100 shadow-sm">
 | 
			
		||||
                        <img src="{{ game.image_url }}"
 | 
			
		||||
                             class="card-img-top"
 | 
			
		||||
                             alt="{{ game.display_name }}">
 | 
			
		||||
                        <div class="card-body d-flex flex-column">
 | 
			
		||||
                            <h5 class="card-title">{{ game.display_name }}</h5>
 | 
			
		||||
                            <div class="mt-auto">
 | 
			
		||||
                                <div class="form-check form-switch">
 | 
			
		||||
                                    <input class="form-check-input" type="checkbox" role="switch" id="new">
 | 
			
		||||
                                    <label class="form-check-label" for="new">Notify when new</label>
 | 
			
		||||
                                </div>
 | 
			
		||||
                                <div class="form-check form-switch">
 | 
			
		||||
                                    <input class="form-check-input" type="checkbox" role="switch" id="live">
 | 
			
		||||
                                    <label class="form-check-label" for="live">Notify when farmable</label>
 | 
			
		||||
                                </div>
 | 
			
		||||
                            </div>
 | 
			
		||||
                        </div>
 | 
			
		||||
                    </div>
 | 
			
		||||
                </div>
 | 
			
		||||
            {% endfor %}
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
{% endblock content %}
 | 
			
		||||
		Reference in New Issue
	
	Block a user