From ecad301ec9a8316cc28c7639cd3773e3c20fd6d6 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Tue, 17 Sep 2024 14:50:32 +0300 Subject: Refactor: Fix word for editor UI e.g commit to Save. --- gn2/wqflask/templates/gn_editor.html | 4 +-- gn2/wqflask/templates/gn_editor_commit.html | 8 +++--- gn2/wqflask/templates/gn_editor_results_page.html | 31 ++++++++++++----------- 3 files changed, 22 insertions(+), 21 deletions(-) (limited to 'gn2/wqflask/templates') diff --git a/gn2/wqflask/templates/gn_editor.html b/gn2/wqflask/templates/gn_editor.html index d89aaf0a..6f4685ac 100644 --- a/gn2/wqflask/templates/gn_editor.html +++ b/gn2/wqflask/templates/gn_editor.html @@ -29,10 +29,10 @@ hx-get="/editor/commit" hx-target="#output" hx-trigger="click" - hx-swap="innerHTML">Commit + hx-swap="innerHTML">Save
  • - Diff + Show Diff
  • - Commit your Changes + Save your Changes

    @@ -11,7 +11,7 @@

    @@ -24,9 +24,9 @@
    + class="btn btn-primary col-lg-3 col-lg-offset-1 col-sm-4 col-sm-offset-1">Save + class="btn col-lg-3 col-lg-offset-1 col-sm-4 col-sm-offset-1">Show Edit Diff

    diff --git a/gn2/wqflask/templates/gn_editor_results_page.html b/gn2/wqflask/templates/gn_editor_results_page.html index 6eaeb941..4f169a66 100644 --- a/gn2/wqflask/templates/gn_editor_results_page.html +++ b/gn2/wqflask/templates/gn_editor_results_page.html @@ -1,13 +1,5 @@
    -
    -
    -

    - Results status - {{ status }} -

    -
    -
    -
    {% if error %}

    Error-type: {{ error }} @@ -18,18 +10,27 @@

    {% else %}
    +
    +

    + Save results message: + + {% if status == '200' %} + Everything is up to date; No changes to Save + {% elif status == '201' %} + Saved your changes Successfully + {% else %} + {{ message }} + {% endif %} + +

    +
    +

    - New Commit Sha: + New Edit Sha: {{ commit_sha }}


    -
    -

    - Commit Message: - {{ message }} -

    -
    {% endif %}
    -- cgit v1.2.3