Files
edx-platform/cms/templates/widgets/metadata-edit.html
2013-05-09 11:16:12 -04:00

16 lines
527 B
HTML

<%
import hashlib
import json
hlskey = hashlib.md5(module.location.url()).hexdigest()
%>
<% showHighLevelSource='source_code' in json_metadata_data and json_metadata_data['source_code']['explicitly_set'] %>
<% del json_metadata_data['source_code'] %>
<section class="metadata_edit" data-metadata='${json.dumps(json_metadata_data)}'/>
% if showHighLevelSource:
<a href="#hls-modal-${hlskey}" style="color:yellow;" id="hls-trig-${hlskey}" >Edit High Level Source</a>
<%include file="source-edit.html" />
% endif