worknenjoy / truppie

The marketplace for adventures
http://www.truppie.com
MIT License
51 stars 38 forks source link

Edit a static page by admin #86

Closed alexanmtz closed 6 years ago

alexanmtz commented 6 years ago

We have a lot of content pages explaining how the system works, and should be possible be editable, since we need more flexibility to change the texts, and the current solutions is not being very user friendly.

So we wish that it would be possible to edit those pages, in Portuguese and English. So in this case the content would be in a database, and we have already i18n and support two languages.

How to reproduce the user scenario

screen shot 2018-03-13 at 8 10 31 pm

Design or screenshot attached

This is a sample page of How it works

pageshot of truppie 2018-03-02-2009 10

Instructions of how to made the change proposal

Acceptance criteria

Platform:

You can start a local database server with the following command:

pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start

Requirements to run the project

 ADMIN_EMAIL=youremail
 ADMIN_EMAIL_ALT=othermail

How to work on this task

  1. Make a comment here
  2. You will be invited and be assign to the task
  3. Fork the project
  4. Clone the repo with git clone and run rails s to start the project

rake test (run tests and make sure is green)

rails db:migrate (Run the migrations for the database)

rails s (Rodar o projeto)

  1. Make the necessary changes to this issue
  2. Send a pull request
  3. Verify if your changes didn't break the automated tests
  4. A new application will be created to be validated
  5. You will receive feedback from team members
  6. You will send changes until is approved
  7. You get a approve 👍
  8. When the Pull Request is merged, if is a paid task, the payment is send

If you have any doubt or need help just comment and you will be supported

If you have doubts about it see this post

alexanmtz commented 6 years ago

Poder editar todas as páginas livremente, como no WordPress

lucasm0ura commented 6 years ago

Install Gem ActiveAdmin for maintenance this issue. I have interest

alexanmtz commented 6 years ago

You were invited @lucasm0ura , so after you accept the invite you will be assigned.

And the ActiveAdmin it seems a good fit for the project!

alexanmtz commented 6 years ago

You were assigned to the task and you can start and if you need help, let me know

lucasm0ura commented 6 years ago

Ok, i go to work this issue this week. Tks

lucasm0ura commented 6 years ago

@alexanmtz , a página para ser administrada pelo admin é apenas a how it works ?

alexanmtz commented 6 years ago

@lucasm0ura , seria How it works, FAQ, Manifesto e Privacy

lucasm0ura commented 6 years ago

Certo.

lucasm0ura commented 6 years ago

@alexanmtz, terminei a demanda mas estou sem permissão pra subir pra minha branch. Erro : remote: Permission to worknenjoy/truppie.git denied to lucasm0ura. fatal: unable to access 'https://github.com/worknenjoy/truppie.git/': The requested URL returned error: 403

alexanmtz commented 6 years ago

Você precisa criar um fork @lucasm0ura , veja se estes artigos possa lhe ajudar:

alexanmtz commented 6 years ago

@lucasm0ura o seu pull request foi integrado e estamos movendo e revisando o conteúdo das páginas estáticas do site para publicar para assim finalizar essa issue

lucasm0ura commented 6 years ago

Certo, seria bom salvar já as informações como estão hoje ( junto com o html embutido nos textos), e salvar em um arquivo de texto para ser inserido no admin .

alexanmtz commented 6 years ago

Isso! Fizemos um backup do conteúdo e vamos retomar o conteúdo e realizar algumas alterações que foram propostas. Obrigado por todas as dicas!

On 24 April 2018 at 21:48, Lucas Santana de Moura notifications@github.com wrote:

Certo, seria bom salvar já as informações como estão hoje ( junto com o html embutido nos textos), e salvar em um arquivo de texto para ser inserido no admin .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/worknenjoy/truppie/issues/86#issuecomment-384057037, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFbCAIpco_Ubs8iQnOWxdhq2UsDSmajks5tr4F6gaJpZM4SpS8p .

-- -- Alexandre Magno *Software Engineer, *Writer and Entrepreneur http://trustpilot.com http://worknenjoy.com http://blog.alexandremagno.net/en +45 26479776 @alexanmtz

lucasm0ura commented 6 years ago

You're Welcome ! Estou a disposição !

alexanmtz commented 6 years ago

Os textos foram migrados e as mudanças já estão em produção. Muito obrigado pela contribuição @lucasm0ura !