generated from schrodinger/hacking-the-gender-stack-2024-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
333fe76
commit 832e866
Showing
6 changed files
with
27 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from django import forms | ||
|
||
class oneMolecule(forms.Form): | ||
#class oneMolecule(forms.Form): | ||
#forms stuff |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{% extends 'shared/base.html' %} | ||
{% block content %} | ||
<h1>Comparing Subgraphs of Complex Structures</h1> | ||
<label for="structures">How many structures do you want to compare?</label> | ||
|
||
<br> | ||
<a href="{% url 'inputOneMolecule' %}"> | ||
<button type="submit" value="1">1</button> | ||
</a> | ||
|
||
<a href="{% url 'inputTwoMolecules' %}"> | ||
<button type="submit" value="2">2</button> | ||
</a> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
from django.shortcuts import render | ||
from django.http import HttpResponse | ||
from .forms import oneMolecule | ||
#from .forms import oneMolecule | ||
|
||
def getMolecules(request): | ||
return render(request, "projectApp/get-molecules.html") | ||
def home(request): | ||
return render(request, "projectApp/home.html") | ||
|
||
def inputMolecules(request): | ||
molecule = request.POST.get("molecule") | ||
print(molecule) | ||
return HttpResponse("Recieved molecule!") | ||
|
||
""" | ||
def inputOneMolecule(request): | ||
form = oneMolecules() | ||
return render(request, 'projectApp/oneMolecule.html', {'form': form}) | ||
""" | ||
return render(request, "projectApp/oneMolecule.html") | ||
|
||
def inputTwoMolecules(request): | ||
return render(request, "projectApp/twoMolecules.html") |