def register_save(request, medicine_id): ''' Save the subscription of the patient to the medicine waiting list. Display the success message. ''' subscription = subscription_save(request, medicine_id) backurl = reverse('medicines_register') nexturl = reverse('web_index') title = _("Registration successful") message = _("The patient will receive a message once the medicine " " \"%s\" is available in the clinic again.") \ % subscription.infoservice.name new_button_label = _("Register another patient") success = True return render_to_response('web/status_message.html', locals(), context_instance = RequestContext(request))
def register_save(request, group_id): ''' Save the subscription of the patient to the information group. Display the success message. ''' backurl = reverse('groups_register', kwargs = {'group_id': group_id}) nexturl = reverse('web_index') subscription = subscription_save(request, group_id) title = _("Registration successful") message = _("The patient will now receive all messages from the " " \"%s\" service.") % subscription.infoservice.name new_button_label = _("Register another patient") success = True return render_to_response('web/status_message.html', locals(), context_instance = RequestContext(request))