ademidun / atila-client-web-app

Client web app for atila.ca
https://atila.ca
0 stars 0 forks source link

Allow User to enter custom query fields #490

Closed ademidun closed 3 years ago

ademidun commented 3 years ago

Note: You might need to add the following to theindex.scss file if you are getting weird grey text:

.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
    color: #fff !important;
}

Post data willlook like this:


{
"email__icontains":"@yahoo.com",
"gender":"female",
"atila_points__gt": 100
}

Pseudocode

<Radio.Group defaultValue="a" buttonStyle="solid">
                <Radio.Button value="a">Query Builder</Radio.Button>
                <Radio.Button value="b">Custom Field</Radio.Button>
            </Radio.Group>

            <Input.Group compact>
                <Input style={{ width: "50%" }} placeholder="Field" />
                <Input
                    className="site-input-right"
                    style={{
                    width: "50%",
                    }}
                    placeholder="Value"
                />
            </Input.Group>

Before

Screen Shot 2021-10-17 at 10 57 12 AM

After

Screen Shot 2021-10-17 at 6 57 31 PM

ademidun commented 3 years ago

closed by #494