-
Notifications
You must be signed in to change notification settings - Fork 51
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
Issue 1500 conference validation #1512
Changes from 4 commits
83afb36
6f6291c
509566b
46283ba
66fa951
c81bbd8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -132,6 +132,12 @@ class="checkboxes<?php if (!empty($tsml_types_in_use) && count($tsml_types_in_us | |
</label> | ||
<input type="url" name="conference_url" id="conference_url" placeholder="https://" | ||
value="<?php echo $meeting->conference_url ?>"> | ||
<small class="error_message" data-message="1"> | ||
<?php _e('Zoom conference urls require a valid meeting number.', '12-step-meeting-list') ?> | ||
</small> | ||
<small class="error_warning" data-message="2"> | ||
<?php _e('Your conference url has been updated to follow the Zoom url standard.', '12-step-meeting-list') ?> | ||
</small> | ||
</div> | ||
<div class="meta_form_row"> | ||
<label for="conference_url_notes"> | ||
|
@@ -208,9 +214,6 @@ function () { | |
</li> | ||
</ul> | ||
</div> | ||
<div class="location_error form_not_valid hidden"> | ||
<?php _e('Error: In person meetings must have a specific address.', '12-step-meeting-list') ?> | ||
</div> | ||
<div class="location_warning need_approximate_address hidden"> | ||
<?php _e('Warning: Online meetings with a specific address will appear that the location temporarily closed. Meetings that are Online only should use appoximate addresses.', '12-step-meeting-list') ?><br /><br /> | ||
<?php _e('Example:', '12-step-meeting-list') ?><br /> | ||
|
@@ -235,6 +238,12 @@ function () { | |
<input value="<?php tsml_echo($location, 'approximate') ?>" type="hidden" name="approximate" id="approximate"> | ||
<input value="<?php tsml_echo($location, 'latitude') ?>" type="hidden" name="latitude" id="latitude"> | ||
<input value="<?php tsml_echo($location, 'latitude') ?>" type="hidden" name="longitude" id="longitude"> | ||
<small class="error_message" data-message="1"> | ||
<?php _e('Error: In person meetings must have a specific address.', '12-step-meeting-list') ?> | ||
</small> | ||
<small class="warning_message" data-message="2"> | ||
<?php _e('Warning: Unable to process this address for exact location.', '12-step-meeting-list') ?> | ||
</small> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I added this error state to capture when we get an error from the geocoding call. I figured it was worth displaying, but you may know reasons why this isn't useful - maybe frequent errors? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no this is great - we can now cross this requirement off our refactor geocoding ticket |
||
</div> | ||
<?php if (count($meetings) > 1) { ?> | ||
<div class="meta_form_row checkbox apply_address_to_location hidden"> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
used
<small>
tags to follow input fields for immediate error messaging.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 thanks for using the same color of red we use in other places - maybe eventually we can use css vars for it