Commit a2f61f81 authored by Rachana's avatar Rachana

Merge branch 'alpha' of https://github.com/gnowledge/gstudio into alpha-dev

parents 8bc4ef82 13b13861
......@@ -94,11 +94,9 @@
{% trans "Create New " %} {{title}} :
{% endif %}
{% endif %}
{% comment %}
<span class="right">
<a class="tiny button radius existing-template">{% trans "Create page from existing template" %}</a>
</span>
{% endcomment %}
</span></h3>
<input tabindex="1" id="name_id" name="name" type="text" value="{{node.name}}" placeholder="Give the {{title}} a name.." {% if node.group_type %}disabled=disabled{% endif %} required>
......
{% load i18n %}
{% load cache %}
{% load ndf_tags %}
{% block head %}
<style type="text/css">
.box{
display: none;
width: 10%!important;
height: 10%!important;
}
a:hover + .box,.box:hover{
display: block;
position: relative;
z-index: 100;
}
</style>
{% endblock %}
{% block related_content %}
{% endblock %}
{% block body_content %}
<ul class="small-block-grid-1 medium-block-grid-3 large-block-grid-6" >
{% for each in templates_cur %}
<li class="template-list">
<div class="templates-div" data-content="{{each.content}}">
{{each.name}}
</div>
</li>
{% endfor %}
</ul>
{% endblock %}
<script type="text/javascript">
$(".template-list").click(function(event){
var content = $(this).children('div').attr("data-content");
CKEDITOR.instances['ckeditor_textarea'].insertHtml(content);
$('#group_imgs_on_modal').foundation('reveal', 'close');
});
</script>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment