From f2530a1c5bf8b4729357d6e5b06650a4e70cdb62 Mon Sep 17 00:00:00 2001 From: ske087 Date: Sat, 9 Aug 2025 15:34:40 +0300 Subject: [PATCH] Update edit_post.html to match modern gradient design of new_post.html - Applied consistent gradient background styling - Updated form layout to match new_post design - Modernized UI components with backdrop blur effects - Enhanced JavaScript functionality for file uploads - Improved preview modal styling - Updated button styling to match site theme --- app/templates/community/edit_post.html | 693 +++++++++++++++---------- 1 file changed, 408 insertions(+), 285 deletions(-) diff --git a/app/templates/community/edit_post.html b/app/templates/community/edit_post.html index ebfafd2..fc8d39d 100644 --- a/app/templates/community/edit_post.html +++ b/app/templates/community/edit_post.html @@ -1,201 +1,268 @@ {% extends "base.html" %} {% block title %}Edit Adventure - {{ post.title }}{% endblock %} +{% block head %} + +{% endblock %} + {% block content %} -
-
- -
-
-
-

- Edit Your Adventure -

-
-
-
- -
- - -
Make it catchy and descriptive!
-
- - -
- - -
Optional - appears under the main title
-
- - -
- - -
- - - {% if post.images %} - {% set cover_image = post.images | selectattr('is_cover', 'equalto', True) | first %} - {% if cover_image %} -
- -
- Current cover - {{ cover_image.original_name }} -
-
- {% endif %} - {% endif %} - - -
- - -
- Optional - Upload a new cover photo to replace the current one -
-
-
- - -
- - -
- - You can use **bold text** and *italic text* in your story! -
-
- - - {% if post.gpx_files %} -
- - {% for gpx_file in post.gpx_files %} -
-
- -
- {{ gpx_file.original_name }} - - Size: {{ "%.1f"|format(gpx_file.size / 1024) }} KB - • Uploaded: {{ gpx_file.created_at.strftime('%Y-%m-%d') }} - -
- - Download - -
-
- {% endfor %} -
- {% endif %} - - -
- - -
- Optional - Upload a new GPX file to replace the current route -
-
-
- - -
- - Cancel - - - -
-
-
-
+
+
+ +
+

+ Edit Your Adventure +

+

+ Update your motorcycle journey story - "{{ post.title }}" +

- -
-
-
-
- Editing Guidelines -
+ +
+ +
+

📝 Basic Information

+ + + {% if post.images %} + {% set cover_image = post.images | selectattr('is_cover', 'equalto', True) | first %} + {% if cover_image %} +
+ +
+ Current cover +

{{ cover_image.original_name }}

+
+
+ {% endif %} + {% endif %} + + +
+ +
+ +
+
📸
+

Click to upload new cover image

+

Recommended: 1920x1080 pixels

+
+ +
-
-
-
What happens after editing?
-

Your updated post will be resubmitted for admin review before being published again.

-
-
-
Photo Guidelines
-
    -
  • Use high-quality images (JPEG, PNG)
  • -
  • Landscape orientation works best for cover photos
  • -
  • Maximum file size: 10MB
  • + +
    + + +
    + + +
    + + +
    + + +
    + + +
    +
+ + +
+

📖 Adventure Story

+ + +
+ + +
+ + You can use **bold text** and *italic text* in your story! +
+
+
+ + +
+

🗺️ Route File

+ + + {% if post.gpx_files %} +
+ + {% for gpx_file in post.gpx_files %} +
+
+
+ +
+
{{ gpx_file.original_name }}
+
+ Size: {{ "%.1f"|format(gpx_file.size / 1024) }} KB + • Uploaded: {{ gpx_file.created_at.strftime('%Y-%m-%d') }} +
+
+
+ + Download + +
+
+ {% endfor %} +
+ {% endif %} + + +
+ +
+ {% if post.gpx_files %} + Replace GPX Route File + {% else %} + Upload GPX Route File + {% endif %} +
+
+ Share your exact route so others can follow your adventure +
+ + + +
+
+ + +
+

+ Editing Guidelines +

+ +
+
+

+ What happens after editing? +

+

Your updated post will be resubmitted for admin review before being published again.

+
+ +
+

+ Photo Guidelines +

+
    +
  • • Use high-quality images (JPEG, PNG)
  • +
  • • Landscape orientation works best
  • +
  • • Maximum file size: 10MB
- -
-
GPX File Tips
-
    -
  • Export from your GPS device or app
  • -
  • Should contain track points
  • -
  • Will be displayed on the community map
  • + +
    +

    + GPX File Tips +

    +
      +
    • • Export from your GPS device or app
    • +
    • • Should contain track points
    • +
    • • Will be displayed on the community map
    - -
    -
    Difficulty Levels
    -
    + +
    +

    + Difficulty Levels +

    +
    Easy: Paved roads, good weather
    Moderate: Some gravel, hills
    Challenging: Off-road, technical
    @@ -203,36 +270,54 @@
    Expert: Dangerous, experts only
    +
    -
    - +
    +
    + Note: Updating your post will reset its status to "pending review."
    -
    + + +
    + + + Cancel + + + +
    +