Ejemplo n.º 1
0
<?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.&nbsp; Are you sure you&rsquo;re not already registered?');
        break;
}
return Snil(Sf('_signup.html.php'), p('Already have an account?&nbsp; ', a(array('href' => '/start#login'), 'Login')));
Ejemplo n.º 2
0
<?php

Sd('title', 'Login');
Sd('error', 'Something went wrong.&nbsp; Are you sure that&rsquo;s your password?');
return Snil(Sf('_login.html.php'), p('Need to create an account?&nbsp; ', a(array('href' => '/start#signup'), 'Signup')));
Ejemplo n.º 3
0
<?php

return Snil(form(array('action' => '/report', 'method' => 'post'), Sc('address'), h1(small('Currently:&nbsp; '), Sd('address'), br(), Snil(Sc('sweep', true), small('That street is swept:&nbsp; '), Sd('sweep'), '&nbsp; ', 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&nbsp; ', 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&rsquo;t choose a corner address because SF GIS might return inaccurate street sweeping data.&nbsp; 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'))))));
Ejemplo n.º 4
0
<?php

Sd('title', '404');
return Snil(p(big('Oh noes!')));
Ejemplo n.º 5
0
<?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.&nbsp; (* Where in San Francisco, that is.)'), h1(array('id' => 'login'), 'Login'), Sf('_login.html.php'), h1(array('id' => 'signup'), 'Signup'), Sf('_signup.html.php'));
Ejemplo n.º 6
0
<?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&rsquo;t match.'), p(a(array('href' => '/home'), 'Home')));