diff options
author | anuja <anuja@labadmin-Vostro1510.(none)> | 2012-07-18 16:54:40 +0530 |
---|---|---|
committer | anuja <anuja@labadmin-Vostro1510.(none)> | 2012-07-18 16:54:40 +0530 |
commit | 0e1ae1d29b9ce5b9b55984d5f2207ddef3fa187d (patch) | |
tree | 17e08c495fe135c6a1958818cb15241f5344d9b1 /demo | |
parent | 70558a843bf579d0ec62c9acbd98e249bdaf8103 (diff) | |
download | gnowsys-0e1ae1d29b9ce5b9b55984d5f2207ddef3fa187d.tar.gz |
Added "metatypes" field to some tables in models
Diffstat (limited to 'demo')
-rw-r--r-- | demo/grappelli/templates/admin/change_form.html | 156 |
1 files changed, 78 insertions, 78 deletions
diff --git a/demo/grappelli/templates/admin/change_form.html b/demo/grappelli/templates/admin/change_form.html index 7228290..84c3504 100644 --- a/demo/grappelli/templates/admin/change_form.html +++ b/demo/grappelli/templates/admin/change_form.html @@ -15,121 +15,121 @@ {% url admin:jsi18n as jsi18nurl %} <script type="text/javascript" src="{{ jsi18nurl|default:'../../../jsi18n/' }}"></script> <script src="{% admin_media_prefix %}js/grappelli/jquery.grp_inline.js" type="text/javascript"></script> -{% if change %} - <script type="text/javascript" src="{{STATIC_URL}}gstudio/js/URI.js"></script> +<!-- {% if change %} --> +<!-- <script type="text/javascript" src="{{STATIC_URL}}gstudio/js/URI.js"></script> --> - <script type="text/javascript" charset="utf-8"> - (function($){ - $(document).ready(function() { - $("#id_relationtype").change(function() { +<!-- <script type="text/javascript" charset="utf-8"> --> +<!-- (function($){ --> +<!-- $(document).ready(function() { --> +<!-- $("#id_relationtype").change(function() { --> - p = $("#id_relationtype").val() - test="?id=" + p; +<!-- p = $("#id_relationtype").val() --> +<!-- test="?id=" + p; --> - var url = new URI("ajaxleft/?id=" )+ test; - var smpl_uri = new URI("/admin/gstudio/relation/ajaxleft/?id=11"); +<!-- var url = new URI("ajaxleft/?id=" )+ test; --> +<!-- var smpl_uri = new URI("/admin/gstudio/relation/ajaxleft/?id=11"); --> - var blah = new URI(test); - var url = blah.resolve(smpl_uri); +<!-- var blah = new URI(test); --> +<!-- var url = blah.resolve(smpl_uri); --> - $.get(url, - function(data){ +<!-- $.get(url, --> +<!-- function(data){ --> - $("#id_left_subject").empty() +<!-- $("#id_left_subject").empty() --> - for (var key in data) { +<!-- for (var key in data) { --> - $('#id_left_subject').append( - $('<option></option>').val(key).html(data[key]) - ); - } - }); +<!-- $('#id_left_subject').append( --> +<!-- $('<option></option>').val(key).html(data[key]) --> +<!-- ); --> +<!-- } --> +<!-- }); --> - url = "ajaxright/?id=" + test - var some_uri = new URI("/admin/gstudio/relation/ajaxright/?id=11"); +<!-- url = "ajaxright/?id=" + test --> +<!-- var some_uri = new URI("/admin/gstudio/relation/ajaxright/?id=11"); --> - var blah = new URI(test); - var url = blah.resolve(some_uri); +<!-- var blah = new URI(test); --> +<!-- var url = blah.resolve(some_uri); --> - $.get(url, - function(data){ +<!-- $.get(url, --> +<!-- function(data){ --> - $("#id_right_subject").empty() +<!-- $("#id_right_subject").empty() --> - for (var key in data) { +<!-- for (var key in data) { --> - $('#id_right_subject').append( - $('<option></option>').val(key).html(data[key]) - ); - } - }); +<!-- $('#id_right_subject').append( --> +<!-- $('<option></option>').val(key).html(data[key]) --> +<!-- ); --> +<!-- } --> +<!-- }); --> - }); - }); - })(django.jQuery); +<!-- }); --> +<!-- }); --> +<!-- })(django.jQuery); --> - </script> -{% else %} - <script type="text/javascript" src="{{STATIC_URL}}gstudio/js/URI.js"></script> - <script type="text/javascript" charset="utf-8"> - (function($){ - $(document).ready(function() { - $("#id_relationtype").change(function() { +<!-- </script> --> +<!-- {% else %} --> +<!-- <script type="text/javascript" src="{{STATIC_URL}}gstudio/js/URI.js"></script> --> +<!-- <script type="text/javascript" charset="utf-8"> --> +<!-- (function($){ --> +<!-- $(document).ready(function() { --> +<!-- $("#id_relationtype").change(function() { --> - p = $("#id_relationtype").val() - test="?id=" + p; - var url = new URI("ajaxleft/?id=" )+ test; - var some_uri = new URI("/admin/gstudio/relation/add/ajaxleft/?id=11"); +<!-- p = $("#id_relationtype").val() --> +<!-- test="?id=" + p; --> +<!-- var url = new URI("ajaxleft/?id=" )+ test; --> +<!-- var some_uri = new URI("/admin/gstudio/relation/add/ajaxleft/?id=11"); --> - var blah = new URI(test); - var url = blah.resolve(some_uri); +<!-- var blah = new URI(test); --> +<!-- var url = blah.resolve(some_uri); --> - $.get(url, - function(data){ +<!-- $.get(url, --> +<!-- function(data){ --> - $("#id_left_subject").empty() +<!-- $("#id_left_subject").empty() --> - for (var key in data) { +<!-- for (var key in data) { --> - $('#id_left_subject').append( - $('<option></option>').val(key).html(data[key]) - ); - } - }); +<!-- $('#id_left_subject').append( --> +<!-- $('<option></option>').val(key).html(data[key]) --> +<!-- ); --> +<!-- } --> +<!-- }); --> - url = "ajaxright/?id=" + test - var some_uri = new URI("/admin/gstudio/relation/add/ajaxright/?id=11"); +<!-- url = "ajaxright/?id=" + test --> +<!-- var some_uri = new URI("/admin/gstudio/relation/add/ajaxright/?id=11"); --> - var blah = new URI(test); - var url = blah.resolve(some_uri); +<!-- var blah = new URI(test); --> +<!-- var url = blah.resolve(some_uri); --> - $.get(url, - function(data){ +<!-- $.get(url, --> +<!-- function(data){ --> - $("#id_right_subject").empty() +<!-- $("#id_right_subject").empty() --> - for (var key in data) { +<!-- for (var key in data) { --> - $('#id_right_subject').append( - $('<option></option>').val(key).html(data[key]) - ); - } - }); +<!-- $('#id_right_subject').append( --> +<!-- $('<option></option>').val(key).html(data[key]) --> +<!-- ); --> +<!-- } --> +<!-- }); --> - }); - }); - })(django.jQuery); +<!-- }); --> +<!-- }); --> +<!-- })(django.jQuery); --> - </script> -{% endif %} +<!-- </script> --> +<!-- {% endif %} --> <script type="text/javascript" charset="utf-8"> (function($) { @@ -231,7 +231,7 @@ <form {% if has_file_field %}enctype="multipart/form-data" {% endif %}action="{{ form_url }}" method="post" id="{{ opts.module_name }}_form">{% csrf_token %}{% block form_top %}{% endblock %} <div> <!-- Popup Hidden Field --> - {% if is_popup %}tretret<input type="hidden" name="_popup" value="1" />{% endif %} + {% if is_popup %}<input type="hidden" name="_popup" value="1" />{% endif %} <!-- Submit-Row --> {% if save_on_top %}{% submit_row %}{% endif %} |