forked from CGM_Public/pretix_original
UI for settings propagation
This commit is contained in:
@@ -312,4 +312,13 @@ $(function () {
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
$(".propagated-settings-box button[data-action=unlink]").click(function(ev) {
|
||||
var $box = $(this).closest(".propagated-settings-box");
|
||||
$box.find(".propagated-settings-overlay").fadeOut();
|
||||
$box.find("input[name=_settings_ignore]").attr("name", "decouple");
|
||||
$box.find(".propagated-settings-form").removeClass("blurred");
|
||||
ev.preventDefault();
|
||||
return true;
|
||||
})
|
||||
});
|
||||
|
||||
@@ -212,4 +212,31 @@ pre.mail-preview {
|
||||
border-top-left-radius: 0;
|
||||
border-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.propagated-settings-box {
|
||||
position: relative;
|
||||
|
||||
.propagated-settings-overlay {
|
||||
background: rgba(255, 255, 255, 0.7);
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.propagated-settings-form.blurred {
|
||||
-webkit-filter: blur(2px);
|
||||
-moz-filter: blur(2px);
|
||||
-ms-filter: blur(2px);
|
||||
-o-filter: blur(2px);
|
||||
filter: blur(2px);
|
||||
}
|
||||
}
|
||||
@media (max-width: $screen-sm-max) {
|
||||
.propagated-settings-box {
|
||||
min-height: 250px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user