Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom view and table with inherit styles from jet #2

Open
Maytrovato opened this issue Feb 13, 2019 · 0 comments
Open

Custom view and table with inherit styles from jet #2

Maytrovato opened this issue Feb 13, 2019 · 0 comments

Comments

@Maytrovato
Copy link

Maytrovato commented Feb 13, 2019

I need to create a custom view for an app and I'm showing the data in a generic table tag. Is it possible to inherit the styles from JET?

{% extends "admin/base_site.html" %}
{% load static %}

{% compress css %}
<link href="{% static 'jet/css/_tables.scss' %}" rel="stylesheet" type="text/x-scss">
{% endcompress %}

{% block content %}

<table class="table" border="1">
    <thead>
        <th>Sample head</th>
    </thead>
    <tbody>
        {% for row in rows %}
        <tr>
            <td>{{ row.attribute }}</td>
        </tr>
        {% endfor %}
    </tbody>
</table>

{% endblock %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant