Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% block admin %}
- <div class="fos_user_user_show">
- <h1>Gérer mon compte</h1>
- {% set profilePicturePath = app.security.getToken().getUser().getProfilePicturePath() %}
- {% if profilePicturePath is not null and profilePicturePath is not empty %}
- <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" />
- {% else %}
- <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" />
- {% endif %}
- <ul>
- <li>Nom d'utilisateur: {{ app.security.getToken().getUser().getUsername() }} </li>
- <li>Nom: {{ app.security.getToken().getUser().getNom() }} </li>
- <li>Prénom: {{ app.security.getToken().getUser().getPrenom() }} </li>
- <li>Nombre d'avis postés sur le site: {{ app.security.getToken().getUser().getAvis()|length }}
- <li>Membre depuis le: {{ app.security.getToken().getUser().getCreatedOn()|date('d-m-Y') }}
- </ul>
- <br style="clear: both;" />
- {{ render(controller('WIYUserBundle:ChangePassword:changePasswordInc')) }}
- <h3>Modifier mes données personnelles</h3>
- {% if not formProfil.vars.valid %}
- <div class="alert alert-danger" role="alert">
- <!-- form.errors -->
- {% for item in formProfil %}
- {{ form_errors(item) }}
- {% endfor %}
- </div>
- {% endif %}
- <form action="{{ path('fos_user_profile_show') }}" {{ form_enctype(formProfil) }} method="POST" class="fos_user_profile_show">
- <table class="table">
- <tr>
- <td>Niveau:</td>
- <td>{{ form_widget(formProfil.niveau, {'attr': {'class':'form-control register'} }) }}</td>
- </tr>
- <tr>
- <td>Fréquence:</td>
- <td>{{ form_widget(formProfil.frequence, {'attr': {'class':'form-control register'} }) }}</td>
- </tr>
- <tr>
- <td>Description:</td>
- <td>{{ form_widget(formProfil.description, {'attr': {'class':'form-control register', 'placeholder':'Décrivez vous en quelques lignes' }}) }}</td>
- </tr>
- <tr>
- <td>Photo de profil: <small>format image (.jpg / .bmp / .gif...) < 2Mo</small></td>
- <td>{{ form_widget(formProfil.profilePictureFile, {'attr': {'class':'register'}}) }}</td>
- </tr>
- <tr>
- <td>{{ form_widget(formProfil._token) }}
- {{ form_rest(formProfil)}}
- </td>
- <td><input type="submit" class="pull-right btn btn-info" value="Modifier mes informations"></td>
- </tr>
- </table>
- </form>
- </div>
- {% endblock admin %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement