def askColor(request):
    context = request['context']
    if not 'response' in context:
        context['response'] = []

    button_table = jc.create_button_table(settings.ASK_COLOR)
    button_table['options'].append(jc.create_button('Peu importe', 'peu importe '))
    button_table['options'].append(jc.create_button('Nouvelle recherche', 'Recommencer'))
    context['response'].append(button_table)

    context['last_step'] = 'color'

    return context
def askPrice(request):
    context = request['context']
    entities = request['entities']
    # creation de la reponse de type bouton et ajout des boutons
    if not 'response' in context:
        context['response'] = []
    button_table = jc.create_button_table(settings.ASK_PRICE)
    button_table['options'].append(jc.create_button('Peu importe', 'peu importe '))
    button_table['options'].append(jc.create_button('Nouvelle recherche', 'Recommencer'))
    context['response'].append(button_table)

    context['last_step'] = 'price'

    return context
def askStoryline(request):
    context = request['context']
    if not 'response' in context:
        context['response'] = []

    button_table = jc.create_button_table(settings.INTRO_SENTENCE)
    button_table['options'].append(jc.create_button('Un aperitif', 'aperitif'))
    button_table['options'].append(jc.create_button('Un repas', 'repas'))
    button_table['options'].append(jc.create_button('Un cadeau', 'cadeau'))
    context['response'].append(button_table)

    context['last_step'] = 'storyline'

    return context
def askMealChoice(request):
    context = request['context']

    if not 'response' in context:
        context['response'] = []

    button_table = jc.create_button_table(settings.ASK_MEAL_CHOICE)
    button_table['options'].append(jc.create_button('Peu importe', 'peu importe'))
    button_table['options'].append(jc.create_button('Nouvelle recherche', 'Recommencer'))
    context['response'].append(button_table)

    context['last_step'] = 'meal'

    return context
def askAdjustment(request):
    context = request['context']

    if not 'response' in context:
        context['response'] = []

    button_table = jc.create_button_table(settings.ASK_ADJUSTMENT)
    button_table['options'].append(jc.create_button('Je suis satisfait', 'satisfait'))
    button_table['options'].append(jc.create_button('Reajuster le prix', 'reajuster'))
    context['response'].append(button_table)

    context['last_step'] = 'adjust'

    return context
def askDinerType(request):
    context = request['context']

    if not 'response' in context:
        context['response'] = []

    button_table = jc.create_button_table(settings.ASK_DINER_TYPE)
    button_table['options'].append(jc.create_button('Dejeuner', 'dejeuner'))
    button_table['options'].append(jc.create_button('Diner', 'diner'))
    button_table['options'].append(jc.create_button('Peu importe', 'peu importe'))
    context['response'].append(button_table)

    context['last_step'] = 'dinertype'

    return context