Beispiel #1
0
    rule_progress,
)

urlpatterns = patterns('corehq.apps.reminders.views',
    url(r'^list/$', RemindersListView.as_view(), name=RemindersListView.urlname),
    url(r'^broadcasts/$', BroadcastListView.as_view(), name=BroadcastListView.urlname),
    url(r'^broadcasts/add/$', CreateBroadcastView.as_view(), name=CreateBroadcastView.urlname),
    url(r'^broadcasts/edit/(?P<broadcast_id>[\w-]+)/$', EditBroadcastView.as_view(),
        name=EditBroadcastView.urlname),
    url(r'^broadcasts/copy/(?P<broadcast_id>[\w-]+)/$', CopyBroadcastView.as_view(),
        name=CopyBroadcastView.urlname),
    url(r'^scheduled/', ScheduledRemindersCalendarView.as_view(), name=ScheduledRemindersCalendarView.urlname),
    url(r'^schedule/complex/$',
        CreateComplexScheduledReminderView.as_view(), name=CreateComplexScheduledReminderView.urlname),
    url(r'^schedule/(?P<handler_id>[\w-]+)/$',
        EditScheduledReminderView.as_view(), name=EditScheduledReminderView.urlname),
    url(r'^schedule/$',
        CreateScheduledReminderView.as_view(), name=CreateScheduledReminderView.urlname),
    url(r'^keywords/$', KeywordsListView.as_view(), name=KeywordsListView.urlname),
    url(r'^keywords/structured/add/$', AddStructuredKeywordView.as_view(),
        name=AddStructuredKeywordView.urlname),
    url(r'^keywords/normal/add/$', AddNormalKeywordView.as_view(),
        name=AddNormalKeywordView.urlname),
    url(r'^keywords/structured/edit/(?P<keyword_id>[\w-]+)/$',
        EditStructuredKeywordView.as_view(),
        name=EditStructuredKeywordView.urlname),
    url(r'^keywords/normal/edit/(?P<keyword_id>[\w-]+)/$',
        EditNormalKeywordView.as_view(), name=EditNormalKeywordView.urlname),
    url(r'^rule_progress/$', rule_progress, name='reminder_rule_progress'),
)
Beispiel #2
0
    EditStructuredKeywordView,
    AddNormalKeywordView,
    EditNormalKeywordView,
)

urlpatterns = patterns('corehq.apps.reminders.views',
    url(r'^all/$', 'list_reminders', name='list_reminders'),
    url(r'^list/$', RemindersListView.as_view(), name=RemindersListView.urlname),
    url(r'^delete/(?P<handler_id>[\w-]+)/$', 'delete_reminder', name='delete_reminder'),
    url(r'^scheduled/', 'scheduled_reminders', name='scheduled_reminders'),
    url(r'^schedule/complex/$',
        CreateComplexScheduledReminderView.as_view(), name=CreateComplexScheduledReminderView.urlname),
    url(r'^schedule/(?P<handler_id>[\w-]+)/$',
        EditScheduledReminderView.as_view(), name=EditScheduledReminderView.urlname),
    url(r'^schedule/$',
        CreateScheduledReminderView.as_view(), name=CreateScheduledReminderView.urlname),
    url(r'^keywords/$', KeywordsListView.as_view(), name=KeywordsListView.urlname),
    url(r'^keywords/structured/add/$', AddStructuredKeywordView.as_view(),
        name=AddStructuredKeywordView.urlname),
    url(r'^keywords/normal/add/$', AddNormalKeywordView.as_view(),
        name=AddNormalKeywordView.urlname),
    url(r'^keywords/structured/edit/(?P<keyword_id>[\w-]+)/$',
        EditStructuredKeywordView.as_view(),
        name=EditStructuredKeywordView.urlname),
    url(r'^keywords/normal/edit/(?P<keyword_id>[\w-]+)/$',
        EditNormalKeywordView.as_view(), name=EditNormalKeywordView.urlname),
    url(r'^survey_list/$', 'survey_list', name='survey_list'),
    url(r'^add_survey/$', 'add_survey', name='add_survey'),
    url(r'^edit_survey/(?P<survey_id>[\w-]+)/$', 'add_survey', name='edit_survey'),
    url(r'^add_sample/$', 'add_sample', name='add_sample'),
    url(r'^edit_sample/(?P<sample_id>[\w-]+)/$', 'add_sample', name='edit_sample'),
Beispiel #3
0
     EditBroadcastView.as_view(),
     name=EditBroadcastView.urlname),
 url(r'^broadcasts/copy/(?P<broadcast_id>[\w-]+)/$',
     CopyBroadcastView.as_view(),
     name=CopyBroadcastView.urlname),
 url(r'^scheduled/',
     ScheduledRemindersCalendarView.as_view(),
     name=ScheduledRemindersCalendarView.urlname),
 url(r'^schedule/complex/$',
     CreateComplexScheduledReminderView.as_view(),
     name=CreateComplexScheduledReminderView.urlname),
 url(r'^schedule/(?P<handler_id>[\w-]+)/$',
     EditScheduledReminderView.as_view(),
     name=EditScheduledReminderView.urlname),
 url(r'^schedule/$',
     CreateScheduledReminderView.as_view(),
     name=CreateScheduledReminderView.urlname),
 url(r'^keywords/$',
     KeywordsListView.as_view(),
     name=KeywordsListView.urlname),
 url(r'^keywords/structured/add/$',
     AddStructuredKeywordView.as_view(),
     name=AddStructuredKeywordView.urlname),
 url(r'^keywords/normal/add/$',
     AddNormalKeywordView.as_view(),
     name=AddNormalKeywordView.urlname),
 url(r'^keywords/structured/edit/(?P<keyword_id>[\w-]+)/$',
     EditStructuredKeywordView.as_view(),
     name=EditStructuredKeywordView.urlname),
 url(r'^keywords/normal/edit/(?P<keyword_id>[\w-]+)/$',
     EditNormalKeywordView.as_view(),
Beispiel #4
0
 url(r"^broadcasts/$", BroadcastListView.as_view(), name=BroadcastListView.urlname),
 url(r"^broadcasts/add/$", CreateBroadcastView.as_view(), name=CreateBroadcastView.urlname),
 url(r"^broadcasts/edit/(?P<broadcast_id>[\w-]+)/$", EditBroadcastView.as_view(), name=EditBroadcastView.urlname),
 url(r"^broadcasts/copy/(?P<broadcast_id>[\w-]+)/$", CopyBroadcastView.as_view(), name=CopyBroadcastView.urlname),
 url(r"^scheduled/", ScheduledRemindersCalendarView.as_view(), name=ScheduledRemindersCalendarView.urlname),
 url(
     r"^schedule/complex/$",
     CreateComplexScheduledReminderView.as_view(),
     name=CreateComplexScheduledReminderView.urlname,
 ),
 url(
     r"^schedule/(?P<handler_id>[\w-]+)/$",
     EditScheduledReminderView.as_view(),
     name=EditScheduledReminderView.urlname,
 ),
 url(r"^schedule/$", CreateScheduledReminderView.as_view(), name=CreateScheduledReminderView.urlname),
 url(r"^keywords/$", KeywordsListView.as_view(), name=KeywordsListView.urlname),
 url(r"^keywords/structured/add/$", AddStructuredKeywordView.as_view(), name=AddStructuredKeywordView.urlname),
 url(r"^keywords/normal/add/$", AddNormalKeywordView.as_view(), name=AddNormalKeywordView.urlname),
 url(
     r"^keywords/structured/edit/(?P<keyword_id>[\w-]+)/$",
     EditStructuredKeywordView.as_view(),
     name=EditStructuredKeywordView.urlname,
 ),
 url(
     r"^keywords/normal/edit/(?P<keyword_id>[\w-]+)/$",
     EditNormalKeywordView.as_view(),
     name=EditNormalKeywordView.urlname,
 ),
 url(r"^reminders_in_error/$", "reminders_in_error", name="reminders_in_error"),
 url(