1

HTML テンプレートの上部には次のものが含まれます。

{% load inplace_edit %}

ヘッダー部分は次のとおりです。

{% inplace_static %}

それから私の体の内容で私はやっています:

{% inplace_edit "action.action_state" %}

しかし、それは機能していません。私はインストールしました:

'bootstrap3',
'inplaceeditform_bootstrap',   # it is very important that this app is placed before inplaceeditform and inplaceeditform_extra_fields
'inplaceeditform',
'inplaceeditform_extra_fields',
'bootstrap3_datetime',

'django.template.loaders.eggs.Loader',有効と無効の両方を試しました。

クリック可能なテキストとして表示されますが、クリック/ダブルクリックしても何も起こりません。どうすれば機能しますか?

ありがとう、

ヘック

4

1 に答える 1

1

After trying @Goin's suggestion I found that my JQuery files were not being correctly imported. had to move:

<script type="text/javascript" charset="utf-8" src="{% static 'srt/js/jquery-1.10.2.min.js' %}"></script>
<script type="text/javascript" charset="utf-8" src="{% static 'srt/js/jquery-ui.min.js' %}"></script>

to the top of my header block. Anyone working with Bootstrap, please make sure you import JQuery as the first thing in your templates.

Thanks

于 2013-11-13T17:55:29.023 に答える