Commit 9a561cd9 authored by hypsug0's avatar hypsug0
Browse files

refactor:move vue-select assets to common head

parent 96ded26a
......@@ -25,9 +25,11 @@
<link rel="stylesheet" href="{% static 'css/bs3_custom_theme/theme.css' %}" />
<link rel="stylesheet" href="{% static 'css/bootstrap-datetimepicker.min.css' %}" />
<link rel="stylesheet" href="{% static 'css/datatables.min.css' %}" />
<link rel="stylesheet" href="https://unpkg.com/vue-select@latest/dist/vue-select.css">
<script src="{% static 'js/jquery/jquery.min.js' %}"></script>
<script src="{% static 'js/bootstrap.min.js' %}" defer></script>
<script src="{% static 'js/vue.js' %}" defer></script>
<script src="https://unpkg.com/vue-select@latest" defer></script>
<script src="https://cdn.jsdelivr.net/npm/vee-validate@latest/dist/vee-validate.js" defer></script>
<script src="{% static 'js/vue2-autocomplete.js' %}" defer></script>
<link href="{% static 'css/vue2-autocomplete.css' %}" rel="stylesheet">
......
......@@ -223,7 +223,7 @@
{% endif %}
<a href="{% url 'sights:sighting_edit_form' pk=object.pk %}"
class="pull-right btn btn-primary btn-xs"><i
class="fi-plus"></i><span class="hidden-xs"> Ajouter</span></a>
class="fi-plus"></i><span class="hidden-xs"> Éditer</span></a>
</div>
<h4><i
class="{{ sightingicon | safe }}"></i> {{ sightingtitle | safe }}</a>
......
......@@ -16,7 +16,7 @@
<div class="panel panel-primary">
<div class="panel-heading">
<div class="pull-right btn-group">
<a href="{% url 'sights:sighting_update' pk=object.pk %}" class="btn btn-default btn-xs"><i
<a href="{% url 'sights:sighting_edit_form' pk=object.session.pk %}" class="btn btn-default btn-xs"><i
class="fa fa-edit fa-fw"></i><span class="hidden-xs"> Modifier</span></a>
<a href="{% url 'sights:sighting_delete' pk=object.pk %}" class="btn btn-danger btn-xs"><i
class="fa fa-trash fa-fw"></i><span class="hidden-xs"> Supprimer</span></a>
......
......@@ -9,9 +9,6 @@ Observations de la session {{object.name}}
</style>
<script src="https://unpkg.com/vue-select@latest"></script>
<link rel="stylesheet" href="https://unpkg.com/vue-select@latest/dist/vue-select.css">
<div id="sessionSightingEdit">
<div id="sessionSightingEditTitle" class="col-12">
<h1><i class="{{ icon | safe }}"></i> {{ title | safe }} <span v-if="initialDataLoaded"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment