Files
edx-platform/cms/templates/widgets/metadata-edit.html

18 lines
617 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'] %>
% if 'source_code' in json_metadata_data:
<% del json_metadata_data['source_code'] %>
% endif
<div class="wrapper-comp-settings metadata_edit" id="settings-tab" 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