Giter Site home page Giter Site logo

flask-relief's People

Contributors

dasich avatar

Watchers

 avatar  avatar

flask-relief's Issues

Form rendering

There needs to be a way to easily render forms to HTML without requiring the user to drop down to writing HTML herself, if she wants it rendered slightly differently.

Initially I considered doing this purely with macros, providing a template through a blueprint that can be used as a library. However macros are fairly limited in their abilities, probably making this unviable. Nevertheless I like the idea from an API perspective and if there is a decent way to implement macros from Python, this would be a nice solution.

HTML based client-side validation

HTML provides some support for validating forms on the client. We should provide a way to take advantage of that, as part of rendering.

Doing any work on this will require closing #3 first though.

flake8 fails on travis using pypy

For some reason flake8 fails on travis when pypy is used. It works for me locally using pypy 2.1.0 so I have to assume it's due to travis still using pypy 1.9.

This problem is currently "solved" by running the tests twice with pypy, once with flake8 and once without. The run with flake8 is marked as allowed to fail.

This workaround should be removed once travis upgrades pypy. It would also be nice, if someone could confirm that there is an incompatibility with pypy and flake8.

Implement all input types

All input types should be implemented as elements, that can be used to create schemas. So far only a few of them are:

  • text (Text)
  • password (Password)
  • hidden (Hidden and Secret)
  • checkbox (Checkbox and MultipleChoice)
  • radio (Choice)

This leaves the following - excluding types that don't submit anything - missing:

Types supported by most browsers:

  • email (Email)
  • submit (Submit)
  • file
  • image
  • tel
  • search
  • url

Types unsupported by most browsers:

  • color
  • date
  • datetime
  • datetime-local
  • month
  • number
  • range
  • time
  • week

To discuss/implement any of these create a new issue/pull request and reference this issue, as this the purpose of this issue is merely to track progress.

Edit: Split up list of types in ones that are supported and unsupported by most browsers, as documented in the MDN

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.