Giter Site home page Giter Site logo

readonly elements about deform_bootstrap HOT 5 CLOSED

kotti avatar kotti commented on August 22, 2024
readonly elements

from deform_bootstrap.

Comments (5)

dnouri avatar dnouri commented on August 22, 2024

Hmm, deform's own readonly templates have no styling that makes elements look like form fields. Maybe I need to understand the use case here?

from deform_bootstrap.

disko avatar disko commented on August 22, 2024

@dnouri while you're of course right with this, I like the idea of having readonly fields within a form rendered as "uneditable" form fields.

FWIW I either have a form with inputs that can be editable or not, or I have a view without [de]form at all. IOW: I use deform with forms only, whereas deform's readonly templates have little to nothing to do with forms.

Others' mileage may vary of courseโ€ฆ

from deform_bootstrap.

tisdall avatar tisdall commented on August 22, 2024

Well, I think it's mostly stylistic. If you just use the default templates than the text doesn't line up with the label when using the default horizontal form layout. It's just not... er.. "bootstrappy" ^_^ The sample I gave is from http://twitter.github.io/bootstrap/base-css.html#forms under "Uneditable inputs".

from deform_bootstrap.

tisdall avatar tisdall commented on August 22, 2024

@disko I'm using deform with ColanderAlchemy. There's cases where I'd like to display the value for the primary key of the object the person is viewing without letting them view it. The readonly field is the most convenient.

from deform_bootstrap.

dnouri avatar dnouri commented on August 22, 2024

๐Ÿ‘

from deform_bootstrap.

Related Issues (19)

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.