Commit 1c794cca authored by Sylvain Coulange's avatar Sylvain Coulange
Browse files

suppression clavier

parent be12a53d
......@@ -97,16 +97,4 @@ def editEntry(request,Type):
data = commitData()
data.update = updateTime()
data.listCommits = subprocess.check_output(["git", "log", "--pretty=full"]).decode()
return render(request, 'commits.html', {'data': data}) """
def textEdit(request):
if request.POST.get('textAediter'):
data = Data()
data.text = ''
data.pphh = request.POST['textAediter']
data.update = ''
print(data)
else:
print('no text')
data = ''
return render(request, 'textEdit.html', {'data': data})
\ No newline at end of file
return render(request, 'commits.html', {'data': data}) """
\ No newline at end of file
......@@ -17,7 +17,7 @@ from django.contrib import admin
from django.urls import path
from hello.views import loginView, signinView, addUser
from todo.views import todoView, addTodo, deleteTodo
from colorapp.views import main, dicoView, editEntry, redirApp, main0, textEdit
from colorapp.views import main, dicoView, editEntry, redirApp, main0
urlpatterns = [
path('admin/', admin.site.urls),
......@@ -30,6 +30,5 @@ urlpatterns = [
path('app/', main),
path('app/0', main0),
path('app/dico/', dicoView),
path('app/dico/edit/<str:Type>/', editEntry),
path('app/text/', textEdit)
path('app/dico/edit/<str:Type>/', editEntry)
]
......@@ -35,11 +35,6 @@
</form>
</div>
<div class="win-black" id="clavier">
<div id="graphies"></div>
<object data="{% static 'clavier.svg'%}" type="image/svg+xml"></object>
</div>
<div>
<form method="POST">{% csrf_token %}
<button formaction="/app/dico/">Éditer le dictionnaire</button>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment