Revision ed2f0452 snf-astakos-app/astakos/im/views.py

b/snf-astakos-app/astakos/im/views.py
1162 1162
        }
1163 1163
        form = form_class(data)
1164 1164

  
1165
    resource_presentation = {
1166
       'compute': {
1167
            'help_text':'group compute help text',
1168
                     
1169
        },
1170
        'storage': {
1171
            'help_text':'group storage help text',
1172
                      
1173
        },  
1174
        'pithos+.diskspace': {
1175
            'help_text':'resource pithos+.diskspace help text',
1176
                      
1177
        },  
1178
        'cyclades.vm': {
1179
            'help_text':'resource cyclades.vm help text resource cyclades.vm help text resource cyclades.vm help text resource cyclades.vm help text',
1180
                      
1181
        },  
1182
        'cyclades.disksize': {
1183
            'help_text':'resource cyclades.disksize help text',
1184
                      
1185
        },  
1186
        'cyclades.ram': {
1187
            'help_text':'resource cyclades.ram help text',
1188
                      
1189
        }                        
1190
                             
1191
    }
1192
    
1165 1193
    # Create the template, context, response
1166 1194
    template_name = "%s/%s_form_demo.html" % (
1167 1195
        model._meta.app_label,
......
1171 1199
    c = RequestContext(request, {
1172 1200
        'form': form,
1173 1201
        'kind': kind,
1174
        'resource_catalog':resource_catalog
1202
        'resource_catalog':resource_catalog,
1203
        'resource_presentation':resource_presentation
1175 1204
    }, context_processors)
1176 1205
    return HttpResponse(t.render(c))
1177 1206

  

Also available in: Unified diff