<?php Sd('title', 'Signup'); switch (Sd('create')) { case '1': Sd('error', 'Usernames must be between 4 and 40 characters.'); break; case '2': Sd('error', 'Please confirm your password.'); break; case '3': Sd('error', 'Passwords must be between 4 and 40 characters.'); break; case '4': Sd('error', 'Something went wrong here. Are you sure you’re not already registered?'); break; } return Snil(Sf('_signup.html.php'), p('Already have an account? ', a(array('href' => '/start#login'), 'Login')));
<?php Sd('title', 'Login'); Sd('error', 'Something went wrong. Are you sure that’s your password?'); return Snil(Sf('_login.html.php'), p('Need to create an account? ', a(array('href' => '/start#signup'), 'Signup')));
<?php return Snil(form(array('action' => '/report', 'method' => 'post'), Sc('address'), h1(small('Currently: '), Sd('address'), br(), Snil(Sc('sweep', true), small('That street is swept: '), Sd('sweep'), ' ', Sif(Sc('inaccurate', true), '(inaccurate)'), Sif(Sc('inaccurate', false), small(small(input(array('type' => 'submit', 'value' => 'Report as inaccurate', 'class' => 'link')))))), Sif(Sc('sweep', false), Sc('impossible', true), small('This address was impossible to geocode')), Sif(Sc('sweep', false), Sc('impossible', false), small('Street sweeping information will be available shortly ', small(a(array('href' => '/home'), 'Refresh')))))), form(array('action' => Sd('URL'), 'method' => 'post'), p(label(array('for' => 'address'), 'My car is at...'), br(), input(array('id' => 'address', 'name' => 'address', 'type' => 'text', 'value' => Sd('new_address'), 'class' => 'text stretch')), br(), 'Only the closest street number and the street name, please.', br(), small('Don’t choose a corner address because SF GIS might return inaccurate street sweeping data. Make sure you use the proper side of the street so we can accurately predict the street sweeping schedule.')), p(input(array('type' => 'submit', 'value' => 'Update', 'class' => 'button')))), Sif(Sc('need_confirm_sms'), h2('Confirm your cell phone number for SMS'), form(array('action' => '/confirm/sms', 'method' => 'post'), p(label(array('for' => 'code'), 'SMS confirmation code:'), br(), input(array('id' => 'code', 'name' => 'code', 'type' => 'text', 'class' => 'text stretch')), br(), small('Enter the code sent to your cell phone to have reminders sent to your phone.')), p(input(array('type' => 'submit', 'value' => 'Confirm', 'class' => 'button'))))));
<?php Sd('title', '404'); return Snil(p(big('Oh noes!')));
<?php return Snil(p('Keep track of where* your car is parked and get email and SMS alerts when you need to move it for street cleaning. (* Where in San Francisco, that is.)'), h1(array('id' => 'login'), 'Login'), Sf('_login.html.php'), h1(array('id' => 'signup'), 'Signup'), Sf('_signup.html.php'));
<?php Sd('title', 'Confirm your cell phone number'); return Snil(p(Sc('confirm', true), array('class' => 'success'), 'Thanks!'), p(Sc('confirm', false), array('class' => 'error'), 'The codedidn’t match.'), p(a(array('href' => '/home'), 'Home')));