GithubHelp home page GithubHelp logo

php-wine's People

Contributors

quantumlicht avatar

Watchers

 avatar

php-wine's Issues

Normalize inputs in db

put all input fields to lower cap. this way when someone searches we wont have to deal with capitalization.

No table for wine index data

Création d'une table qui contient toutes les informations pertinentes lors de la création d'une fiche.

On y met la couleur des vins, les mois de l'année et on fait un lien avec tout les producteurs, les cepages, les appelation et les régions qui sont générées par les utilisateurs.

Add server-side input validation of the form submit

Make sure that the field that do not come from a dropdown are sanitized. i.e :

  • prix is numeric
  • alcool is numeric
  • nom is html escaped and of a maximum length
    -same for all text field.
    make sure wine color has been selected.

anything else that can be thought of.

Move data in indexvins controller to model

On met les données nécessaires à la génération du formulaire pour la création d'une fiche dans une table de la DB afin que les infos soient accessibles pour d'autres pages également.

Create users with admin priviledges.

Add a row in the user table that defines if the user is admin or not.
The admin login page should only be accessible if you have admin priviledge, and you still need to provide your credentials.

Pas de toggle vin rouge/blanc dans la liste des couleurs

Ça prend un moyen pour afficher les couleurs selon que l'on sélectionne le bouton rouge ou le bouton blanc.

La solution simple serait d'ajouter le contenu des deux listes, mais d'afficher seulement une selon le bouton qui est sélectionné.

Capability to add tags for wine by users

Enable users to populate tags list.
However there should be an interface in the admin section to manually remove bad tags, and also have a mechanism to prevent users from posting abusive tags:

tags should limit to 1 word
no numbers
escape any html tags
limit number of characters.

Add typeahead for searching fields

Add type ahead for :

  1. Region
  2. Producteur
  3. Appelation

Will populate arrays with info from database harvested from previous submitted wine forms.

Move data in indexvins controller to model

Modifier l'emplacement du contenu pour que la couleurs des vins( blanc et rouge) soit stocké dans la base de données et même chose pour les mois de l'année. On y accède ensuite par le modèle. Ce sera plus versatile, car il y aura d'autre page qui vont accéder à cette information aussi.

Implement admin section to create table as needed.

It should link to all the models that actually create the tables.

We would also need redirect to the admin page upon creation with the status wether it was created or not.

Also add a button to redirect to the main section
Of course this section should be protected.

Revamp utils.js file to be more generic

Try to make sure that the validation toolbox is more generic and can be reused for many different form inputs.

Try to find a library that does general form validation. i.e a first pass of sanitation that escapes html properly . Then, we can focus on parsing content to check if it matches an expected content template.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.