Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix .btn-link #1873

Merged
merged 1 commit into from
Feb 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions evap/staff/templates/staff_evaluation_person_management.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h4 class="card-title">{% trans 'Import participants' %}</h4>
<h6 class="card-subtitle mb-2 text-muted">{% trans 'From Excel file' %}</h6>
<p class="card-text">
{% trans 'Upload Excel file with participant data' %} (<a href="{% url 'staff:download_sample_file' 'sample_user.xlsx' %}">{% trans 'Download sample file' %}</a>,
<button type="button" class="btn-link" onclick="copyHeaders(['Title', 'First name', 'Last name', 'Email'])">{% trans 'Copy headers to clipboard' %}</button>).
<button type="button" class="btn btn-link" onclick="copyHeaders(['Title', 'First name', 'Last name', 'Email'])">{% trans 'Copy headers to clipboard' %}</button>).
{% trans 'This will create all containing users.' %}
</p>
{% include 'bootstrap_form.html' with form=participant_excel_form wide=True %}
Expand Down Expand Up @@ -66,7 +66,7 @@ <h6 class="card-subtitle mb-2 text-muted">{% trans 'From Excel file' %}</h6>
<p class="card-text">
{% trans 'Upload Excel file with contributor data' %}
(<a href="{% url 'staff:download_sample_file' 'sample_user.xlsx' %}">{% trans 'Download sample file' %}</a>,
<button type="button" class="btn-link" onclick="copyHeaders(['Title', 'First name', 'Last name', 'Email'])">{% trans 'Copy headers to clipboard' %}</button>).
<button type="button" class="btn btn-link" onclick="copyHeaders(['Title', 'First name', 'Last name', 'Email'])">{% trans 'Copy headers to clipboard' %}</button>).
{% trans 'This will create all containing users.' %}
</p>
{% include 'bootstrap_form.html' with form=contributor_excel_form wide=True %}
Expand Down
4 changes: 2 additions & 2 deletions evap/staff/templates/staff_semester_import.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h3>{% trans 'Import semester data' %}</h3>
<p>
{% trans 'Upload Excel file' %}
(<a href="{% url 'staff:download_sample_file' 'sample.xlsx' %}">{% trans 'Download sample file' %}</a>,
<button type="button" class="btn-link" onClick="copyHeaders(['Degree', 'Participant last name', 'Participant first name', 'Participant email address', 'Course kind', 'Course is graded', 'Course name (de)', 'Course name (en)', 'Responsible title', 'Responsible last name', 'Responsible first name', 'Responsible email address'])">
<button type="button" class="btn btn-link" onClick="copyHeaders(['Degree', 'Participant last name', 'Participant first name', 'Participant email address', 'Course kind', 'Course is graded', 'Course name (de)', 'Course name (en)', 'Responsible title', 'Responsible last name', 'Responsible first name', 'Responsible email address'])">
{% trans 'Copy headers to clipboard' %}</button>).
{% trans 'This will create all containing participants, contributors and courses and connect them. It will also set the entered values as default for all evaluations.' %}
</p>
Expand Down Expand Up @@ -53,7 +53,7 @@ <h3>{% trans 'Import semester data' %}</h3>
.attr("type", "hidden")
.attr("name", "operation").val(dataId);
$('#semester-import-form').append(input);
$('#semester-import-form').submit();
$('#semester-import-form').submit();
};
</script>

Expand Down
4 changes: 2 additions & 2 deletions evap/staff/templates/staff_user_import.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h3>{% trans 'Import users' %}</h3>
<p>
{% trans 'Upload Excel file' %}
(<a href="{% url 'staff:download_sample_file' 'sample_user.xlsx' %}">{% trans 'Download sample file' %}</a>,
<button type="button" class="btn-link" onclick="copyHeaders(['Title', 'First name', 'Last name', 'Email'])">{% trans 'Copy headers to clipboard' %}</button>).
<button type="button" class="btn btn-link" onclick="copyHeaders(['Title', 'First name', 'Last name', 'Email'])">{% trans 'Copy headers to clipboard' %}</button>).
{% trans 'This will create all contained users.' %}
</p>
{% include 'bootstrap_form.html' with form=excel_form %}
Expand Down Expand Up @@ -52,7 +52,7 @@ <h3>{% trans 'Import users' %}</h3>
.attr("type", "hidden")
.attr("name", "operation").val(dataId);
$('#user-import-form').append(input);
$('#user-import-form').submit();
$('#user-import-form').submit();
};
</script>

Expand Down
1 change: 1 addition & 0 deletions evap/static/scss/_adjustments.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ body, .fixed-top, .fixed-bottom, .is-fixed, .sticky-top {
// make buttons that really look like links
.btn-link {
padding: 0;
vertical-align: baseline;
border: none;
background-color: transparent;
}
Expand Down