| 1 |
<?php if ( $column_name == 'completable' ) { ?> |
| 2 |
<fieldset> |
| 3 |
<div class="inline-edit-col column-<?php echo $column_name; ?>"> |
| 4 |
<label class="inline-edit-group"> |
| 5 |
<?php wp_nonce_field( $this->plugin_name, 'completable_nonce' ); ?> |
| 6 |
<input type="hidden" name="wpcomplete[completable]" value="false"> |
| 7 |
<input type="checkbox" name="wpcomplete[completable]" value="true" onclick="jQuery(this).closest('.inline-edit-col').find('.wpcomplete-course-container').toggle();"><?php echo __( 'Yes, I want this page to be completable.', $this->plugin_name ); ?> |
| 8 |
</label> |
| 9 |
|
| 10 |
<div class="inline-edit-group wpcomplete-course-container"> |
| 11 |
<label for="course-assigned"> |
| 12 |
<span class="title" style="width: 100px;"><?php echo __( 'This is a part of:', $this->plugin_name ); ?></span> |
| 13 |
<select name="wpcomplete[course]" class="course-toggle"> |
| 14 |
<option value="true"><?php echo get_bloginfo( 'name' ); ?></option> |
| 15 |
<?php foreach ( $this->get_course_names() as $course_name ) : ?> |
| 16 |
<option value="<?php echo $course_name; ?>"><?php echo $course_name; ?></option> |
| 17 |
<?php endforeach; ?> |
| 18 |
</select> |
| 19 |
</label> |
| 20 |
</div> |
| 21 |
</div> |
| 22 |
</fieldset> |
| 23 |
<?php } ?> |
| 24 |
|