@staff_member_required
def new_label(request):
    if (request.method == 'POST'):
        form = LabelForm(request.POST)
        if form.is_valid():
            form.save()
            return redirect('index')
    else:
        form = LabelForm()
    context = {'form': form}
    return render(request, 'annotationweb/new_label.html', context)
@staff_member_required
def new_label(request):
    if (request.method == 'POST'):
        form = LabelForm(request.POST)
        if form.is_valid():
            form.save()
            return redirect('index')
    else:
        form = LabelForm()
    context = {'form': form}
    return render(request, 'annotationweb/new_label.html', context)