Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2015
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.53 KB | None | 0 0
  1. {% block admin %}
  2.     <div class="fos_user_user_show">
  3.     <h1>Gérer mon compte</h1>
  4.         {% set profilePicturePath = app.security.getToken().getUser().getProfilePicturePath() %}
  5.         {% if profilePicturePath is not null and profilePicturePath is not empty %}
  6.         <img src="{{ asset('images/uploads/' ~ profilePicturePath ) }}" style="margin-right: 20px; max-width: 100px; max-height: 100px;" class="pull-left mini-image image-thumbnail" alt="img_membre" />
  7.         {% else %}
  8.         <img src="{{ asset('images/img_profile.png') }}" style="margin-right: 20px; max-width: 100px; max-height: 100px;" class="pull-left mini-image image-thumbnail" alt="img_membre" />
  9.         {% endif %}
  10.         <ul>
  11.             <li>Nom d'utilisateur:  {{ app.security.getToken().getUser().getUsername() }} </li>
  12.             <li>Nom:  {{ app.security.getToken().getUser().getNom() }} </li>
  13.             <li>Prénom: {{ app.security.getToken().getUser().getPrenom() }} </li>
  14.             <li>Nombre d'avis postés sur le site: {{ app.security.getToken().getUser().getAvis()|length }}
  15.             <li>Membre depuis le:  {{ app.security.getToken().getUser().getCreatedOn()|date('d-m-Y') }}
  16.         </ul>
  17.         <br style="clear: both;" />
  18.     {{ render(controller('WIYUserBundle:ChangePassword:changePasswordInc')) }}
  19.  
  20.     <h3>Modifier mes données personnelles</h3>
  21.     {% if not formProfil.vars.valid %}
  22.     <div class="alert alert-danger" role="alert">
  23.         <!-- form.errors -->
  24.         {% for item in formProfil %}
  25.             {{ form_errors(item) }}
  26.         {% endfor %}
  27.     </div>
  28.     {% endif %}
  29.     <form action="{{ path('fos_user_profile_show') }}" {{ form_enctype(formProfil) }} method="POST" class="fos_user_profile_show">
  30.         <table class="table">
  31.             <tr>
  32.                 <td>Niveau:</td>
  33.                 <td>{{ form_widget(formProfil.niveau, {'attr': {'class':'form-control register'} }) }}</td>
  34.             </tr>          
  35.  
  36.             <tr>
  37.                 <td>Fréquence:</td>
  38.                 <td>{{ form_widget(formProfil.frequence, {'attr': {'class':'form-control register'} }) }}</td>
  39.             </tr>
  40.  
  41.             <tr>
  42.                 <td>Description:</td>
  43.                 <td>{{ form_widget(formProfil.description, {'attr': {'class':'form-control register', 'placeholder':'Décrivez vous en quelques lignes' }}) }}</td>
  44.             </tr>
  45.  
  46.             <tr>
  47.                 <td>Photo de profil: <small>format image (.jpg / .bmp / .gif...) &lt; 2Mo</small></td>
  48.                 <td>{{ form_widget(formProfil.profilePictureFile, {'attr': {'class':'register'}}) }}</td>
  49.             </tr>
  50.  
  51.             <tr>
  52.                 <td>{{ form_widget(formProfil._token) }}
  53.                     {{ form_rest(formProfil)}}
  54.                 </td>
  55.                 <td><input type="submit" class="pull-right btn btn-info" value="Modifier mes informations"></td>
  56.             </tr>
  57.         </table>
  58.     </form>
  59.        
  60.     </div>
  61. {% endblock admin %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement