Reposition scripts in title section
</transition>
</script>
<!-- app -->
+
+ {% if communities_enabled %}
<div id="modal-app">
{# <button id="show-modal" @click="showModal = true">Show Modal</button>#}
<!-- use the modal component, pass in the prop -->
<div slot="header">Title Assistant</div>
<p slot="body">
- MODAL CONTENT<br/>
+ <div id="title-assistant"></div>
+
</p>
</modal>
</div>
</div>
-
+ <script type="application/javascript">
+ // contents here are required by topics.js
+ const topics_from_page = JSON.parse("{{ topics_json }}");
+ {#console.log(topics_from_page)#}
+ </script>
+ <script src="{{ STATIC_URL }}js/dual-listbox.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}js/modal.js"></script>
-
+ {% endif %}
<form action="/hsapi/_internal/{{ cm.short_id }}/title/{{ cm.metadata.title.id }}/update-metadata/"
id="id-title"
method="post">
<div id="div_id_value" class="control-group">
<div class="controls"><input class="form-control input-sm textinput textInput"
id="txt-title"
- onclick="titleClick()"
+ {% if communities_enabled %} onclick="titleClick()" {% endif %}
maxlength="300" name="value" type="text"
value="{{ cm.metadata.title }}"></div>
</div>
</style>
{##}
{# <script type="text/javascript" src="{{ STATIC_URL }}js/vue-2.6.10-dev.js"></script>#}
- <script type="application/javascript">
- // contents here are required by topics.js
- const topics_from_page = JSON.parse("{{ topics_json }}");
- {#console.log(topics_from_page)#}
- </script>
+
{# <script type="text/javascript" src="{{ STATIC_URL }}js/topics.js"></script> this is for the edit part TODO move this#}
{# <script src="{{ STATIC_URL }}js/jquery-1.11.2-min.js"></script>#}
<script src="{{ STATIC_URL }}js/Sortable.min.js"></script>
<script src="{{ STATIC_URL }}js/vue-mover.js"></script>
- <script src="{{ STATIC_URL }}js/dual-listbox.js"></script>
+
{% endblock %}
{% endif %}
