<commit_before>package org.labkey.wnprc_ehr.dataentry.forms.WaterMonitoring.FormSections;

import org.labkey.api.view.template.ClientDependency;
import org.labkey.wnprc_ehr.dataentry.generics.sections.SimpleGridSection;

import java.util.List;

public class WaterMultipleFormSection extends SimpleGridSection
{
    public WaterMultipleFormSection (){

        super("study", "watergiven", "Water Given");
        setClientStoreClass("WNPRC.ext.data.SingleAnimal.WaterClientStore");
        setAllowBulkAdd(true);

        addClientDependency(ClientDependency.fromPath("wnprc_ehr/ext4/windows/AddScheduleWaterWindow.js"));
        _showLocation = true;


    }
    @Override
    public List<String> getTbarButtons(){

        List<String> defaultButtons = super.getTbarButtons();

        defaultButtons.add("ADDSCHEDULEDWATERS");

        return defaultButtons;
    }
}<commit_msg>removing extra button from tbar<commit_after>package org.labkey.wnprc_ehr.dataentry.forms.WaterMonitoring.FormSections;

import org.labkey.api.view.template.ClientDependency;
import org.labkey.wnprc_ehr.dataentry.generics.sections.SimpleGridSection;

import java.util.ArrayList;
import java.util.List;

public class WaterMultipleFormSection extends SimpleGridSection
{
    public WaterMultipleFormSection (){

        super("study", "watergiven", "Water Given");
        setClientStoreClass("WNPRC.ext.data.SingleAnimal.WaterClientStore");
        setAllowBulkAdd(true);

        addClientDependency(ClientDependency.fromPath("wnprc_ehr/ext4/windows/AddScheduleWaterWindow.js"));
        _showLocation = true;
        setAllowBulkAdd(false);
        setTemplateMode(TEMPLATE_MODE.NONE);
       // _templateMode = TEMPLATE_MODE.NONE;


    }
    @Override
    public List<String> getTbarButtons(){

        List<String> defaultButtons = super.getTbarButtons();

        defaultButtons.add(0,"ADDSCHEDULEDWATERS");
        defaultButtons.remove("ADDRECORD");
       
        return defaultButtons;
    }

    @Override
    public List<String> getTbarMoreActionButtons()
    {
        List<String> defaultButtons = new ArrayList<>();
        defaultButtons.addAll(super.getTbarMoreActionButtons());
        defaultButtons.remove("COPY_IDS");
        return defaultButtons;
    }
}
{'fraction_non_alphanumeric': 0.10230292294065545, 'fraction_numerical': 0.001328609388839681, 'mean_word_length': 3.9757709251101323, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3116021', 'n_tokens_mistral': 673, 'n_tokens_neox': 668, 'n_words': 91}