Rename category in datalayer
cf yohanboniface/django-leaflet-storage#82
This commit is contained in:
parent
f9c16fee14
commit
e3a5263c62
4 changed files with 8 additions and 5 deletions
|
@ -91,7 +91,7 @@ fieldset.toggle.on .more_style_options {
|
|||
}
|
||||
|
||||
/* Map infos */
|
||||
.category_color {
|
||||
.datalayer_color {
|
||||
display: inline-block;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{% load umap_tags i18n %}
|
||||
<form action="{{ action_url }}" method="post" id="category_edit">
|
||||
<form action="{{ action_url }}" method="post" id="datalayer_edit">
|
||||
{% csrf_token %}
|
||||
{% for error in form.errors %}
|
||||
<small class="error">{{ error }}</small>
|
||||
|
@ -15,6 +15,6 @@
|
|||
{% include "umap/styles_fieldset.html" %}
|
||||
<input type="submit" class="button" />
|
||||
{% if delete_url %}
|
||||
<a href="{{ delete_url }}" id="delete_category_button" >{% trans "Delete" %}</a>
|
||||
<a href="{{ delete_url }}" id="delete_datalayer_button" >{% trans "Delete" %}</a>
|
||||
{% endif %}
|
||||
</form>
|
|
@ -4,7 +4,7 @@
|
|||
{{ form.no_field_errors }}
|
||||
{% foundation_field form.name %}
|
||||
{% foundation_field form.description %}
|
||||
{% foundation_field form.category %}
|
||||
{% foundation_field form.datalayer %}
|
||||
{% include "umap/styles_fieldset.html" %}
|
||||
{{ form.latlng }}
|
||||
<input type="submit" class="button" />
|
||||
|
|
|
@ -3,9 +3,10 @@ from django.conf.urls.static import static
|
|||
from django.conf.urls.i18n import i18n_patterns
|
||||
from django.conf.urls.defaults import patterns, url, include
|
||||
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
|
||||
|
||||
from django.contrib import admin
|
||||
|
||||
from leaflet_storage.views import MapShortUrl
|
||||
|
||||
from . import views
|
||||
|
||||
admin.autodiscover()
|
||||
|
@ -13,6 +14,8 @@ admin.autodiscover()
|
|||
urlpatterns = patterns('',
|
||||
(r'^admin/', include(admin.site.urls)),
|
||||
url(r'', include('social_auth.urls')),
|
||||
# We don't want it to be localized
|
||||
url(r'^m/(?P<pk>\d+)/$', MapShortUrl.as_view(), name='map_short_url'),
|
||||
)
|
||||
urlpatterns += i18n_patterns('',
|
||||
url(r'^$', views.home, name="home"),
|
||||
|
|
Loading…
Reference in a new issue