예제 #1
0
    def process_form(request):
        company = CompanyForm(request.POST)
        if company.is_valid():
            company.save()
            company = CompanyForm()

        return render(request, "CompanyIndex.html", {"form": company},
                      {"mensaje": 'OK'})
예제 #2
0
 def views_editar(request):
     views_editar = CompanyForm()
     return render(request, "editar.html", {"form": views_editar})
예제 #3
0
 def views_index(request):
     views_index = CompanyForm()
     return render(request, "index.html", {"form": views_index})
예제 #4
0
 def detalles(request):
     detalle = CompanyForm()
     return render(request, "detalle.html", {"form": detalle})
예제 #5
0
 def index(request):
     company = CompanyForm()
     return render(request, "CompanyIndex.html", {"form": company})