Changeset 8c2b094 in OpenWorkouts-current


Ignore:
Timestamp:
Oct 13, 2019, 11:56:00 PM (5 years ago)
Author:
Borja Lopez <borja@…>
Branches:
current
Parents:
b9a2c00
Message:

(#59) Errors in the sign up form are now readable

Location:
ow
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ow/static/css/main.css

    rb9a2c00 r8c2b094  
    14021402  background-color: red;
    14031403}
     1404.login-content ul.error {
     1405  list-style: none;
     1406  color: white;
     1407  padding: 5px;
     1408  margin: 0px;
     1409}
    14041410/*
    14051411.login-remember {
  • ow/static/less/pages/login.less

    rb9a2c00 r8c2b094  
    5353        }
    5454    }
     55
     56    ul.error {
     57        list-style: none;
     58        color: white;
     59        padding: 5px;
     60        margin: 0px;
     61    }
     62
    5563}
    5664
  • ow/templates/signup.pt

    rb9a2c00 r8c2b094  
    1818          <fieldset>
    1919            <div>
    20               ${form.errorlist('email')}
    2120              <label for="email" i18n:translate="">Email</label>
    2221              <input placeholder="We need a valid email address"
     
    2423                     value="" i18n:attributes="placeholder"
    2524                     tal:attributes="value form.data.get('email', '')">
     25              ${form.errorlist('email')}
     26
    2627            </div>
    2728            <div>
    28               ${form.errorlist('nickname')}
    2929              <label for="nickname" i18n:translate="">Nickname</label>
    3030              <input placeholder="Choose a cool nickname" type="text"
     
    3232                     i18n:attributes="placeholder"
    3333                     tal:attributes="value form.data.get('nickname', '')">
     34              ${form.errorlist('nickname')}
    3435            </div>
    3536            <div>
    36               ${form.errorlist('firstname')}
    3737              <label for="firstname" i18n:translate="">First name</label>
    3838              <input placeholder="Your real first name here" type="text"
    3939                     name="firstname" value="" i18n:attributes="placeholder"
    4040                     tal:attributes="value form.data.get('firstname', '')">
     41              ${form.errorlist('firstname')}
    4142            </div>
    4243            <div>
    43               ${form.errorlist('lastname')}
    4444              <label for="lastname" i18n:translate="">Last name</label>
    4545              <input placeholder="Your family name here" type="text"
    4646                     name="lastname" value="" i18n:attributes="placeholder"
    4747                     tal:attributes="value form.data.get('lastname', '')">
     48              ${form.errorlist('lastname')}
    4849            </div>
    4950            <div>
    50               ${form.errorlist('password')}
    5151              <label for="password" i18n:translate="">Password</label>
    5252              <input placeholder="More than 9 characters, numbers and/or symbols"
    5353                     name="password"
    5454                     type="password" i18n:attributes="placeholder">
     55              ${form.errorlist('password')}
    5556            </div>
    5657            <div>
    57               ${form.errorlist('password_confirm')}
    5858              <label for="password_confirm" i18n:translate="">Password (confirm)</label>
    5959              <input placeholder="Confirm your password" name="password_confirm"
    6060                     type="password" i18n:attributes="placeholder">
     61              ${form.errorlist('password_confirm')}
    6162            </div>
    6263          </fieldset>
Note: See TracChangeset for help on using the changeset viewer.