changed order of things and took out 'General'
@@ -38,7 +38,7 @@ class mp_form_helper(BaseFormHelper):
field_width = 'form-control input-sm'
css_multichar = field_width + ' multichar'
layout = Layout(
- HTML('<legend>Data</legend>'),
+ HTML('<legend>Content Files</legend>'),
Field('modelEngine', css_class=css_multichar, style="display:none"),
multiselect['modelEngine'],
Field('modelSoftware', css_class=css_multichar, style="display:none"),
@@ -48,17 +48,14 @@ class mp_form_helper(BaseFormHelper):
Field('modelReleaseNotes', css_class=css_multichar, style="display:none"),
multiselect['modelReleaseNotes'],
HTML('<hr style="border:0">'),
- HTML('<legend>General</legend>'),
- Field('modelReleaseDate', css_class=field_width, style="display:none"),
- HTML('<input type="text" class="'+field_width+'" id="modelReleaseDate_picker">'),
- Field('modelVersion', css_class=field_width),
- HTML('<br>'),
- HTML('<hr style="border:0">'),
HTML('<legend>Software</legend>'),
- Field('modelWebsite', css_class=field_width),
Field('modelProgramLanguage', css_class=field_width),
Field('modelOperatingSystem', css_class=field_width),
Field('modelCodeRepository', css_class=field_width),
+ Field('modelReleaseDate', css_class=field_width, style="display:none"),
+ HTML('<input type="text" class="'+field_width+'" id="modelReleaseDate_picker">'),
+ Field('modelVersion', css_class=field_width),
+ Field('modelWebsite', css_class=field_width),
)
super(mp_form_helper, self).__init__(allow_edit, res_short_id, element_id, element_name, layout, element_name_label=' ', *args, **kwargs)
@@ -89,6 +86,7 @@ class mp_form(ModelForm):
'modelDocumentation',
'modelSoftware',
'modelEngine']
+ labels = {'modelProgramLanguage': 'Programming language'}
exclude = ['content_object']
