-
Notifications
You must be signed in to change notification settings - Fork 239
Expand file tree
/
Copy pathitem_editor.html
More file actions
57 lines (50 loc) · 2.12 KB
/
item_editor.html
File metadata and controls
57 lines (50 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{% extends "admin/change_form.html" %}
{% load i18n admin_modify admin_urls static %}
{% block extrahead %}{{ block.super }}
{% block feincms_jquery_ui %}
{% include "admin/feincms/load-jquery.include" %}
{% endblock %}
<link rel="stylesheet" type="text/css" href="{% static 'feincms/item_editor.css' %}">
<script type="text/javascript" src="{% static 'feincms/item_editor.js' %}"></script>
{% include "admin/feincms/_messages_js.html" %}
{% include "admin/feincms/_regions_js.html" %}
{% include "admin/feincms/_content_type_buttons.html" %}
{% for inc in model.feincms_item_editor_includes.head %}{% include inc %}{% endfor %}
<script type="text/javascript">
feincms.jQuery(document).ready(function($){
{% block extra-init-js %}{# /* do not use this block, use feincms_item_editor_includes instead */ #}{% endblock %}
});
</script>
{% endblock %}
{% block form_top %}
{% with original.available_translations as translations %}
{% for translation in translations %}
{# look for something the translation extension's available_translations method might return #}
{% if translation.id %}
{% if forloop.first %}
<div style="float: right;padding: 5px 0 0 0" id="available_translations">
{% trans "available translations" %}:
{% endif %}
<a href="{% url opts|admin_urlname:'change' translation.id|admin_urlquote %}" title="{{ translation }}">{{ translation.language|upper }}</a>{% if not forloop.last %},{% endif %}
{% if forloop.last %}
</div>
<script type="text/javascript">
feincms.jQuery(function($){
$('#id_language').parent().prepend($('#available_translations'));
});
</script>
{% endif %}
{% endif %}{% endfor %}
{% endwith %}
{% endblock %}
{% block after_related_objects %} {# as good a place as any... #}
{{ block.super }}
<div id="content-editor-fieldset" style="display: none">
{% include "admin/feincms/content_editor.html" %}
</div>
<script type="text/javascript">
feincms.jQuery(function($){
$("h2:contains('{{ FEINCMS_CONTENT_FIELDSET_NAME }}')").parent().replaceWith($("#feincmsmain_wrapper"));
});
</script>
{% endblock %}