Commit 56c82153 by Calen Pennington

Fix up cms after changing html and sequence descriptors to use metadata

parent 7be2deca
...@@ -33,8 +33,8 @@ ...@@ -33,8 +33,8 @@
</section> </section>
</section> </section>
<textarea name="" class="edit-box" rows="8" cols="40">${module.definition['data']['text']}</textarea> <textarea name="" class="edit-box" rows="8" cols="40">${module.definition['data']}</textarea>
<div class="preview">${module.definition['data']['text']}</div> <div class="preview">${module.definition['data']}</div>
<div class="actions wip"> <div class="actions wip">
<a href="" class="save-update">Save &amp; Update</a> <a href="" class="save-update">Save &amp; Update</a>
......
...@@ -40,8 +40,8 @@ ...@@ -40,8 +40,8 @@
<header> <header>
<h1><a href="#" class="module-edit" id="${week.location.url()}">${week.name}</a></h1> <h1><a href="#" class="module-edit" id="${week.location.url()}">${week.name}</a></h1>
<ul> <ul>
% if week.goals: % if 'goals' in week.metadata:
% for goal in week.goals: % for goal in week.metadata['goals']:
<li class="goal editable">${goal}</li> <li class="goal editable">${goal}</li>
% endfor % endfor
% else: % else:
......
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