Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable users to create subjects by themselves. #49

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

spm2020spring
Copy link
Member

冯安豫, 王佳俊, 应一, 曾瑞

<button type="submit" class="btn btn-primary" onclick="postArticle()">post article</button>
{% if session.get('logged_in') %}
<button type="submit" class="btn btn-primary" onclick="createSubject()">add subcategory</button>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GenjiLemon

What is createSubject()? A JavaScript function?

-Hui

@@ -59,11 +59,12 @@
<div class="card-body">
<p class="card-text">You are in {{ url }}</p>
<form name="myform" method="get" onsubmit="return verify();">
<input type="text" name="subject_id" style="display: none" value={{ subject_id }}>
<input type="email" name="email" id="email" placeholder="Enter Email to post or create" required="required"/><br><br>
Copy link
Member Author

@spm2020spring spm2020spring Dec 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GenjiLemon

Why did you remove this line (i.e., line 63)?

-Hui

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants