Added title, and changed layout
This commit is contained in:
parent
c2efc2cae0
commit
fdef48041d
|
@ -1,3 +1,5 @@
|
|||
from django.contrib.auth.decorators import login_required
|
||||
from django.utils.decorators import method_decorator
|
||||
from django.core.mail import EmailMessage
|
||||
from django.contrib import messages
|
||||
from mhackspace.requests.forms import UserRequestForm
|
||||
|
@ -6,6 +8,7 @@ from django.views.generic import ListView
|
|||
from django.views.generic.edit import FormView
|
||||
|
||||
|
||||
@method_decorator(login_required, name='dispatch')
|
||||
class RequestsForm(FormView):
|
||||
template_name = 'pages/requests.html'
|
||||
form_class = UserRequestForm
|
||||
|
|
|
@ -45,15 +45,20 @@
|
|||
<tr>
|
||||
<th scope="row"> {{ forloop.counter }} </th>
|
||||
<td>
|
||||
{{ request.request_type }}
|
||||
{{ request.request_type_string }}
|
||||
</td>
|
||||
<td>
|
||||
{{ request.created_date }}
|
||||
</td>
|
||||
<td>
|
||||
{{ request.description }}
|
||||
{{ request.title }}
|
||||
</td>
|
||||
<td>
|
||||
<button data-toggle="collapse" data-target="#expand{{forloop.counter}}" class="fa fa-expand ml-auto" ></button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id="expand{{forloop.counter}}" colspan="5" class="collapse">{{ request.description }}</td>
|
||||
</tr>
|
||||
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in New Issue