use of org.structr.api.util.html.Attr in project structr by structr.
the class PasswordSetting method render.
@Override
public void render(final Tag parent) {
final Tag group = parent.block("div").css("form-group");
group.block("label").text(getKey());
final Tag input = group.empty("input").attr(new Attr("type", "text"), new Attr("name", getKey()));
final String value = getValue();
// display value if non-empty
if (value != null) {
input.attr(new Attr("value", value));
}
}
Aggregations