class IncidentRegisterPresenter extends RecordRegisterPresenter {

    @Override
    protected List<Field> getFields() {
        List<Field> fields = new ArrayList<>();

        RecordForm form = incidentFormService.getGBVTemplate();

        List<Section> sections = form.getSections();

        for (Section section : sections) {
            for (Field field : section.getFields()) {
                field.setSectionName(section.getName());
                if (field.isShowOnMiniForm()) {
                    if (field.isPhotoUploadBox()) {
                        fields.add(0, field);
                    } else {
                        fields.add(field);
                    }
                }
            }
        }
        return fields;
    }

    @Inject public  IncidentRegisterPresenter(IncidentService incidentService, IncidentFormService
            incidentFormService);

}