-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added detail page for draft registrations in admin app
- Loading branch information
1 parent
e62c9fc
commit 0602579
Showing
7 changed files
with
132 additions
and
5 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
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{% load node_extras %} | ||
|
||
<tr> | ||
<td>Contributors</td> | ||
<td> | ||
<table class="table table-bordered table-hover"> | ||
<thead> | ||
<tr> | ||
<td>Email</td> | ||
<td>Name</td> | ||
<td>Permissions</td> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for user in draft_registration.contributors %} | ||
<tr> | ||
<td> | ||
<a href="{{ user | reverse_user }}"> | ||
{{ user }} | ||
</a> | ||
</td> | ||
<td>{{ user.fullname }}</td> | ||
<td>{% get_permissions user draft_registration %}</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</td> | ||
</tr> |
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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{% extends 'base.html' %} | ||
{% load static %} | ||
{% load node_extras %} | ||
{% block title %} | ||
<title>{{ draft_registration.type|cut:'osf.'|title }}: {{draft_registration.guid}} </title> | ||
{% endblock title %} | ||
{% block content %} | ||
<div class="container-fluid"> | ||
<ul class="messages"> | ||
{% for message in messages %} | ||
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li> | ||
{% endfor %} | ||
</ul> | ||
<div class="row"> | ||
<h2>Draft Registration: <b>{{ draft_registration.title }}</b> <a href="{{ draft_registration.absolute_url }}"> ({{draft_registration.guid}})</a> </h2> | ||
<table class="table table-striped"> | ||
<thead> | ||
<tr> | ||
<th>Field</th> | ||
<th>Value</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>Guid</td> | ||
<td>{{ draft_registration.guid }}</td> | ||
</tr> | ||
<tr> | ||
<td>Url</td> | ||
<td><a href="{{ draft_registration.absolute_url }}">{{ draft_registration.absolute_url }}</a></td> | ||
</tr> | ||
<tr> | ||
<td>Title</td> | ||
<td>{{ draft_registration.title }}</td> | ||
</tr> | ||
<tr> | ||
<td>Creator</td> | ||
<td><a href="{{ draft_registration.creator | reverse_user }}">{{ draft_registration.creator }}</a></td> | ||
</tr> | ||
<tr> | ||
<td>Deleted</td> | ||
<td>{{ draft_registration.deleted }}</td> | ||
</tr> | ||
<tr> | ||
<td>Public</td> | ||
<td>{{ draft_registration.is_public }}</td> | ||
</tr> | ||
<tr> | ||
<td>Provider</td> | ||
{% if draft_registration.provider %} | ||
<td><a href="{{ draft_registration | reverse_registration_provider }}">{{ draft_registration.provider.name }}</a></td> | ||
{% else %} | ||
<td>None</td> | ||
{% endif %} | ||
</tr> | ||
{% include "draft_registrations/contributors.html" with draft_registration=draft_registration %} | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
{% endblock content %} |
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