diff options
Diffstat (limited to 'alphabetlearning/templates/resources/resource_card_standard.html')
-rw-r--r-- | alphabetlearning/templates/resources/resource_card_standard.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/alphabetlearning/templates/resources/resource_card_standard.html b/alphabetlearning/templates/resources/resource_card_standard.html index 4cfa929..42bba72 100644 --- a/alphabetlearning/templates/resources/resource_card_standard.html +++ b/alphabetlearning/templates/resources/resource_card_standard.html @@ -9,35 +9,35 @@ </div> <div> <div> - <h5><a href="{% url 'resources:resource_detail' resource_id=resource.id %}">{{ resource.name }}</a> - </h5> + <a class="card-title-link" href="{% url 'resources:resource_detail' resource_id=resource.id %}">{{ resource.name }}</a> </div> - <div> + <div class="card-metadata-row"> <span>{{ resource.age_range }}</span> {% if resource.main_resource_category_name == "English as a Foreign Language (EFL)" %} - <span style="background-color: {{ resource.main_resource_category_colour_css_class }}; color: {{ resource.main_resource_badge_foreground_colour }}">EFL</span> + <span class="card-category-badge" style="background-color: {{ resource.main_resource_category_colour_css_class }}; color: {{ resource.main_resource_badge_foreground_colour }}">EFL</span> {% else %} - <span style="background-color: {{ resource.main_resource_category_colour_css_class }}; color: {{ resource.main_resource_badge_foreground_colour }}">{{ resource.main_resource_category_name }}</span> + <span class="card-category-badge" style="background-color: {{ resource.main_resource_category_colour_css_class }}; color: {{ resource.main_resource_badge_foreground_colour }}">{{ resource.main_resource_category_name }}</span> {% endif %} {% if request.user.is_authenticated and request.user.is_staff %} <span>Feature slot: {{ resource.feature_slot }}</span> {% endif %} </div> + <hr> <div> <p class="standard-card-description">{{ resource.card_description }}</p> </div> <div> - <p><small class="text-muted">1 credit</small></p> + <p><small class="card-credit">1 credit</small></p> {% if resource.in_cart %} <form action="{% url 'payments:add_to_basket' resource.id %}" method="POST"> {% csrf_token %} - <button type="submit">In basket</button> + <button type="submit" class="add-to-basket-button-disabled">In basket</button> </form> {% else %} <form action="{% url 'payments:add_to_basket' resource.id %}" method="POST"> {% csrf_token %} - <button type="submit">Add to basket</button> + <button type="submit" class="add-to-basket-button">Add to basket</button> </form> {% endif %} </div> |