function get_sympal_content_slot_editor(sfSympalContent $content, sfSympalContentSlot $slot, $options = array())
{
    $content->setEditableSlotsExistOnPage(true);
    $slot->setContentRenderedFor($content);
    $name = $slot->getName();
    $isColumn = $slot->getIsColumn();
    $form = $slot->getEditForm();
    $renderedValue = $slot->render();
    if (!$renderedValue && sfSympalContext::getInstance()->shouldLoadFrontendEditor()) {
        $renderedValue = __('[Double click to enable inline edit mode.]');
    }
    return '
<span title="' . __('[Double click to enable inline edit mode.]') . '" id="sympal_content_slot_' . $slot->getId() . '" class="sympal_content_slot">
  <input type="hidden" class="content_slot_id" value="' . $slot->getId() . '" />
  <input type="hidden" class="content_id" value="' . $slot->getContentRenderedFor()->getId() . '" />
  <span class="editor">' . get_partial('sympal_edit_slot/slot_editor', array('form' => $form, 'contentSlot' => $slot)) . '</span>
  <span class="value toggle_edit_mode">' . $renderedValue . '</span>
</span>';
}
/**
 * Renders the actual form that edits a content slot
 * 
 * @param sfSympalContent $content The content record being modified
 * @param sfSympalContentSlot $slot The content slot to edit
 * 
 * @return string
 */
function get_sympal_content_slot_form($content, $slot)
{
    $slot->setContentRenderedFor($content);
    $form = $slot->getEditForm();
    return get_partial('sympal_edit_slot/slot_editor', array('form' => $form, 'contentSlot' => $slot));
}