-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
144 additions
and
92 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,24 @@ | ||
# CHANGELOG for django-popup-view-field | ||
|
||
## 0.3.0 (2017-03-07) | ||
|
||
* Support for Django 1.11 | ||
|
||
## 0.2.0 (2017-02-20) | ||
|
||
* Remove PopupViewField from django_popup_view_field.__init__, | ||
now you must import PopupViewField from django_popup_view_field.fields | ||
* Remove PopupViewField from django_popup_view_field.__init__, | ||
now you must import PopupViewField from django_popup_view_field.fields | ||
|
||
* Sorting imports using isort | ||
* Sorting imports using isort | ||
|
||
* Checking the order of imports in the tox | ||
* Checking the order of imports in the tox | ||
|
||
* Checking support for django-bootstrap3 v8.1.0 | ||
* Checking support for django-bootstrap3 v8.1.0 | ||
|
||
* Added django-bootstrap3 v8.1.0 to tox | ||
* Added django-bootstrap3 v8.1.0 to tox | ||
|
||
* Adding version in django_popup_view_field.__init__ | ||
* Adding version in django_popup_view_field.__init__ | ||
|
||
## 0.1 (2016-12-27) | ||
|
||
* Initial version + tests + Travis CI | ||
* Initial version + tests + Travis CI |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
VERSION = (0, 2, 0) | ||
VERSION = (0, 3, 0) | ||
__version__ = ".".join(str(i) for i in VERSION) |
29 changes: 29 additions & 0 deletions
29
django_popup_view_field/templates/django_popup_view_field/popup_view_widget.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,29 @@ | ||
{% spaceless %} | ||
<div class="input-group"> | ||
<input | ||
type="{{ widget.type }}" | ||
name="{{ widget.name }}" | ||
{% if widget.value != None and widget.value != "" %} | ||
value="{{ widget.value }}" | ||
{% endif %} | ||
{% for name, value in widget.attrs.items %} | ||
{% if value != False %} | ||
{{ name }}{% if value != True %}="{{ value }}"{% endif %} | ||
{% endif %} | ||
{% endfor %} | ||
/> | ||
|
||
<div class="input-group-addon btn popup-view-btn-clear" data-target="{{ widget.attrs.id }}"> | ||
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span> | ||
</div> | ||
|
||
<div | ||
class="input-group-addon btn popup-view-btn-load" | ||
data-target="{{ widget.attrs.id }}" | ||
data-popup-dialog-title="{{ widget.popup_dialog_title }}" | ||
data-url = "{{ widget.url }}" | ||
> | ||
<span class="glyphicon glyphicon-search" aria-hidden="true"></span> | ||
</div> | ||
</div> | ||
{% endspaceless %} |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Django==1.10.5 | ||
Django==1.11b1 | ||
tox>=2.5.0 | ||
django-bootstrap3 | ||
django-crispy-forms | ||
|
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