Sha256: aefdf6d7c462ac24d776604b180bb7d2271bb2b5906dbe27831d762b6d90f6bb
Contents?: true
Size: 918 Bytes
Versions: 154
Compression:
Stored size: 918 Bytes
Contents
<ul> <li>Validate mandatory fields client-side to make sure content is present.</li> <li>Display field labels in red when there is an error in their respective field.</li> <li>Outline inputs in red when there is an error inside.</li> <li>Display validation text in red and below the input it is referring to. It should be closer to that input than anything else on the page.</li> </ul> <div class="errorExplanation"> <h2>2 errors prohibited this record from being saved:</h2> <p>There were problems with the following fields:</p> <ul> <li>Email can't be blank</li> <li>Password can't be blank</li> </ul> </div> <div class="field withError half"> <span class="field_with_errors"><label for="user_name">Name</label></span> <span class="field_with_errors"><input class="fullwidth" type="text" name="user[name]" id="user_name"></span> <span class="formError">can't be blank</span> </div>
Version data entries
154 entries across 154 versions & 2 rubygems