Development

#6713 (Admin generator should automatically replace boolean 'true' with a link to a 'tick' image for virtual fields.)

You must first sign up to be able to contribute.

Ticket #6713 (new defect)

Opened 8 months ago

Last modified 7 months ago

Admin generator should automatically replace boolean 'true' with a link to a 'tick' image for virtual fields.

Reported by: allyb Assigned to: fabien
Priority: minor Milestone:
Component: other Version: 1.2.7
Keywords: Cc:
Qualification: Unreviewed

Description

In the admin generator's list view, fields that have columns in the database automatically display an image of a tick if the value is true. This should be extended so it automatically outputs the same tick image for virtual fields (i.e. those that don't have columns in the database) if they return a boolean true.

Change History

07/28/09 02:21:27 changed by MDrollette

I have seen the following code given in the forums but it seems to have no effect. Should "type: boolean" be used to render the image partial instead of relying on the propel/doctrine field type?

    config:
      fields:
        is_active: { type: boolean, required: true, default: 0  }

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting.
Sensio Labs also supports several large Open-Source projects.