mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Improve styling and naming of the answer copy button
This commit is contained in:
@@ -54,7 +54,7 @@
|
||||
</a>
|
||||
{% if forloop.counter > 1 %}
|
||||
<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>
|
||||
{% endif %}
|
||||
</h4>
|
||||
|
||||
@@ -40,11 +40,11 @@ $(function () {
|
||||
$(".js-copy-answers").click(function (e) {
|
||||
e.preventDefault();
|
||||
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 firstAnswers = $('*[data-idx="0"] input, *[data-idx="0"] select, *[data-idx="0"] textarea');
|
||||
elements.each(function(index){
|
||||
|
||||
@@ -104,6 +104,9 @@ section.front-page {
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
#questions_group .panel-title a {
|
||||
line-height: 22px;
|
||||
}
|
||||
@media (max-width: $screen-sm-max) {
|
||||
.page-header h1 small {
|
||||
display: block;
|
||||
|
||||
Reference in New Issue
Block a user