Adding placeholder text in the presentation proposal form #1

Closed
Jason van Gumster wants to merge 16 commits from (deleted):proposal_placeholders into staging

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
5 changed files with 16 additions and 2 deletions

2
.gitignore vendored
View File

@ -6,5 +6,5 @@
*.sock *.sock
*.pid *.pid
*.python-version *.python-version
/conference/settings.py.backup
99_vault.yaml 99_vault.yaml

View File

@ -29,6 +29,10 @@ INSTALLED_APPS.append('storages')
SITE_ID = int(os.environ.get('SITE_ID')) SITE_ID = int(os.environ.get('SITE_ID'))
INSTALLED_APPS.append('storages')
SITE_ID = 2
BLENDER_ID = { BLENDER_ID = {
# MUST end in a slash: # MUST end in a slash:
'BASE_URL': os.environ.get('BASE_URL'), 'BASE_URL': os.environ.get('BASE_URL'),

View File

@ -37,7 +37,11 @@ class PresentationForm(forms.ModelForm):
class MessageForm(forms.Form): class MessageForm(forms.Form):
message = forms.CharField(widget=forms.Textarea) message = forms.CharField(widget=forms.Textarea(
attrs={'placeholder': '''
(Main Stage, 20 minutes)\n\nThis totally awesome talk is going to be about...
'''
))
class FestivalEntryForm(forms.ModelForm): class FestivalEntryForm(forms.ModelForm):

View File

@ -10,4 +10,9 @@ a.whoosh.whoosh-page(href="{% url 'admin:flatpages_flatpage_change' flatpage.id
| {% block content_main %} | {% block content_main %}
.flatpage .flatpage
| {{ flatpage.content }} | {{ flatpage.content }}
| {% endblock content_main %} | {% endblock content_main %}
| {% block site_footer %}
| {% include "conference_main/components/sponsors.pug" %}
| {% endblock site_footer %}

View File

@ -1,4 +1,5 @@
import logging import logging
from datetime import datetime
from django import urls from django import urls
from django.contrib import messages from django.contrib import messages