mirror of
https://github.com/OpenBankProject/API-Manager.git
synced 2026-02-06 14:56:47 +00:00
refactor/modify the invitation form
This commit is contained in:
parent
9114537a56
commit
27b13eaa6f
@ -40,34 +40,27 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-3">
|
||||
<div class="col-xs-12 col-sm-4">
|
||||
{% if form.email.errors %}<div class="alert alert-danger">{{ form.email.errors }}</div>{% endif %}
|
||||
<div class="form-group">
|
||||
{{ form.email.label_tag }}
|
||||
{{ form.email }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-3">
|
||||
<div class="col-xs-12 col-sm-4">
|
||||
{% if form.company.errors %}<div class="alert alert-danger">{{ form.company.errors }}</div>{% endif %}
|
||||
<div class="form-group">
|
||||
{{ form.company.label_tag }}
|
||||
{{ form.company }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-3">
|
||||
<div class="col-xs-12 col-sm-4">
|
||||
{% if form.country.errors %}<div class="alert alert-danger">{{ form.country.errors }}</div>{% endif %}
|
||||
<div class="form-group">
|
||||
{{ form.country.label_tag }}
|
||||
{{ form.country }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-3">
|
||||
{% if form.purpose.errors %}<div class="alert alert-danger">{{ form.purpose.errors }}</div>{% endif %}
|
||||
<div class="form-group">
|
||||
{{ form.purpose.label_tag }}
|
||||
{{ form.purpose }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="submit" value="Create" class="btn btn-primary" />
|
||||
@ -79,7 +72,6 @@
|
||||
<th>Email</th>
|
||||
<th>company</th>
|
||||
<th>country</th>
|
||||
<th>purpose</th>
|
||||
<th>status</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -90,7 +82,6 @@
|
||||
<td>{{ invitation.email }}</td>
|
||||
<td>{{ invitation.company }}</td>
|
||||
<td>{{ invitation.country }}</td>
|
||||
<td>{{ invitation.purpose }}</td>
|
||||
<td>{{ invitation.status }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
@ -285,7 +285,7 @@ class InvitationView(LoginRequiredMixin, FormView):
|
||||
'email': data['email'],
|
||||
'company': data['company'],
|
||||
'country': data['country'],
|
||||
'purpose': data['purpose']
|
||||
'purpose': 'DEVELOP'
|
||||
}
|
||||
context = self.get_context_data(**kwargs)
|
||||
try:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user