php-wine's People
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.
Add client-side validation of indexvins form
Add form validation and trigger errors.
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.
Have a global variable that is the domain
This waay we dont have to go through each files looking for links and replace them.
Populate encepagement tables
Ajouter tout les encepagement qui se trouve dans le cahier des vins.
Issue error state in form
When a field is deemed invalid, add the bootstrap class that will toggle it as an error.
Find better IDE
i.e. maybe try netbeans.
Character encoding is wrong in the database
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.
connect_db.php should be a function
This way we can pass which database we want to connect to.
Create set up to backup DB automatically and periodically
make an sql dump and save it to ubuntu one
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.
Open ports to talk to outside network
Try to align text in select for indexvins form
Add more client-side validation
convert type for
alcool ,prix
limit number of selected encepagement
make sure all text field don't contain numbers
couleur field has no initialization value
It shows the first option by default. We need to add an field that will be empty , thus detecting if the field has been selected or not.
Revamp form validation on Server side
Maybe use an already existing class that will sanitize input and make sure that there is no abusive behavior in the inputs.
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.
Refactor indexvins form so that it's more compact and uses more jquery
Try to condense the code so that it's more compact. It seems like it will be painful to maintain because it is a huge chunk of html code. Its certainly possible to port some of it to Jquery.
Maybe this would also contribute to remove load off the server.
Nav bar doesnt show selected tab
When we navigate to a page, we should the tab changing state.
Research plugin for a forum
Remove swap files and prevent recommits
Move couleur des vins into a table in db_vins
Figure out how to toggle buttons properly in indexvins view
Try to toggle 'couleur du vin' properly to ensure that we can only select one value( radio button ) and also make sure that we will be able to retrieve the selected value in the form to inject into the DB.
Create a root controller for subscription to hide server structure
As of now, we call the controller directly which exposes the directory structure
Server is properly set up. All is left is adding components
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é.
In subscription form add class 'span' to input fields so it matches other pages
Error class not triggered unless element is clicked
we should change trigger to focus or somethinng else appropriate
Add a field to add tags to the wine.
These tags should show up as they are added and could be removed with a small x icon at the top-right corner. Just like when you add tags in Jira
Form submission does not register encepagement
It is not currently added into the database
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 admin tool to list database content
Add an admin tool to list the content of the tables.
Possibility to add posts on the front page from the admin section
Have a tool to add html code inside a container on the front page that will also be stored in the database
There should be 2 tables for encepagement
1 table pour le rouge et une table pour le blanc.
There is no validatition message upon indexvins form submission
No way for the user to know if the request succeeded or not.
Add typeahead for searching fields
Add type ahead for :
- Region
- Producteur
- 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.
Add a git ignore file
Add a git ignore to prevent committing swap files
The wine select button is not part of the error validation in form indexvins
Register for dynamic DNS
Configure Apache file
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.
Tool to delete posts from the forum
Styling is wrong on mobile
Ui des not show properly for small screens. Add fluid containers on all divs
Form submission does not register tags
Server side validation is complete
Corriger faute d'orthographe sur page principale
Participez et dégustation
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.
verify that we can remove db connexion in model/qlicht/subscribe_users.php
We shouldnt need it anymore since we now use a root controller that already connect to the database
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.