Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add feedback form to answer detail page #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

add feedback form to answer detail page #3

wants to merge 1 commit into from

Conversation

dave2205
Copy link
Collaborator

No description provided.

@dave2205 dave2205 requested a review from capsert April 30, 2024 09:25
help_text=_("(0 = not clear, 5 = very clear)"), null=True, blank=True
)
reliability_grade = models.PositiveSmallIntegerField(
verbose_name=_("Do you find this KlimaatHelpdesk article reliable?"),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hier staat nog KlimaatHelpdesk

user_email = models.EmailField(
verbose_name=_("Email"),
help_text=_("We will forward the expert's response when we receive it."),
null=True,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

null=True hoeft nooit bij textvelden met blank. Blank zorgt er voor dat het db veld gevuld wordt met een lege string ("")

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dit geldt voor alle text/char velden in dit model.

required=True,
)
reliability_grade = forms.IntegerField(
label=_("Do you find this KlimaatHelpdesk article reliable?*"),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hier staat nog KlimaatHelpdesk


template = "feedback/feedback_form_page.html"
context = self.get_context(request)
Answer = apps.get_model(app_label='cms', model_name='Answer')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Waarom haal je op deze manier het model op? ipv gewoon importeren?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

omdat ik wagtail_helpdesk nog via pip install -e had geinstalleerd en dan werkt importeren niet. ik pas het aan.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants