diff options
author | Alexander_Kabui | 2024-09-17 14:50:32 +0300 |
---|---|---|
committer | Alexander_Kabui | 2024-09-17 14:50:32 +0300 |
commit | ecad301ec9a8316cc28c7639cd3773e3c20fd6d6 (patch) | |
tree | 2732e792b9e2e4d65c24fa25a3bd6e80bbf9c8e9 /gn2/wqflask/templates | |
parent | 02b2ac384953f2d69479a1ea53a071043394b590 (diff) | |
download | genenetwork2-ecad301ec9a8316cc28c7639cd3773e3c20fd6d6.tar.gz |
Refactor: Fix word for editor UI e.g commit to Save.
Diffstat (limited to 'gn2/wqflask/templates')
-rw-r--r-- | gn2/wqflask/templates/gn_editor.html | 4 | ||||
-rw-r--r-- | gn2/wqflask/templates/gn_editor_commit.html | 8 | ||||
-rw-r--r-- | gn2/wqflask/templates/gn_editor_results_page.html | 31 |
3 files changed, 22 insertions, 21 deletions
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</a> + hx-swap="innerHTML">Save</a> </li> <li> - <a hx-trigger="click" id="diffBtn" hx-swap="innerHTML">Diff</a> + <a hx-trigger="click" id="diffBtn" hx-swap="innerHTML">Show Diff</a> </li> <li> <a href="#" diff --git a/gn2/wqflask/templates/gn_editor_commit.html b/gn2/wqflask/templates/gn_editor_commit.html index 2eb3e60c..6006f6d2 100644 --- a/gn2/wqflask/templates/gn_editor_commit.html +++ b/gn2/wqflask/templates/gn_editor_commit.html @@ -3,7 +3,7 @@ <div> <div> <h2> - <i>Commit your Changes</i> + <i>Save your Changes</i> </h2> </div> </div> @@ -11,7 +11,7 @@ <div> <div class="row"> <label class="col-sm-8" for="message"> - <i>*Commit Message*</i> + <i>*Describe edit*</i> </label> </div> <br> @@ -24,9 +24,9 @@ <br> <div class="row"> <button id="btn-commit" - class="btn btn-primary col-lg-3 col-lg-offset-1 col-sm-4 col-sm-offset-1">Commit</button> + class="btn btn-primary col-lg-3 col-lg-offset-1 col-sm-4 col-sm-offset-1">Save</button> <button id="btn-diff" - class="btn col-lg-3 col-lg-offset-1 col-sm-4 col-sm-offset-1">Show Diff</button> + class="btn col-lg-3 col-lg-offset-1 col-sm-4 col-sm-offset-1">Show Edit Diff</button> </div> <br> <div id="diff_page"></div> 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 @@ <section classs="row commit-content" style="padding-top:25px"> <div class="col-sm-10 col-sm-offset-1"> - <div> - <div> - <h2> - <i>Results status - {{ status }}</i> - </h2> - </div> - </div> - <br> {% if error %} <h1> Error-type: <mark style="font-family: 'Linux Libertine','Georgia','Times','Source Serif Pro',serif"><b><i>{{ error }}</i></b></mark> @@ -18,18 +10,27 @@ </h3> {% else %} <div> + <div class="lead"> + <h3> + Save results message: + <mark style="font-family: 'Linux Libertine','Georgia','Times','Source Serif Pro',serif"><b> + {% if status == '200' %} + <i>Everything is up to date; No changes to Save</i> + {% elif status == '201' %} + <i> Saved your changes Successfully </i> + {% else %} + {{ message }} + {% endif %} + </b></mark> + </h3> + </div> + <br /> <h3> - New Commit Sha: <span class="lead"> + New Edit Sha: <span class="lead"> <mark style="font-family: 'Linux Libertine','Georgia','Times','Source Serif Pro',serif"><b><i>{{ commit_sha }}</i></b></mark> </span> </h3> <br /> - <div class="lead"> - <h3> - Commit Message: - <mark style="font-family: 'Linux Libertine','Georgia','Times','Source Serif Pro',serif"><b><i>{{ message }}</i></b></mark> - </h3> - </div> </div> {% endif %} <br> |