use of com.helger.pd.publisher.ui.HCSearchOperatorSelect in project phoss-directory by phax.
the class PagePublicSearchExtended method fillContent.
@Override
protected void fillContent(@Nonnull final WebPageExecutionContext aWPEC) {
final HCNodeList aNodeList = aWPEC.getNodeList();
final Locale aDisplayLocale = aWPEC.getDisplayLocale();
aNodeList.addChild(info("This is a placeholder page - has no effect yet!"));
final BootstrapViewForm aViewForm = new BootstrapViewForm();
// Add all search fields
for (final EPDSearchField eField : EPDSearchField.values()) {
final HCSearchOperatorSelect aSelect = new HCSearchOperatorSelect(new RequestField(PREFIX_OPERATOR + eField.getFieldName(), ESearchOperator.EQ.getID()), eField.getDataType(), aDisplayLocale);
final HCNodeList aCtrl = _createCtrl(eField, aDisplayLocale);
final BootstrapRow aRow = new BootstrapRow();
aRow.createColumn(2).addChild(aSelect);
aRow.createColumn(10).addChild(aCtrl);
aViewForm.addFormGroup(new BootstrapFormGroup().setLabel(eField.getDisplayText(aDisplayLocale)).setCtrl(aRow));
}
aNodeList.addChild(aViewForm);
}
Aggregations