forked from ubccr/coldfront
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #567 from ucb-rit/develop
Allow admin management of billing IDs; improve user-facing wording
- Loading branch information
Showing
8 changed files
with
461 additions
and
26 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
27 changes: 27 additions & 0 deletions
27
coldfront/core/billing/templates/billing/billing_id_create.html
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,27 @@ | ||
{% extends "common/base.html" %} | ||
{% load common_tags %} | ||
{% load crispy_forms_tags %} | ||
{% load static %} | ||
|
||
{% block title %} | ||
Create LBL Project ID | ||
{% endblock %} | ||
|
||
{% block content %} | ||
|
||
<h1>Create LBL Project ID</h1> | ||
<hr> | ||
|
||
<form method="post"> | ||
{% csrf_token %} | ||
{{ form|crispy }} | ||
<input type="submit" class="btn btn-primary" value="Create"> | ||
</form> | ||
|
||
<script> | ||
$("#navbar-main > ul > li.active").removeClass("active"); | ||
$("#navbar-admin").addClass("active"); | ||
$("#navbar-billing-id-usages").addClass("active"); | ||
</script> | ||
|
||
{% endblock %} |
37 changes: 37 additions & 0 deletions
37
coldfront/core/billing/templates/billing/billing_id_set.html
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,37 @@ | ||
{% extends "common/base.html" %} | ||
{% load common_tags %} | ||
{% load crispy_forms_tags %} | ||
{% load static %} | ||
|
||
{% block title %} | ||
Set LBL Project ID: {{ billing_id_type_label }} | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<script type='text/javascript' src="{% static 'selectize/selectize.min.js' %}"></script> | ||
<link rel='stylesheet' type='text/css' href="{% static 'selectize/selectize.bootstrap3.css' %}"/> | ||
|
||
<h1>Set LBL Project ID: {{ billing_id_type_label }}</h1> | ||
<hr> | ||
|
||
<form method="post"> | ||
{% csrf_token %} | ||
<input type="hidden" name="next" value="{{ request.GET.next }}"> | ||
{{ form|crispy }} | ||
<input type="submit" class="btn btn-primary" value="Set"> | ||
</form> | ||
|
||
<script> | ||
$('select').selectize({ | ||
create: false, | ||
sortField: 'text' | ||
}); | ||
</script> | ||
|
||
<script> | ||
$("#navbar-main > ul > li.active").removeClass("active"); | ||
$("#navbar-admin").addClass("active"); | ||
$("#navbar-billing-id-usages").addClass("active"); | ||
</script> | ||
|
||
{% 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
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
Oops, something went wrong.