Commit e245a0dddd1376d551534dd8a1c7d27c693f3870
1 parent
9cea8fe7
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
4 additions
and
26 deletions
Show diff stats
courses/templates/topic/link_topic_list_edit.html
1 | 1 | {% load static i18n list_topic_foruns permission_tags %} |
2 | +<div id="list-topic{{ topic.id }}-links-edit"> | |
2 | 3 | {% for link in links%} |
4 | + | |
3 | 5 | <li class="icon_edit_remove"> <a href="#" data-toggle="modal" data-target="#linksModalEdit"><i class="fa fa-pencil fa-lg" aria-hidden="true"></i></a> <a href="#" data-toggle="modal" data-target="#removeLink"><i class="fa fa-trash fa-lg" aria-hidden="true"></i></a></li> |
4 | - <li><i class="fa fa-link" aria-hidden="true"></i> <a href="#" data-toggle="modal" data-target="#linksModal{{slug}}{{ forloop.counter }}">{{link}}</a></li> | |
6 | + <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> | |
5 | 7 | |
6 | - <!--MODAL VIEW LINK--> | |
7 | - <div class="modal fade" id="linksModal{{slug}}{{ forloop.counter}}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> | |
8 | - <div class="modal-dialog" role="document"> | |
9 | - <div class="modal-content"> | |
10 | - <div class="modal-header"> | |
11 | - <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> | |
12 | - <h4 class="modal-title" id="myModalLabel">Link</h4> | |
13 | - </div> | |
14 | - <div class="modal-body"> | |
15 | - <!-- Card --> | |
16 | - <article class="card animated fadeInLeft"> | |
17 | - <div class="card-block"> | |
18 | - <b class="card-title">{{link.name}}</b><p></p> | |
19 | - <p class="card-text"> </p><p>{{link.link_description}}</p> | |
20 | - <a href="{{ link.link_url }}" class="btn btn-primary">Read more</a> | |
21 | - </div> | |
22 | - </article> | |
23 | - <!-- .end Card --> | |
24 | - </div> | |
25 | - </div> | |
26 | - </div> | |
27 | - </div> | |
28 | - <!-- EndModal --> | |
29 | 8 | {% endfor %} |
30 | - <div class = "row" id="divModalLink"> | |
31 | - </div> | |
9 | +</div> | ... | ... |