Commit 9cea8fe7c23feb3e8d21a0d14ddd2fc14993efec
1 parent
f9cdc1b6
Exists in
master
and in
5 other branches
Removing the modal to view link that was in the template of the templatetag, and…
… Fixing create Link [Issue:#120]
Showing
1 changed file
with
6 additions
and
24 deletions
Show diff stats
courses/templates/topic/link_topic_list.html
1 | {% load static i18n list_topic_foruns permission_tags %} | 1 | {% load static i18n list_topic_foruns permission_tags %} |
2 | +<div id="list-topic{{ topic.id }}-links"> | ||
2 | {% for link in links%} | 3 | {% for link in links%} |
3 | - <li><i class="fa fa-link" aria-hidden="true"></i> <a href="#" data-toggle="modal" data-target="#linksModal{{slug}}{{ forloop.counter }}">{{link}}</a></li> | ||
4 | - <!--MODAL VIEW LINK--> | ||
5 | - <div class="modal fade" id="linksModal{{slug}}{{ forloop.counter}}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> | ||
6 | - <div class="modal-dialog" role="document"> | ||
7 | - <div class="modal-content"> | ||
8 | - <div class="modal-header"> | ||
9 | - <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> | ||
10 | - <h4 class="modal-title" id="myModalLabel">Link</h4> | ||
11 | - </div> | ||
12 | - <div class="modal-body"> | ||
13 | - <!-- Card --> | ||
14 | - <article class="card animated fadeInLeft"> | ||
15 | - <div class="card-block"> | ||
16 | - <b class="card-title">{{link.name}}</b><p></p> | ||
17 | - <p class="card-text"> </p><p>{{link.link_description}}</p> | ||
18 | - <a href="{{ link.link_url }}" class="btn btn-primary">Read more</a> | ||
19 | - </div> | ||
20 | - </article> | ||
21 | - <!-- .end Card --> | ||
22 | - </div> | ||
23 | - </div> | ||
24 | - </div> | ||
25 | - </div> | ||
26 | - <!-- EndModal --> | 4 | + <li><i class="fa fa-link" aria-hidden="true"></i> <a href="javascript:get_modal_link('{% url 'course:links:view_link' link.slug %}', '#viewLinkModal','#divModalLink')">{{link}}</a></li> |
27 | {% endfor %} | 5 | {% endfor %} |
6 | +</div> | ||
7 | +<div class = 'row' id ="divModalLink"> | ||
8 | + | ||
9 | +</div> |