Skip to content

Commit

Permalink
Editor / Add view name class to facilitate custom styling
Browse files Browse the repository at this point in the history
This can facilitate customization of the style of the editor.

Previously only the tab identifier was provided making more difficult to define global editor styles common for all tabs and was not providing simple way to customize the side panel.
  • Loading branch information
fxprunayre committed Feb 12, 2024
1 parent e75ea4e commit c98ce9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/main/webapp/xslt/ui-metadata/edit/edit.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
select="exists($viewConfig/@class)"/>
<xsl:variable name="hasSidePanel"
select="exists($viewConfig/sidePanel) and $isTemplate != 's' and $isTemplate != 't'"/>
<div id="gn-editor-container-{$metadataId}">
<div id="gn-editor-container-{$metadataId}" class="gn-view-{$viewConfig/@name}">
<form id="gn-editor-{$metadataId}"
name="gnEditor" accept-charset="UTF-8" method="POST"
novalidate="" class="form-horizontal gn-editor gn-tab-{$tab} {if ($hasViewClass) then concat('gn-editor-config-css ', $viewConfig/@class) else ''}" role="form"
Expand Down

0 comments on commit c98ce9d

Please sign in to comment.