-
Notifications
You must be signed in to change notification settings - Fork 112
Initialize setting review / proposal stage page #782
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
Draft
alice6373
wants to merge
24
commits into
pycontw:master
Choose a base branch
from
alice6373:page-for-setting-review-stage
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 22 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
1497d90
Initialize setting review / proposal stage page
alice6373 f3095e6
Alice fixup with love
alice6373 8bb98fb
Merge branch 'master' into page-for-setting-review-stage
alice6373 57d036c
Clear gui
alice6373 e3fcda2
Merge branch 'master' into page-for-setting-review-stage
alice6373 2881ea9
Default timezone sring handling
alice6373 db4fea7
rename to Review Stages
alice6373 6ef2f5b
Generating timezone dynamically with pytz
alice6373 211bf3c
Delete comment in review_stages.html
alice6373 048c941
Delete print() in view.py
alice6373 76c39dc
Merge branch 'master' into page-for-setting-review-stage
alice6373 fdd09ab
Update GUI
alice6373 8ade9c1
return value add reviews_state()
alice6373 cfb5fa1
Rename First Round Review_2 to First Round Review
alice6373 afaf6d5
Change the typography to vertical
alice6373 88ee598
Rename First Round Review_1 to Locked (proposal editing and reviewing…
alice6373 9ef909e
Enhance user friendliness : accepting pycontw-2020.proposals.disable.…
alice6373 d579e69
Enhance user friendliness : Try more django date format (DATETIME_INP…
alice6373 2fb312d
Enhance user friendliness : display current review stage setting
alice6373 500b9db
Enhance user friendliness : automatically load the current settings t…
alice6373 ced5b07
Move url.py & view.py to more precise folder
alice6373 928e2d1
Fix problem that current settings will not be loaded after submitting…
alice6373 32f30a1
Merge branch 'master' into page-for-setting-review-stage
alice6373 c4ef31e
proposals.disabled.after not be required
alice6373 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,10 +1,12 @@ | ||
| from django.conf.urls import url | ||
|
|
||
| from .views import ReviewEditView, TalkProposalListView | ||
|
|
||
| from . import views | ||
|
|
||
| urlpatterns = [ | ||
| url(r'^$', TalkProposalListView.as_view(), name='review_proposal_list'), | ||
| url(r'^talk/(?P<proposal_pk>\d+)/$', | ||
| ReviewEditView.as_view(), name='review_edit'), | ||
| ReviewEditView.as_view(), | ||
| name='review_edit'), | ||
| url(r'^review-stages/$', views.review_stages, name='review_stages'), | ||
| ] |
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -8,3 +8,8 @@ | |
| .text-emphasize { | ||
| @include roboto-medium(); | ||
| } | ||
|
|
||
| .input-customized-size input{ | ||
| width: 16.2em; | ||
| } | ||
|
|
||
This file contains hidden or 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,47 @@ | ||
| .material-switch > input[type="checkbox"] { | ||
| display: none; | ||
| } | ||
|
|
||
| .material-switch > label { | ||
| cursor: pointer; | ||
| height: 0px; | ||
| position: relative; | ||
| width: 40px; | ||
| } | ||
|
|
||
| .material-switch > label::before { | ||
| background: rgb(0, 0, 0); | ||
| box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.5); | ||
| border-radius: 8px; | ||
| content: ''; | ||
| height: 16px; | ||
| margin-top: -8px; | ||
| position:absolute; | ||
| opacity: 0.3; | ||
| transition: all 0.4s ease-in-out; | ||
| width: 40px; | ||
| } | ||
|
|
||
| .material-switch > label::after { | ||
| background: rgb(255, 255, 255); | ||
| border-radius: 16px; | ||
| box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3); | ||
| content: ''; | ||
| height: 24px; | ||
| left: -4px; | ||
| margin-top: -8px; | ||
| position: absolute; | ||
| top: -4px; | ||
| transition: all 0.3s ease-in-out; | ||
| width: 24px; | ||
| } | ||
|
|
||
| .material-switch > input[type="checkbox"]:checked + label::before { | ||
| background: inherit; | ||
| opacity: 0.5; | ||
| } | ||
|
|
||
| .material-switch > input[type="checkbox"]:checked + label::after { | ||
| background: inherit; | ||
| left: 20px; | ||
| } | ||
This file contains hidden or 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 hidden or 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 hidden or 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,84 @@ | ||
|
|
||
| var proposals_creatable = document.getElementById("proposals.creatable"); | ||
| var proposals_editable = document.getElementById("proposals.editable"); | ||
| var proposals_withdrawable = document.getElementById("proposals.withdrawable"); | ||
| var reviews_stage = document.getElementById("reviews.stage"); | ||
| var reviews_visible_to_submitters = document.getElementById("reviews.visible.to.submitters"); | ||
|
|
||
| $('.hotkey').click(function () { | ||
| if ($(this).val() == "Call for Proposals") { | ||
| Call_for_Proposals(); | ||
| } | ||
| else if ($(this).val() == "Locked (proposal editing and reviewing disabled)") { | ||
| Locked() | ||
| } | ||
| else if ($(this).val() == "First Round Review") { | ||
| First_Round_Review() | ||
| } | ||
| else if ($(this).val() == "Modification Stage") { | ||
| Modification_Stage() | ||
| } | ||
| else if ($(this).val() == "Second Round Review") { | ||
| Second_Round_Review() | ||
| } | ||
| else if ($(this).val() == "Internal Decision") { | ||
| Internal_Decision() | ||
| } | ||
| else { | ||
| Announcement_of_Acceptance() | ||
| } | ||
|
|
||
| /* | ||
| Proposal Review Stage Setting | ||
| Reference : https://github.com/pycontw/pycon.tw/blob/master/src/reviews/README.md | ||
| */ | ||
| function Call_for_Proposals(){ | ||
| proposals_creatable.checked = true; | ||
| proposals_editable.checked = true; | ||
| proposals_withdrawable.checked = true; | ||
| reviews_stage.value = "0"; | ||
| reviews_visible_to_submitters.checked = false; | ||
| } | ||
| function Locked() { | ||
| proposals_creatable.checked = false; | ||
| proposals_editable.checked = false; | ||
| proposals_withdrawable.checked = false; | ||
| reviews_stage.value = "0"; | ||
| reviews_visible_to_submitters.checked = false; | ||
| } | ||
| function First_Round_Review() { | ||
| proposals_creatable.checked = false; | ||
| proposals_editable.checked = false; | ||
| proposals_withdrawable.checked = false; | ||
| reviews_stage.value = "1"; | ||
| reviews_visible_to_submitters.checked = false; | ||
| } | ||
| function Modification_Stage() { | ||
| proposals_creatable.checked = false; | ||
| proposals_editable.checked = true; | ||
| proposals_withdrawable.checked = false; | ||
| reviews_stage.value = "0"; | ||
| reviews_visible_to_submitters.checked = true; | ||
| } | ||
| function Second_Round_Review() { | ||
| proposals_creatable.checked = false; | ||
| proposals_editable.checked = false; | ||
| proposals_withdrawable.checked = false; | ||
| reviews_stage.value = "2"; | ||
| reviews_visible_to_submitters.checked = false; | ||
| } | ||
| function Internal_Decision() { | ||
| proposals_creatable.checked = false; | ||
| proposals_editable.checked = false; | ||
| proposals_withdrawable.checked = false; | ||
| reviews_stage.value = "0"; | ||
| reviews_visible_to_submitters.checked = false; | ||
| } | ||
| function Announcement_of_Acceptance() { | ||
| proposals_creatable.checked = false; | ||
| proposals_editable.checked = true; | ||
| proposals_withdrawable.checked = false; | ||
| reviews_stage.value = "0"; | ||
| reviews_visible_to_submitters.checked = true; | ||
| } | ||
| }); |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.