Opened 7 years ago
Closed 4 years ago
#3199 closed enhancement (reported-upstream)
Pre-fill fields for wcdocs
Reported by: | casiepa | Owned by: | iandunn |
---|---|---|---|
Milestone: | Priority: | low | |
Component: | WordCamp Site & Plugins | Keywords: | good-first-bug needs-patch |
Cc: |
Description
Both the 'Attendee Visa letter' and 'Speaker Visa letter' are asking for information that is always the same for any request for the same WordCamp. Fields like 'WordCamp Name, WordCamp Location, WordCamp Date Start, WordCamp Date End, Organizer Name, Organizer Contacts' are the same for every Visa letter request so could be added on a 'settings' page or tab at the start of /wp-admin/admin.php?page=wcdocs
It would save time for bigger WordCamps like WCEU where several requests come in. It would also avoid spelling mistakes, decrease human errors and increase the overall consistency of the documents per WordCamp.
Using wcpt_get_wordcamp_location() to get the information might even be a better way, but for now just some fields to fill the info once would already be great.
Attachments (3)
Change History (16)
#2
@
7 years ago
- Keywords has-patch added; needs-patch removed
Both Speaker and Attendee Visa letter have been adapted. Data is taken using get_wordcamp_post().
This is my first .diff so please doublecheck that it's correct. Thanks.
#3
@
7 years ago
After just reviewing the code I saw a few things.
name="attendee_last_name"
should be changed too in speaker-visa.php- A small coding standard issue. I would add a space between
!
andempty
in!empty
Otherwise it looks good!
#5
@
7 years ago
The changes look good. I have tested them locally too and was able to generate a PDF with the changes.
As we are adding changes we could add the WordCamp Location and WordCamp Date to the sponsor agreement too.
This ticket was mentioned in Slack in #meta-wordcamp by iandunn. View the logs.
7 years ago
#8
@
7 years ago
- Owner set to iandunn
- Resolution set to fixed
- Status changed from new to closed
In 6054:
#9
@
7 years ago
- Keywords needs-patch added; has-patch removed
- Priority changed from normal to low
- Resolution fixed deleted
- Status changed from closed to reopened
Thanks @casiepa and @grapplerulrich
I'm actually going to re-open this, since we can also populate the fields for the sponsorship agreement, and also pull in the organizer contact info for all the templates.
#10
@
7 years ago
So what is missing for the sponsorship agreement is:
- The h2 title
- The 'WordCamp Date' (which would be a combination of start and end date)
- The 'WordCamp Location'
But @iandunn what do you mean by 'organizer contact info' ? I suppose you mean the last box of the Visa forms?
What meta data should go in there, would that be the 'Contact Information' one (see screenshot)?
#11
@
7 years ago
That's right. It'd be the E-mail Address
field (not Email Address
without the hyphen).
This ticket was mentioned in Slack in #meta-wordcamp by iandunn. View the logs.
5 years ago
#13
@
4 years ago
- Resolution set to reported-upstream
- Status changed from reopened to closed
This ticket has been moved to GitHub https://github.com/WordPress/wordcamp.org/issues/655
I agree, this would be a helpful addition. I think
get_wordcamp_post()
, located in mu-plugins/helper-functions.php would make it fairly easy to grab all the necessary values for pre-populating the fields.