diff options
Diffstat (limited to 'gstudio/templates/gstudio/addrelnform.html')
-rw-r--r-- | gstudio/templates/gstudio/addrelnform.html | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/gstudio/templates/gstudio/addrelnform.html b/gstudio/templates/gstudio/addrelnform.html new file mode 100644 index 00000000..113a450a --- /dev/null +++ b/gstudio/templates/gstudio/addrelnform.html @@ -0,0 +1,51 @@ +{% load gstudio_tags %} +{% load adminmedia grp_tags %} +<script src="{% admin_media_prefix %}jquery/jquery-1.6.2.min.js" type="text/javascript"> + +</script> +<script> +function close_window() +{ window.close() +} + + +function saverelnform() +{ +var reln=$("#res_relation").val(); +var obj=$("#res_object").val(); +var slug=$("#res_slug").val(); + +$.ajax({ + method:'POST', + url: '/gstudio/resources/addreln/form/{{meetob}}', + data: {reln:reln,obj:obj,slug:slug}, + success: function(){ + window.close() + } + }); +} + +</script> +<html> <body bgcolor="#E6E6FA"> +<form method="post" name="addrelnfrm" action="."> {% csrf_token %} +<h1>Add Relation(link) name</h1> +<h2>Title:                 +<input value="" name="reln" id="res_relation"> +<br/></h2> +<h2>Inverse Name:   +<input value="" name="obj" id="res_object"> +<br/></h2> +<h2>Slug:                 +<input value="" name="slug" id="res_slug"> +<br/></h2> +<br/>                               +<!-- +<input type="submit" id="addsavereln" name="" value="Save" ><nbsp> +--> +        +<input type="button" id="addrel" value="Save" onclick="saverelnform()"> + +<input type="submit" id="addcancelreln" name="" value="Cancel" onclick="close_window()"> +</form> +</body> +</html> |