-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
73 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,93 +1,66 @@ | ||
{% extends 'base.html' %} | ||
{% block header %} | ||
<h1>ClinGen Affiliations Service</h1> | ||
<nav> | ||
<p>You are logged in as: {{ email }}</p> | ||
<a href="/logout">Log out</a> | ||
</nav> | ||
<h1>ClinGen Affiliations Service</h1> | ||
<nav> | ||
<p>You are logged in as: {{ email }}</p> | ||
<a href="/logout">Log out</a> | ||
</nav> | ||
{% endblock %} | ||
{% block content %} | ||
{% if not affiliation %} | ||
<p>Not found</p> | ||
<p>Not found</p> | ||
{% else %} | ||
<div class="buttons"> | ||
<button class="submit-button">Submit</button> | ||
<a href="/"> | ||
<button class="cancel-button">Cancel Edit</button> | ||
</a> | ||
<a href="/"> | ||
<button class="cancel-button">Cancel Edit</button> | ||
</a> | ||
</div> | ||
<div class="row"> | ||
<div class="column"> | ||
<div class="form-group"> | ||
<label>ID:</label> | ||
<input type="text" value="{{affiliation.id}}"/> | ||
</div> | ||
<div class="form-group"> | ||
<label>Coordinator:</label> | ||
<input type="text" value="{{affiliation.coordinator}}"/> | ||
<div class="center"> | ||
<h3>ID: {{affiliation.id}}</h3> | ||
</div> | ||
<form> | ||
<div class="form-grid"> | ||
<div class="form-group column"> | ||
<label>Name:</label> | ||
<input type="text" value="{{affiliation.name}}" placeholder="Name"/> | ||
</div> | ||
<div class="form-group"> | ||
<div class="form-group column"> | ||
<label>Status: {{affiliation.status}}</label> | ||
<select> | ||
<option>Active</option> | ||
<option>Inactive</option> | ||
</select> | ||
</div> | ||
<div class="form-group"> | ||
<label>Family:</label> | ||
<input type="text" value="{{affiliation.family}}"/> | ||
</div> | ||
<div class="form-group"> | ||
<label>Add New Member:</label> | ||
<input type="text" value=""/> | ||
</div> | ||
<div class="form-group"> | ||
{% if not affiliation.members%} | ||
<label>No Current Members</label> | ||
{% else %} | ||
<label>Current Members:</label> | ||
<ul> | ||
{% for member in affiliation.members %} | ||
<li contenteditable="true">{{member}}</li> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
</div> | ||
</div> | ||
<div class="column"> | ||
<div class="form-group"> | ||
<label>Name:</label> | ||
<input type="text" value="{{affiliation.name}}"/> | ||
<div class="form-group column"> | ||
<label>Coordinator:</label> | ||
<input type="text" value="{{affiliation.coordinator}}" placeholder="Name" /> | ||
</div> | ||
<div class="form-group"> | ||
<div class="form-group column"> | ||
<label>Coordinator Email:</label> | ||
<input type="text" value="{{affiliation.coordinator_email}}"/> | ||
<input type="text" value="{{affiliation.coordinator_email}}" placeholder="[email protected]"/> | ||
</div> | ||
<div class="form-group"> | ||
<label>Type:</label> | ||
<input type="text" value="{{affiliation.type}}"/> | ||
</div> | ||
<div class="form-group"> | ||
<label>ClinVar Submitter IDs:</label> | ||
<input type="text" value="{{affiliation.clinvar_submitter_ids}}"/> | ||
</div> | ||
<div class="form-group"> | ||
<label>Add New Approver:</label> | ||
<input type="text" value=""/> | ||
<div class="form-group column"> | ||
<label>Family:</label> | ||
<input type="text" value="{{affiliation.family}}" placeholder="Family"/> | ||
</div> | ||
<div class="form-group"> | ||
{% if not affiliation.approvers%} | ||
<label>No Current Approvers</label> | ||
{% else %} | ||
<label>Current Approvers:</label> | ||
<ul> | ||
{% for approver in affiliation.approvers %} | ||
<li contenteditable="true">{{approver}}</li> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
<div class="form-group column"> | ||
<label>Type:</label> | ||
<input type="text" value="{{affiliation.type}}" placeholder="Type"/> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label>Members:</label> | ||
<textarea rows="5" cols="100" placeholder="Name One Name Two">{{'\n'.join(affiliation.members)|safe}}</textarea> | ||
</div> | ||
<div class="form-group"> | ||
<label>Approvers:</label> | ||
<textarea rows="5" cols="100" placeholder="Name One Name Two">{{'\n'.join(affiliation.approvers)|safe}}</textarea> | ||
</div> | ||
<div class="form-group"> | ||
<label>ClinVar Submitter IDs:</label> | ||
<textarea rows="5" cols="100" placeholder="001 002">{{'\n'.join(affiliation.clinvar_submitter_ids)|safe}}</textarea> | ||
</div> | ||
</form> | ||
{% endif %} | ||
{% endblock %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters