changed new button, fixed mobile scaling
This commit is contained in:
parent
aca9501307
commit
271431a724
@ -5,6 +5,9 @@
|
||||
<head>
|
||||
<title>{% block title %}
|
||||
{% endblock %}</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
|
||||
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
||||
<script
|
||||
|
@ -10,9 +10,7 @@
|
||||
<div class="table-container">
|
||||
<h3>{{ title }} {% trans 'List' %}
|
||||
{% if create_url %}
|
||||
<a href="{% url create_url %}">
|
||||
<button class="btn btn-primary float-right">{% trans 'New' %} <i class="fal fa-plus-circle"></i>
|
||||
</button>
|
||||
<a href="{% url create_url %}"> <i class="fal fa-plus-circle"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
</h3>
|
||||
|
@ -6,14 +6,6 @@
|
||||
|
||||
|
||||
<div class="table-container">
|
||||
{% if create_url %}
|
||||
<a href="{% url create_url %}">
|
||||
<button class="btn btn-primary float-right">{% trans 'New' %} <i class="fal fa-plus-circle"></i>
|
||||
</button>
|
||||
</a>
|
||||
{% endif %}
|
||||
</h3>
|
||||
|
||||
{% block table %}
|
||||
<table {% render_attrs table.attrs class="table" %}>
|
||||
{% block table.thead %}
|
||||
|
Loading…
Reference in New Issue
Block a user