Commit 334674ece388f0fd20aef6b730173e53ca75fc65
1 parent
1db13e59
Exists in
master
and in
5 other branches
Template to list the links in the edit topic screen [Issue:#126]
Showing
1 changed file
with
31 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,31 @@ | @@ -0,0 +1,31 @@ | ||
1 | +{% load static i18n list_topic_foruns permission_tags %} | ||
2 | +{% for link in links%} | ||
3 | + <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> | ||
5 | + | ||
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 | +{% endfor %} | ||
30 | + <div class = "row" id="divModalLink"> | ||
31 | + </div> |