Making WordPress.org

Changeset 7640


Ignore:
Timestamp:
08/29/2018 02:34:39 PM (8 years ago)
Author:
vedjain
Message:

WordCamp: Couple of enhancements to meetup tracker.

  1. Added deputy list dropdown box. This will be helpful in keeping values of fields like Who vetted, Added by etc consistent across meetups.
  2. Change language of full name question in meetup application.
Location:
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/views/applications/meetup/shortcode-application.php

    r7619 r7640  
    1818                        <div class="PDF_question">
    1919                                <label>
    20                                         Please enter your name.
     20                                        Please enter your full Name.
    2121                                        <span class="required-indicator">(required)</span>
    2222                                        <input type="text" name="q_name" required/>
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-event/class-event-admin.php

    r7637 r7640  
    380380                        switch ( $value ) {
    381381                                case 'text':
     382                                case 'deputy_list':
    382383                                case 'textarea':
    383384                                        update_post_meta( $post_id, $key, $values[ $key ] );
     
    635636                                                                break;
    636637
     638                                                        case 'deputy_list':
     639                                                                wp_dropdown_users( array(
     640                                                                        'role__in'         => array(
     641                                                                                'administrator',
     642                                                                                'editor',
     643                                                                        ),
     644                                                                        'name'             => esc_attr( $object_name ),
     645                                                                        'id'               => esc_attr( $object_name ),
     646                                                                        'selected'         => get_post_meta( $post_id, $key, true ),
     647                                                                        'show_option_none' => 'None',
     648                                                                ) );
     649                                                                break;
    637650                                                        default:
    638651                                                                do_action( 'wcpt_metabox_value', $key, $value, $object_name );
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-meetup/class-meetup-admin.php

    r7639 r7640  
    456456                                'Already a meetup'           => 'text',
    457457                                'Date of Last Contact'       => 'date',
    458                                 'Who contacted'              => 'text',
     458                                'Who contacted'              => 'deputy_list',
    459459                                'Vetted Date'                => 'date',
    460                                 'Vetted by'                  => 'text',
     460                                'Vetted by'                  => 'deputy_list',
    461461                                'Orientation Date'           => 'date',
    462                                 'Oriented by'                => 'text',
     462                                'Oriented by'                => 'deputy_list',
    463463                                'Joined chapter date'        => 'date',
    464                                 'Joined chapter by'          => 'text',
     464                                'Joined chapter by'          => 'deputy_list',
    465465                        );
    466466
Note: See TracChangeset for help on using the changeset viewer.