Skip to content

Commit

Permalink
Merge branch 'feed_form_review' of github.com:Xpirix/qgis-feed into u…
Browse files Browse the repository at this point in the history
…se_webpack_bulma
  • Loading branch information
Xpirix committed Oct 23, 2023
2 parents 4d5d5ab + 74b0d5d commit 17ef400
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion qgisfeedproject/qgisfeed/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from .models import QgisFeedEntry
from .languages import LANGUAGES

from django.utils import timezone

class FeedEntryFilterForm(forms.Form):
"""
Expand Down Expand Up @@ -111,6 +111,7 @@ class Meta:

publish_from = forms.CharField(
required=False,
initial=timezone.now(),
widget=forms.DateTimeInput(
attrs={
'type': 'datetime-local',
Expand All @@ -120,6 +121,7 @@ class Meta:
)
publish_to = forms.CharField(
required=False,
initial=timezone.now() + timezone.timedelta(days=30),
widget=forms.DateTimeInput(
attrs={
'type': 'datetime-local',
Expand Down
3 changes: 1 addition & 2 deletions qgisfeedproject/static/js/feed_item_form.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ var languagePreview = document.getElementById("languagePreview");
var spatialFilterPreview = document.getElementById("spatialFilterPreview");
var publishFromPreview = document.getElementById("publishFromPreview");
var publishToPreview = document.getElementById("publishToPreview");
var imagePreview = document.getElementById("imagePreview");

var imageFileName = document.getElementById("imageFileName");

Expand Down Expand Up @@ -52,7 +51,7 @@ imageField.addEventListener("change", function () {
} else {
item.innerHTML = "";
imageFileName.innerHTML =
"<i>No image choosed. Click here to add an image.</i>";
"<i>No image chosen. Click here to add an image.</i>";
}
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
{% if form.image.value %}
{{ form.image.value.name }}
{% else %}
<i>No image choosed. Click here to add an image.</i>
<i>No image chosen. Click here to add an image.</i>
{% endif %}
</span>
</label>
Expand Down

0 comments on commit 17ef400

Please sign in to comment.