diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-09-12 12:26:38 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-09-12 12:26:38 +0200 |
| commit | b199c46d6c26f8918d0de5589031b575c9521016 (patch) | |
| tree | 79c1007d33e7a54c62e6408ecc2768ad5bcda8d9 /chimere/templates/blocks/bootstrap-modal.html | |
| parent | 9e4d5ae38fe310ea4748b7b3e94b8967b995269e (diff) | |
| download | Chimère-b199c46d6c26f8918d0de5589031b575c9521016.tar.bz2 Chimère-b199c46d6c26f8918d0de5589031b575c9521016.zip | |
Bootstrap templatetag for modal
Diffstat (limited to 'chimere/templates/blocks/bootstrap-modal.html')
| -rw-r--r-- | chimere/templates/blocks/bootstrap-modal.html | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/chimere/templates/blocks/bootstrap-modal.html b/chimere/templates/blocks/bootstrap-modal.html index d476d5b..e800ec9 100644 --- a/chimere/templates/blocks/bootstrap-modal.html +++ b/chimere/templates/blocks/bootstrap-modal.html @@ -1,14 +1,22 @@ -<div class="modal fade" id="{{id}}" tabindex="-1" role="dialog" +{% load i18n %}<div class="modal fade" id="{{id}}" tabindex="-1" role="dialog" aria-labelledby="{{id}}-label" aria-hidden="true"> - <div class="modal-dialog{% ifequal size 'large'%} modal-lg{% endifequal %}"> + <div role="document" class="modal-dialog{% ifequal size 'small'%} modal-sm{% endifequal %}{% ifequal size 'large'%} modal-lg{% endifequal %}"> <div class="modal-content"> <div class="modal-header"> + {% if title %}<h5 class="modal-title" id="{{id}}-label"> {{title}}</h5>{% endif %} <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> - {% if title %}<h4 class="modal-title" id="{{id}}-label">{{title}}</h4>{% endif %} </div> <div class="modal-body"> {{content}} </div> + <div class="modal-footer"> + <button type="button" class="btn btn-secondary" data-dismiss="modal"> + {% trans "Close" %} + </button> + {% if edit %}<button type="button" class="btn btn-primary"> + {% trans "Edit" %} + </button>{% endif %} + </div> </div> </div> </div> |
