Skip to content

Commit

Permalink
small improvement for stypes (custom forms)
Browse files Browse the repository at this point in the history
  • Loading branch information
katkav committed Jan 27, 2017
1 parent 65d35dc commit 3a91dcf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Expand Up @@ -17,7 +17,7 @@
<!DOCTYPE html>
<html xmlns:wicket="http://wicket.apache.org">
<wicket:panel>
<div class="prism-header" wicket:id="header"/>
<div class="prism-title" wicket:id="header"/>
<div class="prism-properties">
<div>
<div class="row prism-property" wicket:id="property"/>
Expand Down
Expand Up @@ -21,6 +21,7 @@
import javax.xml.bind.JAXBElement;

import org.apache.commons.lang.StringUtils;
import org.apache.wicket.AttributeModifier;
import org.apache.wicket.RestartResponseException;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.form.Form;
Expand Down Expand Up @@ -104,6 +105,7 @@ private void initLayout(String groupName, List<AbstractFormItemType> formItems,
PrismPropertyPanel propertyPanel = new PrismPropertyPanel(itemView.newChildId(),
Model.of(itemWrapper), mainForm, getPageBase());
propertyPanel.setOutputMarkupId(true);
propertyPanel.add(AttributeModifier.append("class", ((i % 2) == 0) ? "" : "stripe"));
itemView.add(propertyPanel);
}

Expand Down
Expand Up @@ -17,6 +17,12 @@
<!DOCTYPE html>
<html xmlns:wicket="http://wicket.apache.org">
<wicket:panel>
<div wicket:id="formFields"/>
<div class="container-fluid prism-object" >
<div class="row col-md-12">
<div class="container-fluid prism-container" wicket:id="formFields"/>
</div>
</div>


</wicket:panel>
</html>

0 comments on commit 3a91dcf

Please sign in to comment.