Commit edf89a57 authored by Rachana's avatar Rachana

Merge pull request #1244 from katkamrachana/course_player

Minor updates on CoursePlayer
parents 80444bb1 92a4ecac
......@@ -68,11 +68,11 @@
</small>
</section>
<section class="medium-3 columns name-section" >
<span><a class="tiny publish-btn button" href="{% url 'create_event_group' group_id 'CourseEventGroup' %}?cnode_id={{node.pk}}">{% trans "Announce" %}</a></span>
{% if node_type == "Course" %}
{% check_is_gstaff groupid request.user as is_gstaff %}
{% if is_gstaff %}
<span><a class="tiny publish-btn button" href="{% url 'create_event_group' group_id 'CourseEventGroup' %}?cnode_id={{node.pk}}">{% trans "Announce" %}</a></span>
<span><a class="tiny button" href="{% url 'create_course_struct' group_id node.pk %}">{% if course_structure_exists %}{% trans "Edit Course Structure" %}{% else %}{% trans "Add Course Structure" %}{% endif %}</a></span>
{% endif %}
{% endif %}
......
......@@ -279,7 +279,7 @@
<b>{% trans "Actions" %}</b><br/>
<div class="row">
<div class="medium-6 columns">
<a href="{% url 'edit_event_group' groupid 'CourseEventGroup' %}" class="tiny button round edit"><i class="fi-pencil"></i> {% trans "Edit CourseEvent" %}</a>
<a href="{% url 'edit_event_group' groupid 'CourseEventGroup' %}" class="hide tiny button round edit"><i class="fi-pencil"></i> {% trans "Edit CourseEvent" %}</a>
<br>
<br>
{% if "CourseEventGroup" in node.member_of_names_list%}
......
......@@ -1739,6 +1739,7 @@ def group_dashboard(request, group_id=None):
# Call to get_neighbourhood() is required for setting-up property_order_list
group_obj.get_neighbourhood(group_obj.member_of)
course_structure_exists = False
files_cur = None
list_of_sg_member_of = get_sg_member_of(group_obj._id)
# print "\n\n list_of_sg_member_of", list_of_sg_member_of
files_cur = None
......
......@@ -308,10 +308,13 @@ def create_edit_page(request, group_id, node_id=None):
page_type = request.POST.getlist("type_of",'')
ce_id = request.POST.get("ce_id",'')
res = request.POST.get("res",'')
print "\n\n res", res
if res:
res = eval(res)
if ce_id:
blogpage_gst = node_collection.one({'_type': "GSystemType", 'name': "Blog page"})
page_node.type_of = [blogpage_gst._id]
if res == None:
blogpage_gst = node_collection.one({'_type': "GSystemType", 'name': "Blog page"})
page_node.type_of = [blogpage_gst._id]
page_node.status = u"PUBLISHED"
else:
if page_type:
......
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