From 955fa73661b23a7bf6eb9b03a82194f36e8af68c Mon Sep 17 00:00:00 2001 From: AbdulSamad <47020656+4samad@users.noreply.github.com> Date: Tue, 12 Apr 2022 01:17:52 +0400 Subject: [PATCH] add crop on profile image upload --- .../templates/portfolio/forms/_profile.html | 124 ++++++++++++++++-- .../templates/portfolio/portfolio_form.html | 5 +- 2 files changed, 117 insertions(+), 12 deletions(-) diff --git a/codershq/templates/portfolio/forms/_profile.html b/codershq/templates/portfolio/forms/_profile.html index 15ebb6aa..cbb47cdc 100644 --- a/codershq/templates/portfolio/forms/_profile.html +++ b/codershq/templates/portfolio/forms/_profile.html @@ -8,14 +8,46 @@

{% else %} - + {% endif %}

Jane Sparrow
Blockchain Developer - - +
+ {% csrf_token %} + + +
+ +
+
@@ -23,14 +55,15 @@
Jane Sparrow< class="flex-auto bg-white rounded-lg border border-gray-200 shadow-md dark:bg-gray-800 dark:border-gray-700 m-2">
- {% csrf_token %} + {% csrf_token %}
- +
@@ -38,8 +71,7 @@
Jane Sparrow<
+ placeholder="A little about you">{% if user.bio is not None %}{{user.bio}}{% endif %}

Brief description for your profile. URLs are hyperlinked.

@@ -59,7 +91,8 @@
Jane Sparrow<

or drag and drop

@@ -75,4 +108,73 @@
Jane Sparrow<
+ + + + + \ No newline at end of file diff --git a/codershq/templates/portfolio/portfolio_form.html b/codershq/templates/portfolio/portfolio_form.html index f53ed0c2..670c8370 100644 --- a/codershq/templates/portfolio/portfolio_form.html +++ b/codershq/templates/portfolio/portfolio_form.html @@ -78,7 +78,6 @@ - {% endblock content %} \ No newline at end of file