Skip to content

Commit

Permalink
show required fields in description view
Browse files Browse the repository at this point in the history
  • Loading branch information
heiko-braun committed Aug 7, 2012
1 parent 2f74cd4 commit 7f13643
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,14 @@ public void updateDescription(ModelNode address, ModelNode description)
public void onAttribute(String name, String description, String type, boolean required) {

attributeBuilder.appendHtmlConstant("<tr valign=top>");
attributeBuilder.appendHtmlConstant("<td class='doc-attribute'>").appendEscaped(name).appendHtmlConstant("</td>");
attributeBuilder.appendHtmlConstant("<td>").appendEscaped(type).appendHtmlConstant("</td>");
attributeBuilder.appendHtmlConstant("<td class='doc-attribute'>");
attributeBuilder.appendEscaped(name);
attributeBuilder.appendHtmlConstant("</td>");
attributeBuilder.appendHtmlConstant("<td>");
attributeBuilder.appendEscaped(type);
String requiredSuffix = required ? " (*)" : "";
attributeBuilder.appendEscaped(requiredSuffix);
attributeBuilder.appendHtmlConstant("</td>");
attributeBuilder.appendHtmlConstant("</tr>");

attributeBuilder.appendHtmlConstant("<tr class='doc-table-description'>");
Expand Down

0 comments on commit 7f13643

Please sign in to comment.