Fix change template form

This commit is contained in:
Clement Ho 2018-06-11 17:18:19 -05:00 committed by Jose
parent 91f31ae519
commit 9e63168282
3 changed files with 12 additions and 20 deletions

View file

@ -161,6 +161,10 @@ table {
}
}
.input-group-prepend svg.active {
border: 0 !important;
}
// Polyfill deprecated selectors
.hidden {

View file

@ -514,12 +514,6 @@
}
}
svg {
position: absolute;
left: $gl-padding;
top: $gl-padding;
}
.project-fields-form {
display: none;
@ -530,25 +524,18 @@
}
.template-input-group {
position: relative;
@include media-breakpoint-up(sm) {
display: flex;
.input-group-prepend {
flex: 1;
}
.input-group-prepend,
.input-group-append {
flex: 1;
text-align: left;
padding-left: ($gl-padding * 3);
.input-group-text {
width: 100%;
background-color: $white-light;
}
.selected-template {
line-height: 20px;
}
.selected-icon {
padding-right: $gl-padding;
svg {
display: none;
top: 7px;

View file

@ -21,6 +21,7 @@
- Gitlab::ProjectTemplate.all.each do |template|
= custom_icon(template.logo)
.selected-template
%button.btn.btn-default.change-template{ type: "button" } Change template
.input-group-append
%button.btn.btn-default.change-template{ type: "button" } Change template
= render 'new_project_fields', f: f, project_name_id: "template-project-name"