From 7f43f3bfe50a4bfbbaa74d52b889668354ad9fcf Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Sat, 23 Aug 2014 17:24:11 +0200 Subject: remove html templates --- includes/pages/user_myshifts.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'includes/pages/user_myshifts.php') diff --git a/includes/pages/user_myshifts.php b/includes/pages/user_myshifts.php index 333f9517..3a3f6712 100644 --- a/includes/pages/user_myshifts.php +++ b/includes/pages/user_myshifts.php @@ -23,7 +23,10 @@ function user_myshifts() { success(_("Key changed.")); redirect(page_link_to('user_myshifts')); } - return template_render('../templates/user_myshifts_reset.html', array()); + return page_with_title(_("Reset API key"), array( + error(_("If you reset the key, the url to your iCal- and JSON-export and your atom feed changes! You have to update it in every application using one of these exports."), true), + button(page_link_to('myshifts') . '&reset=ack', _("Continue"), 'btn-danger') + )); } elseif (isset($_REQUEST['edit']) && preg_match("/^[0-9]*$/", $_REQUEST['edit'])) { $id = $_REQUEST['edit']; $shift = sql_select("SELECT -- cgit v1.2.3-54-g00ecf