Admin-project-profile radio buttons for project privacy
parent
8a39b21b0a
commit
7a7c965f7a
|
@ -43,6 +43,14 @@ block content
|
||||||
textarea(name="description", placeholder="Description", id="project-description",
|
textarea(name="description", placeholder="Description", id="project-description",
|
||||||
ng-model="project.description", data-required="true")
|
ng-model="project.description", data-required="true")
|
||||||
|
|
||||||
|
div.privacy-settings
|
||||||
|
div
|
||||||
|
input.hidden(type="radio", id="public-project", name="project-privacy", ng-checked="!project.is_private")
|
||||||
|
label.button(for="public-project") Public Project
|
||||||
|
div
|
||||||
|
input.hidden(type="radio", id="private-project", name="project-privacy", ng-checked="project.is_private")
|
||||||
|
label.button(for="private-project") Private Project
|
||||||
|
|
||||||
input(type="submit", class="hidden")
|
input(type="submit", class="hidden")
|
||||||
a.button.button-green(href="") Save
|
a.button.button-green(href="") Save
|
||||||
a.delete-project(href="", title="Delete this project", ng-click="ctrl.openDeleteLightbox()") Delete this project
|
a.delete-project(href="", title="Delete this project", ng-click="ctrl.openDeleteLightbox()") Delete this project
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
@extend %title;
|
@extend %title;
|
||||||
}
|
}
|
||||||
fieldset {
|
fieldset {
|
||||||
@include table-flex();
|
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
label {
|
label {
|
||||||
|
@ -19,6 +18,32 @@
|
||||||
textarea {
|
textarea {
|
||||||
height: 10rem;
|
height: 10rem;
|
||||||
}
|
}
|
||||||
|
.privacy-settings {
|
||||||
|
@include table-flex();
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
div {
|
||||||
|
@include table-flex-child(1, 0, 0, 40%);
|
||||||
|
&:first-child {
|
||||||
|
margin-right: .5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
label {
|
||||||
|
@extend %title;
|
||||||
|
background: $white;
|
||||||
|
border: 1px solid $whitish;
|
||||||
|
cursor: pointer;
|
||||||
|
display: block;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
input {
|
||||||
|
&:checked {
|
||||||
|
+label {
|
||||||
|
background: $green-taiga;
|
||||||
|
color: $white;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
.button-green {
|
.button-green {
|
||||||
color: $white;
|
color: $white;
|
||||||
display: block;
|
display: block;
|
||||||
|
|
Loading…
Reference in New Issue