Skip to content

#216 add FAQ section#429

Merged
sdelquin merged 10 commits intopythoncanarias:mainfrom
mhered:216-Add-FAQ-section
Oct 26, 2021
Merged

#216 add FAQ section#429
sdelquin merged 10 commits intopythoncanarias:mainfrom
mhered:216-Add-FAQ-section

Conversation

@mhered
Copy link
Copy Markdown
Contributor

@mhered mhered commented Oct 25, 2021

Add FAQ section #216.

  • add faq to INSTALLED_APPS in main/settings.py
  • add faq to APPS constant in gulp/config.js
  • add a link to faq in the main menu in apps/commons/templates/header.html
  • add URL in main/urls.py and apps/faq/urls.py
  • add faq_list view in apps/faq/views.py
  • create basic templates base.html and faq_list.html in
    /apps/faq/templates/faq/
  • create FAQItem model in apps/faq/models.py with attributes
    question and answer
  • register FAQItem model in apps/faq/admin.py
  • create CSS in /apps/faq/static/faq/css/main.scss

Close Issue #216.

Add FAQ link to menu and fix bug CSS not showing

* Fix 🐛 not showing css in faq app:
  * move css for faq to the proper path in
    `/apps/faq/static/faq/css/main.scss`
  * correct reference to css in `/apps/faq/templates/faq/base.html`
  * set `{% block body_class %}` to `faq-index` in
    `/apps/faq/templates/faq/faq_list.html`

* add FAQ link in the main menu:
  * add faq to menu in `apps/commons/templates/header.html`
@mhered
Copy link
Copy Markdown
Contributor Author

mhered commented Oct 25, 2021

Es una version basica:

  • enlace a FAQ desde el menu principal, submenu 'Asociacion'
  • se muestra una vista de la lista de preguntas frecuentes
  • por el momento se pueden anadir FAQ a la bbdd desde el dashboard de administrador

Os agradezco cualquier comentario, sugerencia de mejora o correccion, soy novato y estoy aqui para ayudar y aprender :-)

Si mas o menos os encaja, a partir de aqui puedo ir completando. Posibles mejoras:

  • busqueda en la bbdd de FAQ
  • en la vista indice mostrar solo el principio de la respuesta y un enlace a la vista de detalle de la FAQ
  • crear vista de detalle de la FAQ
  • mejorar la estetica
  • etc.

@mhered mhered changed the title 216 add faq section #216 add FAQ section Oct 25, 2021
Si no hay tests, mejor borrarlo,solo hace el proceso de descubrimiento más largo
Copy link
Copy Markdown
Collaborator

@euribates euribates left a comment

Choose a reason for hiding this comment

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

Arreglado un pequeño typo

Comment thread apps/faq/templates/faq/faq_list.html Outdated
@sdelquin sdelquin added hacktoberfest Aptas para Hacktoberfest hacktoberfest-accepted HacktoberFest Accepted labels Oct 26, 2021
@sdelquin
Copy link
Copy Markdown
Contributor

Muchas gracias por tus aportaciones @mhered. Hemos hecho ciertas modificaciones para adaptarlo a lo que teníamos.

@sdelquin sdelquin linked an issue Oct 26, 2021 that may be closed by this pull request
@sdelquin sdelquin merged commit 046168f into pythoncanarias:main Oct 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest Aptas para Hacktoberfest hacktoberfest-accepted HacktoberFest Accepted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Añadir una sección FAQ

3 participants