Skip to content

Disable users to create subjects by themselves.#49

Open
spm2020spring wants to merge 2 commits intomasterfrom
fay-201831990323-close_user_create_subject
Open

Disable users to create subjects by themselves.#49
spm2020spring wants to merge 2 commits intomasterfrom
fay-201831990323-close_user_create_subject

Conversation

@spm2020spring
Copy link
Member

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

<input type="text" name="subject_id" style="display: none" value={{ subject_id }}><br>
<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

<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