{
	"widgettype":"DynamicColumn",
	"options":{
		"width":"100%"
		"height":"100%"
	},
	"subwidgets":[
{% for p in get_rag_programs(request) %}
		{
			"widgettype":"VBox",
			"options":{
				"css":"card",
				"width":"25%",
				"cheight":10
			},
			"subwidgets":[
				{
					"widgettype":"Title5",
					"options":{
						"otext":"{{p.name}}"
						"i18n":true,
						"wrap":true,
						"halign":"center",
						"cheight":2
					}
				},
				{
					"widgettype":"text",
					"options":{
						"otext":"{{p.description}}",
						"i18n":true,
						"wrap":true,
						"halign":"left",
						"cheight":2
					}
				},
				{
					"widgettype":"HBox",
					"options":{
						"height":1.5
					},
					"subwidgets":[
						{
							"widgettype":"text",
							"options":{
								"otext":"可用磁盘容量",
								"i18n":true
							}
						},
						{
							"widgettype":"text",
							"options":{
								"text":"{{p.quota / 1000000}}M"
							}
						}
					]
				},
                {
                    "widgettype":"HBox",
                    "options":{
                        "height":1.5
                    },
                    "subwidgets":[
                        {
                            "widgettype":"text",
                            "options":{
                                "otext":"时长（月)",
                                "i18n":true
                            }
                        },
                        {
                            "widgettype":"text",
                            "options":{
                                "text":"{{p.term}}"
                            }
                        }
                    ]
                },
                {
                    "widgettype":"HBox",
                    "options":{
                        "height":1.5
                    },
                    "subwidgets":[
                        {
                            "widgettype":"text",
                            "options":{
                                "otext":"价格",
                                "i18n":true
                            }
                        },
                        {
                            "widgettype":"text",
                            "options":{
								"color":"red",
                                "text":"{{p.price}}圆"
                            }
                        }
                    ]
                },

			],
			"binds":[
				{
					"wid":"self",
					"event":"click",
					"actiontype":"urlwidget",
					"target":"PopupWindow",
					"popup_options":{
						"anchor":"cc",
						"width":"60%",
						"height":"60%"
					}
					"options":{
						"params":{
							"selected_program":"p.id"
						},
						"url":"{{entire_url('./program_selected.dspy')}}"
					}
				}
			]
		}
{% endfor %}
	]
}
