Commit 8a1af341 by Oláh István Gergely

dashboard: fix css in node traits button

parent 13186982
...@@ -815,20 +815,17 @@ class TraitForm(forms.ModelForm): ...@@ -815,20 +815,17 @@ class TraitForm(forms.ModelForm):
self.helper.form_show_labels = False self.helper.form_show_labels = False
self.helper.layout = Layout( self.helper.layout = Layout(
Div( Div(
Field('name', id="node-details-traits-input",
css_class="input-sm input-traits"),
Div( Div(
Field('name', id="node-details-traits-input", HTML('<input type="submit" '
css_class="input-sm input-traits"), 'class="btn btn-default btn-sm input-traits" '
Div( 'value="Add trait"/>',
HTML('<input type="submit" ' ),
'class="btn btn-default btn-sm input-traits" ' css_class="input-group-btn",
'value="Add trait"/>',
),
css_class="input-group-btn",
),
css_class="input-group",
id="node-details-traits-form",
), ),
css_class="row", css_class="input-group",
id="node-details-traits-form",
), ),
) )
......
...@@ -40,4 +40,10 @@ ...@@ -40,4 +40,10 @@
<img src="/static/grafikon.png" style="width:45%"/> <img src="/static/grafikon.png" style="width:45%"/>
<img src="/static/grafikon.png" style="width:45%"/> <img src="/static/grafikon.png" style="width:45%"/>
</div> </div>
</div> </div>
<style>
.form-group {
margin: 0px;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment