mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Item form: Fancy radio buttons for has_Variations and admission
This commit is contained in:
@@ -31,9 +31,9 @@ $(document).ready(function () {
|
||||
);
|
||||
|
||||
function toggleblock() {
|
||||
$("#new-quota-group").closest('fieldset').toggle(!$("#id_has_variations").prop('checked'));
|
||||
$("#new-quota-group").closest('fieldset').toggle(!$("[name=has_variations][value=on]").prop('checked'));
|
||||
}
|
||||
|
||||
$("#id_has_variations").change(toggleblock);
|
||||
$("[name=has_variations]").change(toggleblock);
|
||||
toggleblock();
|
||||
});
|
||||
|
||||
@@ -439,9 +439,9 @@ table td > .checkbox input[type="checkbox"] {
|
||||
}
|
||||
}
|
||||
.form-horizontal .big-radio {
|
||||
border: 2px solid #ccc;
|
||||
border: 1px solid #ccc;
|
||||
border-bottom: 0;
|
||||
padding: 0;
|
||||
border-radius: $border-radius-base;
|
||||
label {
|
||||
padding: 15px 15px 15px 30px;
|
||||
}
|
||||
@@ -449,9 +449,15 @@ table td > .checkbox input[type="checkbox"] {
|
||||
.help-block {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
.form-horizontal .big-radio:not(:last-child) {
|
||||
margin-bottom: 15px;
|
||||
&:first-child {
|
||||
border-top-left-radius: $border-radius-base;
|
||||
border-top-right-radius: $border-radius-base;
|
||||
}
|
||||
&:last-child {
|
||||
border-bottom-left-radius: $border-radius-base;
|
||||
border-bottom-right-radius: $border-radius-base;
|
||||
border-bottom: 1px solid #ccc;
|
||||
}
|
||||
}
|
||||
.accordion-radio {
|
||||
display: block;
|
||||
|
||||
Reference in New Issue
Block a user