Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature-request] Validation errors #34

Open
erdostom opened this issue Jul 17, 2015 · 4 comments
Open

[feature-request] Validation errors #34

erdostom opened this issue Jul 17, 2015 · 4 comments

Comments

@erdostom
Copy link

I know this is part of the TODO list, and I just wanted to vote that it go on top of the queue. It would really be awesome if there were a place and styling to display any errors that field-specific.

Domo arigato

@erdostom erdostom changed the title [feature-requet] Validation errors [feature-request] Validation errors Jul 17, 2015
@djanowski
Copy link

Any news?

@kmanley
Copy link

kmanley commented Jun 3, 2016

I notice there's a port at https://github.com/herrhelms/meteor-gridforms which augments the CSS with some styling for errors, perhaps it could be adapted here.

@zepernick
Copy link

For anyone wanting to add the validation on their own based on metero-gridforms:

Add this css to the style sheet

.grid-form [data-row-span] [data-field-span].grid-form-error.focus {	background: #fffad4; cursor: text; }
.grid-form [data-row-span] [data-field-span].grid-form-error, .grid-form [data-row-span] [data-field-span].grid-form-error:hover { background: #FE826D }
.grid-form .grid-form-help { font-size:75%; margin:-5px 0; color:rgba(33,33,33,.45); -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -o-user-select: none; user-select: none;    }

Add this markup to the field when adding a validation error

        <div data-row-span="1">
            <div data-field-span="1" class="grid-form-error">
                <label>Field 1</label>
                <input type="text">
                <span class="grid-form-help">Required Field </span>
            </div>
        </div>

@sumpygump
Copy link
Contributor

Added pull request #66 to add the styles into the sass/css.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants