key/value metadata editing form layout changes
@@ -162,12 +162,13 @@ class AbstractFileMetaData(models.Model):
return add_key_value_btn
if self.extra_metadata:
- root_div_extra = div(id="filetype-extra-metadata")
- root_div_extra.add(div(cls="col-lg-12 content-block"))
+ root_div_extra = div(cls="row", id="filetype-extra-metadata")
with root_div_extra:
+ with div(cls="col-lg-12 content-block"):
legend('Extended Metadata')
get_add_keyvalue_button()
- with table(cls="table table-striped funding-agencies-table"):
+ with table(cls="table table-striped funding-agencies-table",
+ style="width: 100%"):
with tbody():
with tr(cls="header-row"):
th("Key")
@@ -195,8 +196,9 @@ class AbstractFileMetaData(models.Model):
self._get_delete_key_value_modal_forms()
return root_div_extra
else:
- root_div_extra = div(cls="col-sm-12 content-block", id="filetype-extra-metadata")
+ root_div_extra = div(cls="row", id="filetype-extra-metadata")
with root_div_extra:
+ with div(cls="col-lg-12 content-block"):
legend('Extended Metadata')
get_add_keyvalue_button()
self._get_add_key_value_modal_form()
