-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initialize setting review / proposal stage page
- Loading branch information
Showing
9 changed files
with
143 additions
and
0 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
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 |
---|---|---|
|
@@ -8,3 +8,7 @@ | |
.text-emphasize { | ||
@include roboto-medium(); | ||
} | ||
|
||
.input-customized-size input{ | ||
width: 16.2em; | ||
} |
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,44 @@ | ||
.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 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 |
---|---|---|
@@ -0,0 +1,76 @@ | ||
{% extends 'dashboard_base.html' %} | ||
|
||
{% load i18n crispy_forms_tags %} | ||
|
||
{% block dashboard_tablist %} | ||
{% include '_includes/dashboard_tablist.html' with active='admin' %} | ||
{% endblock dashboard_tablist %} | ||
|
||
{% block main-content %} | ||
|
||
<h3 class="dashboard-header"> | ||
<span class="header-title">{% trans 'Change Review' %}</span> | ||
</h3> | ||
|
||
<div class="col-md-9"> | ||
<div class="dashboard-body"> | ||
<div class="panel panel-default"> | ||
<div class="panel-heading">{% trans 'Change Review' %}</div> | ||
<ul class="list-group"> | ||
<li class="panel-title list-group-item"> | ||
pycontw-2020.proposals.creatable | ||
<div class="material-switch pull-right"> | ||
<input id="pycontw-2020.proposals.creatable" name="pycontw-2020.proposals.creatable" type="checkbox" /> | ||
<label for="pycontw-2020.proposals.creatable" class="label-info"></label> | ||
</div> | ||
</li> | ||
<li class="panel-title list-group-item"> | ||
pycontw-2020.proposals.editable | ||
<div class="material-switch pull-right"> | ||
<input id="pycontw-2020.proposals.editable" name="pycontw-2020.proposals.editable" type="checkbox" /> | ||
<label for="pycontw-2020.proposals.editable" class="label-info"></label> | ||
</div> | ||
</li> | ||
<li class="panel-title list-group-item"> | ||
pycontw-2020.proposals.withdrawable | ||
<div class="material-switch pull-right"> | ||
<input id="pycontw-2020.proposals.withdrawable" name="pycontw-2020.proposals.withdrawable" type="checkbox" /> | ||
<label for="pycontw-2020.proposals.withdrawable" class="label-info"></label> | ||
</div> | ||
</li> | ||
<li class="panel-title list-group-item"> | ||
pycontw-2020.reviews.visible.to.submitters | ||
<div class="material-switch pull-right"> | ||
<input id="pycontw-2020.reviews.visible.to.submitters" name="pycontw-2020.reviews.visible.to.submitters" type="checkbox" /> | ||
<label for="pycontw-2020.reviews.visible.to.submitters" class="label-info"></label> | ||
</div> | ||
</li> | ||
<li class="panel-title list-group-item"> | ||
pycontw-2020.reviews.stage | ||
<div class="input-customized-size pull-right"> | ||
<input id="pycontw-2020.reviews.stage" name="pycontw-2020.reviews.stage" type="number" min="0" max="2" placeholder="Int" required > | ||
</div> | ||
</li> | ||
<li class="panel-title list-group-item"> | ||
pycontw-2020.proposals.disable.after | ||
<div class="input-customized-size pull-right"> | ||
<input id="pycontw-2020.proposals.disable.after" name="pycontw-2020.proposals.disable.after" type="datetime-local" step="1" placeholder="yyyy-mm-dd hh:mm:ss" | ||
required> | ||
</div> | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
<form action="{% url 'review_change' %}" method="post"> | ||
{% csrf_token %} | ||
<div class="nesting-form-group"> | ||
{{ form|crispy }} | ||
<button type="submit" class="btn btn-primary"> | ||
{% trans 'Submit' %} | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</form> | ||
|
||
{% endblock main-content %} |
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