Skip to content

Instantly share code, notes, and snippets.

@headzoo
Last active September 26, 2017 16:31
Show Gist options
  • Save headzoo/dc58f45fc9dd8e774601604712ad5c09 to your computer and use it in GitHub Desktop.
Save headzoo/dc58f45fc9dd8e774601604712ad5c09 to your computer and use it in GitHub Desktop.
{% extends "AppBundle::base.html.twig" %} {% block title %}Account{% endblock %} {% block body %}
<h2 class="center-align up-page-title flow-text">
Account
</h2> {% include "AppBundle:_layout:flash-messages.html.twig" %}
<form method="post" enctype="multipart/form-data">
<div class="container">
<div class="row">
<div class="input-field col s6">
<input id="password" name="password" type="password" class="validate" autocomplete="off" />
<label for="password">Password</label>
</div>
<div class="input-field col s6">
<input id="email" name="email" type="email" class="validate" value="{{ user.email }}" />
<label for="email">Email</label>
</div>
</div>
<div class="row">
<div class="input-field col s6">
<input id="location" name="location" type="text" class="validate" />
<label for="location">Location</label>
</div>
<div class="input-field col s6">
<input id="website" name="website" type="text" class="validate" />
<label for="website">Website</label>
</div>
<!-- End second form row -->
</div>
<div class="row">
<div class="input-field col s12" style="">
<textarea id="bio" class="biotextarea materialize-textarea"></textarea>
<label for="bio">Bio Profile</label>
</div>
</div>
<div class="row">
<div class="file-field input-field col s6">
<div class="btn"> <span>Select Avatar Image</span>
<input id="avatar" type="file" name="avatar" accept="image/*" /> </div>
<div class="file-path-wrapper">
<input class="file-path validate" type="text" /> </div>
</div>
<!-- End avatar upload -->
</div>
<!-- End third form row -->
<button type="submit" class="waves-effect waves-light btn">Save</button>
</div>
</form>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script>
// your javascript here
</script>
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment