forked from CGM_Public/pretix_original
Improve styling and naming of the answer copy button
This commit is contained in:
@@ -54,7 +54,7 @@
|
|||||||
</a>
|
</a>
|
||||||
{% if forloop.counter > 1 %}
|
{% if forloop.counter > 1 %}
|
||||||
<span class="text-right pull-right">
|
<span class="text-right pull-right">
|
||||||
<input type="button" data-id="{{ forloop.counter0 }}" name="copy" class="js-copy-answers btn btn-block" value='{% trans "Copy answers from above" %}'>
|
<input type="button" data-id="{{ forloop.counter0 }}" name="copy" class="js-copy-answers btn btn-default btn-xs" value='{% trans "Copy answers from above" %}'>
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</h4>
|
</h4>
|
||||||
|
|||||||
@@ -40,11 +40,11 @@ $(function () {
|
|||||||
$(".js-copy-answers").click(function (e) {
|
$(".js-copy-answers").click(function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var idx = $(this).data('id');
|
var idx = $(this).data('id');
|
||||||
bind_groups(idx);
|
copy_answers(idx);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
function bind_groups(idx) {
|
function copy_answers(idx) {
|
||||||
var elements = $('*[data-idx="'+idx+'"] input, *[data-idx="'+idx+'"] select, *[data-idx="'+idx+'"] textarea');
|
var elements = $('*[data-idx="'+idx+'"] input, *[data-idx="'+idx+'"] select, *[data-idx="'+idx+'"] textarea');
|
||||||
var firstAnswers = $('*[data-idx="0"] input, *[data-idx="0"] select, *[data-idx="0"] textarea');
|
var firstAnswers = $('*[data-idx="0"] input, *[data-idx="0"] select, *[data-idx="0"] textarea');
|
||||||
elements.each(function(index){
|
elements.each(function(index){
|
||||||
|
|||||||
@@ -104,6 +104,9 @@ section.front-page {
|
|||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#questions_group .panel-title a {
|
||||||
|
line-height: 22px;
|
||||||
|
}
|
||||||
@media (max-width: $screen-sm-max) {
|
@media (max-width: $screen-sm-max) {
|
||||||
.page-header h1 small {
|
.page-header h1 small {
|
||||||
display: block;
|
display: block;
|
||||||
|
|||||||
Reference in New Issue
Block a user