From f70300da1b1cbabf609d35bab4392be204364f40 Mon Sep 17 00:00:00 2001 From: sanchegm Date: Mon, 1 Jul 2024 15:07:05 -0700 Subject: [PATCH] Edit button functionality and styling, Submit still WIP --- .gitignore | 1 + src/static/simple.css | 55 ++++++++++++++++++++++++++- src/templates/edit.html | 80 +++++++++++++++++++++++++++++++++++++++- src/templates/index.html | 13 ++++--- 4 files changed, 141 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index d9faab3..94304c2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # Environment variable files: .env +**/.DS_Store # Python stuff: .coverage diff --git a/src/static/simple.css b/src/static/simple.css index 0608ccf..a91c899 100644 --- a/src/static/simple.css +++ b/src/static/simple.css @@ -22,7 +22,7 @@ https://github.com/kevquirk/simple.css --text-light: #585858; --border: #898EA4; --accent: #0d47a1; - --accent-hover: #1266e2; + /* --accent-hover: #1266e2; */ --accent-text: var(--bg); --code: #d81b60; --preformatted: #444; @@ -40,7 +40,7 @@ https://github.com/kevquirk/simple.css --text: #dcdcdc; --text-light: #ababab; --accent: #ffb300; - --accent-hover: #ffe099; + /* --accent-hover: #ffe099; */ --accent-text: var(--bg); --code: #f06292; --preformatted: #ccc; @@ -721,4 +721,55 @@ sub { margin: 2rem 0; overflow-x: auto; padding: 1.5rem; +} + +.form-group{ + align-items: baseline; + padding-top: 10px; + padding-bottom: 10px; +} +.row { + display: flex; +} + +.column { + flex: 50%; + padding-left: 70px; +} + +label { + padding-right: 20px; +} + +.submit-button { + color: white; + background-color: #31b033; + border: #31b033; + width: 150px; + height: 60px; + margin: 15px; +} +button.submit-button:hover { + background-color: #53d455; + border: #53d455; +} + +.cancel-button { + color: white; + background-color: #b04831; + border: #b04831; + width: 150px; + height: 60px; + margin: 15px; +} + +button.cancel-button:hover { + background-color: #e06d53; + border: #e06d53; +} + + +.buttons { + display: inline; + margin: auto; } \ No newline at end of file diff --git a/src/templates/edit.html b/src/templates/edit.html index afb01ee..90b218c 100644 --- a/src/templates/edit.html +++ b/src/templates/edit.html @@ -10,6 +10,84 @@

ClinGen Affiliations Service

{% if not affiliation %}

Not found

{% else %} -

{{affiliation.name}}

+
+ + + + +
+
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ {% if not affiliation.members%} + + {% else %} + +
    + {% for member in affiliation.members %} +
  • {{member}}
  • + {% endfor %} +
+ {% endif %} +
+
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ {% if not affiliation.approvers%} + + {% else %} + +
    + {% for approver in affiliation.approvers %} +
  • {{approver}}
  • + {% endfor %} +
+ {% endif %} +
+
+
{% endif %} {% endblock %} diff --git a/src/templates/index.html b/src/templates/index.html index fd88e82..b60b3e7 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -24,18 +24,21 @@

ClinGen Affiliations Service

Status Type Family + ClinVar Submitter IDs Members Approvers - ClinVar Submitter IDs {% for affiliation in affiliations %} - Real edit - Edit - View + + + + + + {{ affiliation.id }} {{ affiliation.name }} @@ -44,9 +47,9 @@

ClinGen Affiliations Service

{{ affiliation.status }} {{ affiliation.type }} {{ affiliation.family }} + {{ affiliation.clinvar_submitter_ids }} {{ affiliation.members }} {{ affiliation.approvers }} - {{ affiliation.clinvar_submitter_ids }} {% endfor %}