-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/898-podglad-edycji-opisu-bib' into dev
- Loading branch information
Showing
5 changed files
with
151 additions
and
0 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{% extends "bare.html" %} | ||
|
||
{% block extratitle %} | ||
Szybki podgląd | ||
{% endblock %} | ||
|
||
{% block body %} | ||
<p></p> | ||
<div class="grid-container"> | ||
<div class="grid-x"> | ||
<div class="large-12 cell"> | ||
|
||
<div style="float: right"> | ||
<input type="button" onclick="window.close();" value="Zamknij"/> | ||
</div> | ||
|
||
{% if template_okay %} | ||
<p>Szablon przeanalizowany poprawnie. Poniżej znajdziesz listę {{ ile_ostatnich_prac }} ostatnio zmienionych rekordów | ||
w BPP z opisem bibliograficznym wyrenderowanym za pomocą nowego szablonu. Po zweryfikowaniu, | ||
czy wszystko działa zgodnie z zamierzeniami możesz zamknąć to okno i zapisać szablon -- | ||
wówczas nastąpi stopniowe przebudowanie wszystkich opisów bibliograficznych. | ||
</p> | ||
<ol> | ||
{% for elem in lista_prac %} | ||
<li>{{ elem }}</li> | ||
{% endfor %} | ||
</ol> | ||
{% else %} | ||
<p> | ||
Wystąpił błąd podczas analizy szablonu. | ||
</p><p> | ||
Przyczyna: <strong>{{ exception }}</strong> | ||
</p><p> | ||
Popraw szablon i spróbuj ponownie. | ||
</p> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} |
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
10 changes: 10 additions & 0 deletions
10
src/django_bpp/templates/admin/dbtemplates/template/change_form.html
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,10 @@ | ||
{% extends "admin/change_form.html" %} | ||
|
||
{% block object-tools-items %} | ||
{% if original.name == "opis_bibliograficzny.html" %} | ||
<li> | ||
<a onclick="window.open('../../preview/?template='+encodeURIComponent(django.jQuery('#id_content').val()), 'preview', 'width=600,height=400'); return false;" | ||
>Szybki podgląd</a></li> | ||
{% endif %} | ||
{{ block.super }} | ||
{% endblock %} |