Найти - Пользователи
Полная версия: inlines внутри fieldsets. Возможно?
Начало » Django » inlines внутри fieldsets. Возможно?
1
Ziberbulger
Возможно ли (желательно средствами in-the-box, но не критично) вложить inlines внутрь fieldsets и их заколапсить (collapse)?
Ziberbulger
в админке ессесно
Ziberbulger
Небольшой скрипт решил вопрос:
jQuery(function($) {
$('.inline-group').wrap('<fieldset class="module aligned collapse collapsed"></fieldset>')
$.each($('.inline-group .module h2'), function() {
label = '<h2>' + $(this).html() + '</h2>';
$(this).parent().parent().parent().before(label);
$(this).remove();
}
);
})
Теперь все inlines выглядят точно также как fieldsets
romankrv
try dojo
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB