Coder Social home page Coder Social logo

pitmairen / training_application Goto Github PK

View Code? Open in Web Editor NEW
0.0 4.0 0.0 1.77 MB

Group project in the course data modelling and database applications at Aalesund university college.

License: GNU Lesser General Public License v3.0

PHP 13.86% CSS 2.23% JavaScript 0.30% Shell 0.97% Batchfile 0.01% Java 57.83% HTML 11.36% PLSQL 11.60% Python 1.84%

training_application's Introduction

training_application's People

Contributors

pitmairen avatar tmholen95 avatar alegro91 avatar

Watchers

 avatar James Cloos avatar  avatar  avatar

training_application's Issues

Crash on bad input in form data

Currently the AccountInfo page will crash on bad form input. Eg. when non integer data is sent where integers are expected it cases a crash. This should be handled gracefully and an error message should be displayed to the user indicating what was wrong with the data.

Validation error messages can be added by using the addValidationError method defined on the FormRoute class. They can be displayed in the template by including the "partials/validation-errors" template. An example can be seen in the "admin/edit-program" template.

Also to get access to the form data in the java code the "name" attribute must be defined on the input element in the html form.

The workout page silently ignores bad input

Currently the workout page silently ignores bad input values. On bad input the code should abort and display an error message to the user indicating what was wrong with the input data. In the case of an validation error the form should be repopulated with the form data that was submitted in the request so that the user don't have to re-input the data that was valid.

Validation error messages can be added by using the addValidationError method defined on the FormRoute class. They can be displayed in the template by including the "partials/validation-errors" template. An example can be seen in the "admin/edit-program" template.

Also currently the code will execute unnecessary db queries when bad input is encountered. The input data should be validated before any db queries are executed.

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.