use_helper('Ajax', 'Language', 'Form', 'MyForm', 'Object', 'Javascript', 'Link');
echo customization_nav('personal');
// handle non ajax error form
echo global_form_errors_tag();
echo c2c_form_remote_tag('@user_edit');
?>
  <div id="customize">
    <?php 
echo fieldset_tag('Current password');
echo __('Your current password is needed before modifying these properties');
echo group_tag('current_password', 'current_password', 'input_password_tag', null, array('class' => 'medium_input', 'autocomplete' => 'off'));
echo end_fieldset_tag();
echo fieldset_tag('Change your password');
echo object_input_hidden_tag($user_private_data, 'getId');
echo group_tag('new_password', 'password', 'input_password_tag', null, array('class' => 'medium_input'));
echo group_tag('Retype your password:'******'new_password', 'input_password_tag', null, array('class' => 'medium_input'));
echo end_fieldset_tag();
echo fieldset_tag('Manage your email');
echo object_group_tag($user_private_data, 'email', array('class' => 'medium_input', 'type' => 'email'));
echo end_fieldset_tag();
?>
    <div class="form-row">
    <?php 
echo fieldset_tag('Manage your private data');
?>
    <ul>
      <li><?php 
echo label_for('edit_topo_name', __('topoName_desc'), array('class' => 'fieldname', 'id' => '_topo_name')) . ' ' . input_tag('edit_topo_name', $user_private_data->get('topo_name'), array('class' => 'medium_input'));
?>
</li>
      <li><?php 
Ejemplo n.º 2
0
use_helper('Form', 'MyForm', 'Ajax', 'Link', 'JavascriptQueue', 'MyMinify');
?>

<div id="fake_div">

<?php 
// handle non ajax error form
echo global_form_errors_tag();
//echo form_tag('@user_edit');
echo c2c_form_remote_tag('@signUp');
echo tips_tag('After subscription you will receive an email with a generated password, to confirm, login within %1% days', array('%1%' => sfConfig::get('app_pending_users_lifetime')));
echo group_tag('Username:'******'login_name', 'input_tag', $sf_params->get('login_name'), array('autofocus' => 'autofocus', 'class' => 'long_input'));
echo group_tag('Email:', 'email', 'input_tag', $sf_params->get('email'), array('class' => 'long_input', 'type' => 'email'));
echo content_tag('div', __('Did you mean %1%?', array('%1%' => '<a class="suggested-email"></a>')), array('class' => 'email-suggestion', 'style' => 'display:none'));
echo group_tag('Copy following string:', 'captcha', 'input_tag', null, array('class' => 'long_input'));
?>
    <img src="<?php 
echo url_for('@sf_captcha');
?>
" alt="captcha" title="<?php 
echo __('Copy following string:');
?>
" />
    <p class="tips"><?php 
echo __('captcha test is case-insensitive');
?>
</p>
  <p style="margin-top:20px"><?php 
echo c2c_submit_tag(__('Signup'));
?>
Ejemplo n.º 3
0
<?php

use_helper('MyForm', 'Javascript');
echo group_tag('Username:'******'login_name', 'input_tag', null, array('autofocus' => 'autofocus', 'class' => 'long_input'));
echo group_tag('Password:'******'password', 'input_password_tag', null, array('class' => 'long_input'));
echo group_tag('Remember me ?', 'remember', 'checkbox_tag', true);
// store referer in mobile version, so we can better redirect afterwards
if (c2cTools::mobileVersion()) {
    echo input_hidden_tag('referer', '');
    $js = "document.getElementById('referer').value = document.referrer;";
    echo javascript_tag($js);
}
<div id="fake_div">
<?php 
use_helper('Form', 'Validation', 'Ajax', 'Link', 'MyForm');
// handle non ajax error form
echo global_form_errors_tag();
// script => true ... ?
echo c2c_form_remote_tag('users/lostPassword');
?>
<div id="reset_password">

    <?php 
echo tips_tag('To receive a new password, enter your username or your email');
?>
    <?php 
echo group_tag('Username or Email', 'loginNameOrEmail', 'input_tag', $sf_params->get('loginNameOrEmail'), array('class' => 'long_input'));
?>
    <?php 
echo c2c_submit_tag(__('retrieve'));
?>
    &nbsp;
    <?php 
echo login_link_to();
?>

</div>
</form>
Ejemplo n.º 5
0
<?php

use_helper('MyForm');
?>
<h3><?php 
echo __('Revision data');
?>
</h3>
<?php 
echo group_tag('Rev comment', 'rev_comment', 'input_tag', $sf_params->get('rev_comment'), array('class' => 'long_input'));
echo group_tag('Minor change?', 'rev_is_minor', 'checkbox_tag', $sf_params->get('rev_is_minor'));