My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads

Django application for edit model fields inline.

Quick example:

{% load inline %}
<html>                                                                  
 <head>                                                                  
	 <script type="text/javascript" src="/static/js/jquery.js"></script>        
	 <script type="text/javascript" src="/static/js/jquery.form.js"></script> 
	 <script type="text/javascript" src="/static/js/inline.js"></script>    
	 <script type="text/javascript">                                         
	 $(document).ready(function() {
	   django_inline()
	 });                               
	 </script>         
	 <style type="text/css">
      .active_edit {
      	background-color: #ffef9c;
		cursor: hand;
      }
	  .active_edit > form {
        background-color: transperent;
      }
     </style>                                                  
 </head>                                                                 
 <body>
{% editable test_object edit_this %}{{ test_object.edit_this }}{% endeditable %}

</body>                                                                 
 </html>

Next you must login as administrator (or must have rights to edit model) and press Ctrl + Enter. You will in edit mode where all editable places are merked by background. Click on this place and type new value.

All widgets came from admin settings.

For ex you can download next application (only manage.py runserver) and go to http://localhost:8000/test/. Enjoy :)

Powered by Google Project Hosting