def add_request_type_view(request):
    ''' View to add a new request type.  Restricted to presidents and superadmins. '''
    form = RequestTypeForm(request.POST or None)
    if form.is_valid():
        rtype = form.save()
        messages.add_message(request, messages.SUCCESS,
                             MESSAGES['REQUEST_TYPE_ADDED'].format(typeName=rtype.name))
        return HttpResponseRedirect(reverse('managers:manage_request_types'))
    return render_to_response('edit_request_type.html', {
        'page_name': "Admin - Add Request Type",
        'request_types': RequestType.objects.all(),
        'form': form,
        }, context_instance=RequestContext(request))
View to add a new request type.  Restricted to presidents and superadmins.