admin-interface

Rails3 + Typus: display habtm relationship as checkboxes

≯℡__Kan透↙ 提交于 2019-12-22 12:16:48
问题 I'm managing my admin backend with Typus I want to add a field with a checkbox for each category. I used this code: Post: fields: default: name, description, user, categories list: name, description, user, categories form: name, description, user, categories relationships: categories But the result is a textfield with a [] inside: how do I solve this? Is there a native way or must I override the field template? 回答1: To show the the checkbox for the fields you can use the existing template of

Rails3 + Typus: display habtm relationship as checkboxes

杀马特。学长 韩版系。学妹 提交于 2019-12-22 12:15:06
问题 I'm managing my admin backend with Typus I want to add a field with a checkbox for each category. I used this code: Post: fields: default: name, description, user, categories list: name, description, user, categories form: name, description, user, categories relationships: categories But the result is a textfield with a [] inside: how do I solve this? Is there a native way or must I override the field template? 回答1: To show the the checkbox for the fields you can use the existing template of

Rails3 + Typus: display habtm relationship as checkboxes

别来无恙 提交于 2019-12-06 14:26:59
I'm managing my admin backend with Typus I want to add a field with a checkbox for each category. I used this code: Post: fields: default: name, description, user, categories list: name, description, user, categories form: name, description, user, categories relationships: categories But the result is a textfield with a [] inside: how do I solve this? Is there a native way or must I override the field template? To show the the checkbox for the fields you can use the existing template of the Typus Post: fields: default: name, description, user, categories list: name, description, user,