-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1005 from wassafshahzad/feature/update-edit-profi…
…le-form
- Loading branch information
Showing
7 changed files
with
95 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
project/accounts/templates/accounts/utils/update_settings_form.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<div class="step-title"> | ||
<div class="section"> | ||
<div class="title-lato center"> | ||
Account Settings | ||
</div> | ||
</div> | ||
<div class="accent-line"></div> | ||
{{form.non_field_errors}} | ||
<form style="padding-top: 10px;" method="POST"> | ||
{% csrf_token %} | ||
<div class='row'> | ||
<div class=" col s12 m6 "> | ||
<span class='error'>{{form.first_name.errors}}</span> | ||
{{form.first_name.label_tag}} | ||
{{form.first_name}} | ||
</div> | ||
<div class=" col s12 m6 "> | ||
<span class='error'>{{form.last_name.errors}}</span> | ||
{{form.last_name.label_tag}} | ||
{{form.last_name}} | ||
</div> | ||
</div> | ||
<div class='row'> | ||
<div class=" col s12 m6 "> | ||
<span class='error'>{{form.username.errors}}</span> | ||
{{form.username.label_tag}} | ||
{{form.username}} | ||
</div> | ||
<div class=" col s12 m6 "> | ||
<span class='error'>{{form.email.errors}}</span> | ||
{{form.email.label_tag}} | ||
{{form.email}} | ||
</div> | ||
</div> | ||
<div class='row'> | ||
<div class="col s24 m12"> | ||
<span> {{form.about_me.errors}}</span> | ||
{{form.about_me.label_tag}} | ||
{{form.about_me}} | ||
</div> | ||
</div> | ||
<div class="row center"> | ||
{%if not readonly %} | ||
<input class='btn' type='submit' value="Save Changes"></input> | ||
{% endif%} | ||
</div> | ||
</form> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 3 additions & 45 deletions
48
project/threads/templates/threads/partials/account/account_settings.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,10 @@ | ||
<!-- TODO: Content swipes up for edit functions --> | ||
<div class="account-edit scroll-col"> | ||
<div class="section"> | ||
<div class="section"> | ||
<div class="card"> | ||
<div class="card-content"> | ||
<div class="row"> | ||
<div class="title-lato center">Edit Profile</div> | ||
{% verbatim %} | ||
<!-- <div class="white-background-input-field input-field col s6"> | ||
<input class="save-account" id="first_name" type="text" value="{{this.model.get('first_name')}}"> | ||
<label for="first-name">First Name</label> | ||
</div> | ||
<div class="white-background-input-field input-field col s6"> | ||
<input class="save-account" id="last_name" type="text" value="{{this.model.get('last_name')}}"> | ||
<label for="last-name">Last Name</label> | ||
</div> --> | ||
<div class="white-background-input-field input-field col s12"> | ||
<input class="save-account" id="about_me" type="text" value="{{this.model.get('about_me')}}"> | ||
<label for="zipcode">About Me</label> | ||
</div> | ||
|
||
<div class="white-background-input-field input-field col s12"> | ||
<form method="post" enctype="multipart/form-data" id="profile_image_form"> | ||
<div class="section"> | ||
<label for="profile_image_form">Profile Image</label> | ||
</div> | ||
<div class="section"> | ||
<div id="confirmation-prompt" class="center hide">This is only a preview image. Press confirm to finish your upload.</div> | ||
</div> | ||
<div class="z-index-1 center"> | ||
<img class="preview-image responsive-img" id="profile-image" src="{{this.model.get('profile_image')}}"> | ||
</div> | ||
<div class="file-field input-field col s12 m8 push-m2" > | ||
<input class="upload-image btn waves-effect hide" type="submit" value="Confirm Upload"/> | ||
<div class="btn profile-image-pick"> | ||
<span>Choose Image</span> | ||
<input id="id_profile_image" name="profile_image" type="file"> | ||
</div> | ||
<div class="file-path-wrapper"> | ||
<input class="file-path validate" type="text"> | ||
</div> | ||
</div> | ||
</form> | ||
<div class="card"> | ||
<div class="card-content"> | ||
{% include "accounts/utils/update_settings_form.html" %} | ||
</div> | ||
{% endverbatim %} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |