-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
63 additions
and
40 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
import "../styles/pressbooks-multi-institutions.css"; | ||
|
||
console.log('Pressbooks Multi-Institution JS loaded') | ||
document.addEventListener('DOMContentLoaded', function() { | ||
document.querySelector('#pressbooks-multi-institution-admin #doaction') | ||
.addEventListener('click', function(e) { | ||
e.preventDefault(); | ||
const action = document.querySelector('#pressbooks-multi-institution-admin #bulk-action-selector-top').value; | ||
const items = document.querySelectorAll('.check-column input:checked'); | ||
if (action !== '-1' && items.length > 0 && confirm('Are you sure you want to delete these institutions?')) { | ||
document.querySelector('#pressbooks-multi-institution-admin').submit(); | ||
} | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,39 @@ | ||
table.institutions #the-list tr:not(.totals-row) { | ||
background-color: #fff; | ||
table.institutions #the-list tr:not(.totals-row):nth-child(odd) { | ||
background-color: #FFFFFF; | ||
} | ||
|
||
.totals-row { | ||
background: #F6F7F7; | ||
table.institutions #the-list tr:not(.totals-row):nth-child(even) { | ||
background-color: #F6F7F7; | ||
} | ||
|
||
.totals-row .text-right { | ||
table.institutions #the-list tr td,th { | ||
border-bottom: 1px solid #e5e5e5; | ||
} | ||
|
||
table.institutions #the-list tr td p { | ||
margin: 0; | ||
} | ||
|
||
.striped .totals-row { | ||
background-color: #E0E0E0 !important; | ||
} | ||
|
||
.striped .totals-row .text-right { | ||
padding-left: 40px; | ||
} | ||
|
||
body.toplevel_page_pb_multi_institution .filtering { | ||
display: flex; | ||
gap: 10px; | ||
margin-top: 10px; | ||
} | ||
|
||
|
||
body.toplevel_page_pb_multi_institution .filtering ul { | ||
margin: 0; | ||
padding-top: 5px; | ||
} | ||
|
||
body.toplevel_page_pb_multi_institution .filtering a { | ||
height: 30px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
<p> | ||
{{ $manager->display_name }} | ||
</p> | ||
<p> | ||
<a href="mailto:{{ $manager->user_email }}">{{ $manager->user_email }}</a> | ||
<p class="institutional_manager"> | ||
<span class="name">{{ $manager->display_name }}</span> | ||
<br/> | ||
<span class=email"><a href="mailto:{{ $manager->user_email }}">{{ $manager->user_email }}</a></span> | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<tr class="totals-row"> | ||
<td colspan="2" class="text-right">{{ $name }}</td> | ||
<td class="text-center">({{ $email_domains }})</td> | ||
<td class="text-center">({{ $institutional_managers }})</td> | ||
<td class="text-center">{{ $email_domains }}</td> | ||
<td class="text-center">{{ $institutional_managers }}</td> | ||
<td class="text-center">{{ $book_total }}</td> | ||
<td class="text-center">{{ $user_total }}</td> | ||
</tr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters