</div>

                    <div class="clearfix"></div>
                </div>

                <div id="task-editor_update-content" class="task_breaker-form-field">
                    <textarea id="task-comment-content" rows="5" width="100"></textarea>
                </div>

                <div id="task-editor_update-priority" class="task_breaker-form-field">
                    <label for="task_breaker-task-priority-select" class="task_breaker-form-field">
                        <?php 
        _e('Update Priority:', 'task_breaker');
        ?>
                        <?php 
        task_breaker_task_priority_select($select = absint($args->priority), $name = 'task_breaker-task-priority-update-select', $id = 'task_breaker-task-priority-update-select');
        ?>
                    </label>
                </div>

                <div id="task-editor_update-submit">
                    <button type="button" id="updateTaskBtn" class="button">
                        <?php 
        _e('Update Task', 'task_breaker');
        ?>
                    </button>
                </div>

            </div><!--#task-editor-->
        <?php 
    } else {
Exemple #2
0
?>
		<?php 
echo wp_editor($content = null, $editor_id = "task_breakerTaskEditDescription", $args);
?>
	</div>

	<!-- Task Priority -->
	<div class="task_breaker-form-field">
		<label for="task_breaker-task-priority-select">
			<strong>
				<?php 
_e('Priority:', 'task_breaker');
?>
			</strong>
			<?php 
echo task_breaker_task_priority_select($default = 1, $name = 'task_breaker-task-edit-priority', $id = 'task_breaker-task-edit-select-id');
?>
		</label>
	</div>

	<!-- Task Controls -->
	<div class="task_breaker-form-field">

		<button id="task_breaker-delete-btn" class="button button-primary button-large" style="float:right; margin-left: 10px;">
			<?php 
esc_attr_e('Delete', 'task-breaker');
?>
		</button>

		<button id="task_breaker-edit-btn" class="button button-primary button-large" style="float:right">
			<?php 
Exemple #3
0
    $args = array('teeny' => true, 'editor_height' => 100, 'media_buttons' => false, 'quicktags' => false);
    ?>

			<?php 
    echo wp_editor($content = null, $editor_id = "task_breakerTaskDescription", $args);
    ?>
		</div>

		<div class="task_breaker-form-field">
			<label for="task_breaker-task-priority-select">
				<strong><?php 
    _e('Priority:', 'task_breaker');
    ?>
 </strong>
				<?php 
    echo task_breaker_task_priority_select();
    ?>
			</label>
		</div>

		<div class="task_breaker-form-field">
			<button id="task_breaker-submit-btn" class="button button-primary button-large" style="float:right">
				<?php 
    _e('Save Task', 'dunhakdis');
    ?>
			</button>
			<div style="clear:both"></div>
		</div>
	<?php 
} else {
    ?>