Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplifiying things for backend templating
- Loading branch information
Felipe Álvarez
committed
Apr 1, 2016
1 parent
82e83aa
commit d4da8b3
Showing
3 changed files
with
24 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
{% extends "base.html" %} | ||
{% load staticfiles %} | ||
{% load i18n %} | ||
{% load thumbnail %} | ||
{% load bootstrap_tags %} | ||
|
||
{% block content %} | ||
{% endblock content %} | ||
|
||
{% block extrajs %} | ||
$(function(){ | ||
$('.loadFromUrl').on('show.bs.modal', function (event) { | ||
var anchor = $(event.relatedTarget) // Button that triggered the modal | ||
var modal = $(this) | ||
var body = modal.find('.modal-body'); | ||
body.load(anchor.data('url')); | ||
}) | ||
}); | ||
{% endblock extrajs %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters