Commit graph

2310 commits

Author SHA1 Message Date
Alex Cabal
7b676269a8 Code formatting 2024-12-29 15:16:22 -06:00
Alex Cabal
53fe66a364 Initialize empty values for some image URLs 2024-12-29 15:10:41 -06:00
Alex Cabal
31633ee8ac Fix class in search form 2024-12-29 15:10:32 -06:00
Alex Cabal
e4e945f63f Tweak wanted list template structure 2024-12-29 14:14:20 -06:00
Alex Cabal
b8690f91b5 Don't show two success messages when creating a project 2024-12-29 14:14:20 -06:00
Weijia Cheng
160e639a78 Add instructions on transcribing poetry 2024-12-29 13:45:58 -05:00
Weijia Cheng
50f4be1f2e Remove spreadsheet link from how-tos index (duplicates spreadsheets page) 2024-12-29 13:45:58 -05:00
Alex Cabal
2c0c87bcb0 Expand placeholder subforms if they have data 2024-12-28 19:20:30 -06:00
Alex Cabal
c43c4fa2dd Tweak wanted list appearance 2024-12-28 19:14:04 -06:00
Mike Colagrosso
c016547e2c Rename template to CollectionDescriptor 2024-12-28 14:18:08 -06:00
Mike Colagrosso
2d5cba0aaa Rename function to Ebook::GetByIsWantedAndDifficulty() 2024-12-28 14:18:08 -06:00
Mike Colagrosso
e25993b208 Add parameter to MarkdownToHtml for inline HTML 2024-12-28 14:18:08 -06:00
Mike Colagrosso
7bd08087dc Inline and remove templates/WantedEbooks.php 2024-12-28 14:18:08 -06:00
Mike Colagrosso
5b605a00b7 Populate the wanted list from DB placeholders 2024-12-28 14:18:08 -06:00
Mike Colagrosso
0359119a11 Add Formatter::MarkdownToInlineHtml()
HTML without the surrounding `<p>` tags will be useful to show
placeholder notes to admins on the wanted ebooks page.

Examples of generating block-level and inline HTML:

https://github.com/erusev/parsedown/wiki/Tutorial:-Get-Started
2024-12-28 14:18:08 -06:00
Mike Colagrosso
9652d63b12 Add Template::CollectionFormatted for common formatting 2024-12-28 14:18:08 -06:00
Alex Cabal
617d27ec92 Tweak comment 2024-12-27 21:21:57 -06:00
Alex Cabal
5b86428404 Fix duplicate attribute in project edit form 2024-12-27 21:21:52 -06:00
Weijia Cheng
e585ecdf3f Add a review initial commit step to the review guide 2024-12-27 14:49:23 -06:00
Weijia Cheng
8d8d657d10 Add Georgia Douglas Johnson spreadsheet 2024-12-27 14:49:23 -06:00
Mike Colagrosso
4b0c38ae97 Nudge the placeholder ribbon left 2px, past the border 2024-12-27 13:50:02 -06:00
Alex Cabal
7df973bea2 Fix wrong catch block in artwork upload 2024-12-26 17:09:38 -06:00
Alex Cabal
2948f96518 Add blog post 2024-12-26 17:07:03 -06:00
Alex Cabal
c936a68696 Update wanted ebooks list 2024-12-26 12:53:26 -06:00
Mike Colagrosso
d6dd10be9c Clean up unused Tags, LocSubjects, and Collections
On `Ebook::Save()` and `Ebook::Delete()`, remove any unreferenced `Tag`,
`LocSubject`, and `Collection` records. These are analogous to these lines in
`Ebook::Create()`:

```
$this->CreateTags();
$this->CreateLocSubjects();
$this->CreateCollections();
```

`EbookPlaceholder`s can't have `Tags` or `LocSubjects` at the moment, but other
mistakes in production that are later corrected could leave unused `Tags` and
`LocSubjects`.

Context: https://github.com/standardebooks/web/pull/447#issuecomment-2555734692
2024-12-26 12:10:13 -06:00
Alex Cabal
88ed9639f5 Add dark mode support to emails 2024-12-23 15:07:06 -06:00
Alex Cabal
ca8a11f663 Improve responsive view of some forms 2024-12-23 14:07:22 -06:00
Alex Cabal
d94c057e20 Don't send a new project email if the manager, reviewer, and producer are all the same 2024-12-23 12:10:49 -06:00
Alex Cabal
b7776503cd Turn off autocomplete for new project form 2024-12-23 12:09:47 -06:00
Alex Cabal
ac56d2d896 Don't allow the manager or reviewer to be the same as the ebook producer 2024-12-22 19:52:31 -06:00
Alex Cabal
133c968fc0 Fix type error 2024-12-21 21:20:31 -06:00
Alex Cabal
ad4b5423db Don't send admin email for returning Patrons 2024-12-21 21:19:07 -06:00
Alex Cabal
242f99f3b5 Tweak table CSS 2024-12-21 21:18:03 -06:00
Alex Cabal
43e5de1cc2 Improve number input pattern matching 2024-12-21 17:39:17 -06:00
Alex Cabal
b4003b30e2 Improve project sorting by title 2024-12-19 22:55:55 -06:00
Alex Cabal
b6da6c83a4 Mark placeholders as in progress when a new project is added 2024-12-19 16:33:42 -06:00
Alex Cabal
8e8cbb0c5e Move delete form and more multi select fixes 2024-12-19 14:40:38 -06:00
Alex Cabal
93b8008c7e Add missing MultiTableSelect code 2024-12-19 14:25:48 -06:00
Mike Colagrosso
d0d79d637c Add form to delete placeholders 2024-12-19 14:21:25 -06:00
Alex Cabal
18bcde3bf6 Don't show placeholder difficulty if it's not set 2024-12-18 22:26:34 -06:00
Alex Cabal
98e09f414e Allow creating new ebook placeholders when creating a new project 2024-12-18 22:23:57 -06:00
Alex Cabal
4596aeb007 Allow projects to auto-assign managers and reviewers 2024-12-18 20:57:21 -06:00
Alex Cabal
e51cc4395e Tweak some styling 2024-12-18 15:58:50 -06:00
Alex Cabal
378555d131 Show improved project details on placeholder page 2024-12-18 15:54:06 -06:00
Alex Cabal
7a6a743295 Some type check fixes 2024-12-18 15:03:44 -06:00
Alex Cabal
a46ff8e137 Fix Github URL validation in projects 2024-12-18 14:58:04 -06:00
Alex Cabal
a1da50fc1a Sort projects by ebook title 2024-12-18 14:28:07 -06:00
Alex Cabal
b2191d1219 Allow editing of projects 2024-12-18 14:20:28 -06:00
Alex Cabal
e21f411191 Emit HTTP 405 instead of HTTP 404 when posting to Ebooks 2024-12-18 13:14:48 -06:00
Alex Cabal
806939ca49 Replace Template::Emit...() functions with more generic function 2024-12-18 13:14:16 -06:00