use of org.structr.api.util.html.Tag in project structr by structr.
the class IntegerSetting 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 Integer value = getValue();
// display value if non-empty
if (value != null) {
input.attr(new Attr("value", value));
}
renderResetButton(group);
}
use of org.structr.api.util.html.Tag 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