Giter VIP home page Giter VIP logo

open-forms's People

Contributors

alextreme avatar annashamray avatar bart-maykin avatar bartvaderkin avatar charstring avatar dariomory avatar davidoberholzer avatar erhancitil avatar ewen-lgy avatar foarsitter avatar jiromaykin avatar joeribekker avatar joostvanderborg avatar laurensburger avatar nikkiysendoorn1 avatar pi-sigma avatar sergei-maertens avatar shea-maykinmedia avatar silviaamam avatar sjoerdie avatar stevenbal avatar svenvandescheur avatar vaszig avatar viicos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

open-forms's Issues

As developer I want an implementation of the design in frontend code

[SPIKE: 5 days] Mini demo: Formeo

Form builder

  • Has checkbox element
  • Has textfield element which allows regex validation for only letters (a-zA-Z)
  • Has (implicit or not with other elements) label element
  • Has custom element that is prefilled with an up-to-date (at time of rendering or retrieving form-definition) value of this API: http://worldtimeapi.org/api/timezone/Europe/Amsterdam.json (datetime-field)
  • Other field elements should not be visible in the builder
  • Build form of 1 text field that only shows (or is enabled) when the checkbox is checked. The textfield is then required.

Django stuff

  • Form definition can be saved to database
  • Form definition is exposed via API (or just a JSON-blob that was saved to the database)

Form renderer

  • Form definition can be retrieved via API and rendered (shows checkbox and when checked, the textfield)
  • Form is styled to look somewhat like the image below (ugly, but shows that we can style it).
  • Form answers are printed to the console in JSON format

image

[SPIKE: 5 days] Mini demo: Form.io

Form builder

  • Has checkbox element
  • Has textfield element which allows regex validation for only letters (a-zA-Z)
  • Has (implicit or not with other elements) label element
  • Has custom element that is prefilled with an up-to-date (at time of rendering or retrieving form-definition) value of this API: http://worldtimeapi.org/api/timezone/Europe/Amsterdam.json (datetime-field)
  • Other field elements should not be visible in the builder
  • Build form of 1 text field that only shows (or is enabled) when the checkbox is checked. The textfield is then required.

Django stuff

  • Form definition can be saved to database
  • Form definition is exposed via API (or just a JSON-blob that was saved to the database)

Form renderer

  • Form definition can be retrieved via API and rendered (shows checkbox and when checked, the textfield)
  • Form is styled to look somewhat like the image below (ugly, but shows we can style it).
  • Form answers are printed to the console in JSON format

image

[SPIKE] Investigate the use of open source libraries

Alternatives can be considered but I specifically want FormIO to be analysed. It offers a JS-powered form builder app and a JS-lib for rendering forms created with that builder. See builder: https://codepen.io/travist/full/xVyMjo/ and rendering: https://formio.github.io/formio.js/ Also, there's an existing investigation from a while ago that might be related: cityofaustin/techstack#303

Requirements

A form-library...

  • needs to be open source
  • allow free commercial use
  • allow extensions / custom elements (whether they need to be open source or not)
  • fill in one or more (partial) project architecture components, like:
    • Form builder (build forms can be saved as a form definition)
    • Form renderer (forms can be rendered based on a form definition)
  • is well documented
  • saves us time developing open forms
  • does not conflict with project goals (for example: if the library prohibits us from saving data, its not suitable for us)

Now, there are a few requirements in this project that might not be filled in by the library. The question is if we can add them easily. Examples are:

  • Form fields can depend on eachother
  • Form fields can have (regex) validation
  • Forms can be prefilled
  • FormWizards can be created (ie. multiple pages of forms)

As admin, I want to manage products: name, url and price

We need a simple model to manage products. There is a component for this but we're leaving that out of scope for now. The component is typically called PDC: "Producten en Diensten Catalogus".

The model can contain only 3 fields for now:

  • name (required)
  • url (optional, to product details in a PDC)
  • price (decimal field, optional)

Make sure the model is editable in the admin.

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.