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

Version Path
solidus_backend-4.5.1 app/views/spree/admin/style_guide/topics/forms/_validation.html.erb
solidus_backend-4.5.0 app/views/spree/admin/style_guide/topics/forms/_validation.html.erb
solidus_backend-4.3.6 app/views/spree/admin/style_guide/topics/forms/_validation.html.erb
solidus_backend-4.2.5 app/views/spree/admin/style_guide/topics/forms/_validation.html.erb
solidus_backend-4.1.6 app/views/spree/admin/style_guide/topics/forms/_validation.html.erb
solidus_backend-4.4.2 app/views/spree/admin/style_guide/topics/forms/_validation.html.erb
solidus_backend-4.4.1 app/views/spree/admin/style_guide/topics/forms/_validation.html.erb
solidus_backend-4.4.0 app/views/spree/admin/style_guide/topics/forms/_validation.html.erb
solidus_backend-4.3.4 app/views/spree/admin/style_guide/topics/forms/_validation.html.erb
solidus_backend-4.2.4 app/views/spree/admin/style_guide/topics/forms/_validation.html.erb
solidus_backend-4.1.5 app/views/spree/admin/style_guide/topics/forms/_validation.html.erb
solidus_backend-4.3.3 app/views/spree/admin/style_guide/topics/forms/_validation.html.erb
solidus_backend-4.3.2 app/views/spree/admin/style_guide/topics/forms/_validation.html.erb
solidus_backend-4.1.4 app/views/spree/admin/style_guide/topics/forms/_validation.html.erb
solidus_backend-4.3.1 app/views/spree/admin/style_guide/topics/forms/_validation.html.erb
solidus_backend-4.3.0 app/views/spree/admin/style_guide/topics/forms/_validation.html.erb
solidus_backend-4.2.3 app/views/spree/admin/style_guide/topics/forms/_validation.html.erb
solidus_backend-4.1.3 app/views/spree/admin/style_guide/topics/forms/_validation.html.erb
solidus_backend-4.0.4 app/views/spree/admin/style_guide/topics/forms/_validation.html.erb
solidus_backend-3.4.6 app/views/spree/admin/style_guide/topics/forms/_validation.html.erb