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

Enable admins to change the texts in the app #330

Open
3 of 7 tasks
essoen opened this issue Oct 11, 2017 · 0 comments
Open
3 of 7 tasks

Enable admins to change the texts in the app #330

essoen opened this issue Oct 11, 2017 · 0 comments

Comments

@essoen
Copy link
Member

essoen commented Oct 11, 2017

Now developers must change texts in the app manually, but we want the admins to be able to it. This task is basically to implement a small CMS for the app, within the app.

Time estimate: 12 hours

What must be done:

  • Add a model, table and endpoints in the API that can hold the texts. The fields in the table should be title, description and text. The name of the table and model should be AdminValues
  • Implement a view in the webapp that lists all the elements in texts
  • Implement a view that lets the admin edit each text
  • Implement fetching the texts from the API and handing these to all components. This can be done by i.e. wrapping all components in one that gives children text data.
  • Add the welcome email as a text, and set it to the text described below
  • Add the minimumTripDuration as a field in the table
  • Add all help texts in the system as texts in the table

Text for welcome email:

Når folk oppretter en profil går det ut en automatisk mail om at profilen er opprettet og at de snart vil høre fra oss. Kan denne infoen bli endret til at noe ala :'Takk for at du har registrert din profil. Du kan nå opprette en reiseforespørsel. Om du lurer på hvor behovet for frivillige er fremover kan du ta en titt på vår nettside eller sende en mail til [email protected]'

This makes #326 obsolete.

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

No branches or pull requests

1 participant