diff --git a/apimanager/base/context_processors.py b/apimanager/base/context_processors.py
index 1ad1068..81b1498 100644
--- a/apimanager/base/context_processors.py
+++ b/apimanager/base/context_processors.py
@@ -13,7 +13,7 @@ USER_CURRENT = "/users/current"
def api_root(request):
"""Returns the configured API_ROOT"""
- return {'API_ROOT': settings.API_ROOT}
+ return {'API_ROOT': settings.API_ROOT['v500']}
def portal_page(request):
diff --git a/apimanager/base/templates/base.html b/apimanager/base/templates/base.html
index 1926850..68a3053 100644
--- a/apimanager/base/templates/base.html
+++ b/apimanager/base/templates/base.html
@@ -44,7 +44,7 @@
{% trans "My User" %}
- {% trans "Invite Developer" %}
+ {% trans "Invite User" %}
{% url "api-metrics" as api_metrics_url %} {% url "connector-metrics" as connector_metrics_url %} {% url "metrics-summary" as metrics_summary_url %}
diff --git a/apimanager/users/forms.py b/apimanager/users/forms.py
index 6f0993b..4804fed 100644
--- a/apimanager/users/forms.py
+++ b/apimanager/users/forms.py
@@ -36,6 +36,12 @@ class AddEntitlementForm(forms.Form):
super(AddEntitlementForm, self).__init__(*args, **kwargs)
class CreateInvitationForm(forms.Form):
+
+ USER_CHOICE = (
+ ('', _('Any')),
+ ('DEVELOPER', 'DEVELOPER'),
+ ('CUSTOMER', 'CUSTOMER'),
+ )
bank_id = forms.ChoiceField(
label=_('Bank'),
widget=forms.Select(
@@ -93,14 +99,15 @@ class CreateInvitationForm(forms.Form):
),
required=True,
)
- purpose = forms.CharField(
+ purpose = forms.ChoiceField(
label=_('Purpose'),
- widget=forms.TextInput(
+ choices=USER_CHOICE,
+ widget=forms.Select(
attrs={
- 'placeholder': _('For the Bank App'),
'class': 'form-control',
}
),
+ initial='',
required=False,
)
diff --git a/apimanager/users/templates/users/invitation.html b/apimanager/users/templates/users/invitation.html
index efd4552..c6c3972 100644
--- a/apimanager/users/templates/users/invitation.html
+++ b/apimanager/users/templates/users/invitation.html
@@ -5,7 +5,7 @@
{% block content %}
-
{% trans "Invite Developer" %}
+
{% trans "Invite User" %}
+
+
+ {% if form.purpose.errors %}
{{ form.purpose.errors }}
{% endif %}
+
+ {% trans "Purpose" %}
+ {{ form.purpose }}
+
+
+
@@ -69,9 +78,9 @@
{% trans "First Name" %} |
{% trans "Last Name" %} |
{% trans "Email" %} |
- {% trans "company" %} |
- {% trans "country" %} |
- {% trans "status" %} |
+ {% trans "Company" %} |
+ {% trans "Country" %} |
+ {% trans "Status" %} |
{% for invitation in invitations %}