From 42793e8bcbdb8117313fc7a7ab8c1b39ef91fd51 Mon Sep 17 00:00:00 2001 From: "Daniel J. Summers" Date: Thu, 27 Jun 2024 22:38:11 -0400 Subject: [PATCH] Migrate /help/requests pages --- docs/en/requests/edit.md | 27 ----- docs/en/requests/maintain.md | 29 ----- docs/en/requests/view.md | 17 --- docs/es/requests/edit.md | 27 ----- docs/es/requests/maintain.md | 29 ----- docs/es/requests/view.md | 17 --- src/PrayerTracker.UI/Help.fs | 61 ++++++++++ src/PrayerTracker.UI/PrayerTracker.UI.fsproj | 8 +- src/PrayerTracker.UI/Resources/Common.es.resx | 9 ++ .../Views/Help/Requests/Maintain.es.resx | 112 ++++++++++++++++++ .../Views/Help/Requests/View.es.resx | 94 +++++++++++++++ src/PrayerTracker/App.fs | 6 +- src/PrayerTracker/Help.fs | 16 +++ 13 files changed, 303 insertions(+), 149 deletions(-) delete mode 100644 docs/en/requests/edit.md delete mode 100644 docs/en/requests/maintain.md delete mode 100644 docs/en/requests/view.md delete mode 100644 docs/es/requests/edit.md delete mode 100644 docs/es/requests/maintain.md delete mode 100644 docs/es/requests/view.md create mode 100644 src/PrayerTracker.UI/Resources/Views/Help/Requests/Maintain.es.resx create mode 100644 src/PrayerTracker.UI/Resources/Views/Help/Requests/View.es.resx diff --git a/docs/en/requests/edit.md b/docs/en/requests/edit.md deleted file mode 100644 index a72a2b9..0000000 --- a/docs/en/requests/edit.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -title: Add / Edit a Request ---- - -This page allows you to enter or update a new prayer request. - -## Request Type - -There are 5 request types in PrayerTracker. “Current Requests” are your regular requests that people may have regarding things happening over the next week or so. “Long-Term Requests” are requests that may occur repeatedly or continue indefinitely. “Praise Reports” are like “Current Requests”, but they are answers to prayer to share with your group. “Expecting” is for those who are pregnant. “Announcements” are like “Current Requests”, but instead of a request, they are simply passing information along about something coming up. - -The order above is the order in which the request types appear on the list. “Long-Term Requests” and “Expecting” are not subject to the automatic expiration (set on the “Change Preferences” page) that the other requests are. - -## Date - -For new requests, this is a box with a calendar date picker. Click or tab into the box to display the calendar, which will be preselected to today's date. For existing requests, there will be a check box labeled “Check to not update the date”. This can be used if you are correcting spelling or punctuation, and do not have an actual update to make to the request. - -## Requestor / Subject - -For requests or praises, this field is for the name of the person who made the request or offered the praise report. For announcements, this should contain the subject of the announcement. For all types, it is optional; I used to have an announcement with no subject that ran every week, telling where to send requests and updates. - -## Expiration - -“Expire Normally” means that the request is subject to the expiration days in the group preferences. “Request Never Expires” can be used to make a request never expire (note that this is redundant for “Long-Term Requests” and “Expecting”). If you are editing an existing request, a third option appears. “Expire Immediately” will make the request expire when it is saved. Apart from the icons on the request maintenance page, this is the only way to expire “Long-Term Requests” and “Expecting” requests, but it can be used for any request type. - -## Request - -This is the text of the request. The editor provides many formatting capabilities, including “Spell Check as you Type” (enabled by default), “Paste from Word”, and “Paste Plain”, as well as “Source” view, if you want to edit the HTML yourself. It also supports undo and redo, and the editor supports full-screen mode. Hover over each icon to see what each button does. diff --git a/docs/en/requests/maintain.md b/docs/en/requests/maintain.md deleted file mode 100644 index 8d99872..0000000 --- a/docs/en/requests/maintain.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -title: Maintain Requests ---- - -From this page, you can add, edit, and delete your current requests. You can also restore requests that may have expired, but should be made active once again. - -## Add a New Request - -To add a request, click the icon or text in the center of the page, below the title and above the list of requests for your group. - -## Search Requests - -If you are looking for a particular requests, enter some text in the search box and click “Search”. PrayerTracker will search the Requestor/Subject and Request Text fields (case-insensitively) of both active and inactive requests. The results will be displayed in the same format as the original Maintain Requests page, so the buttons described below will work the same for those requests as well. They will also be displayed in pages, if there are a lot of results; the number per page is configurable by small group. - -## Edit Request - -To edit a request, click the pencil icon; it's the first icon under the “Actions” column heading. - -## Expire a Request - -For active requests, the second icon is an eye with a slash through it; clicking this icon will expire the request immediately. This is equivalent to editing the request, selecting “Expire Immediately”, and saving it. - -## Restore an Inactive Request - -When the page is first displayed, it does not display inactive requests. However, clicking the link at the bottom of the page will refresh the page with the inactive requests shown. The middle icon will look like an eye; clicking it will restore the request as an active request. The last updated date will be current, and the request is set to expire normally. - -## Delete a Request - -Deleting a request is contrary to the intent of PrayerTracker, as you can retrieve requests that have expired. However, if there is a request that needs to be deleted, clicking the trash can icon in the “Actions” column will allow you to do it. Use this option carefully, as these deletions cannot be undone; once a request is deleted, it is gone for good. diff --git a/docs/en/requests/view.md b/docs/en/requests/view.md deleted file mode 100644 index e405889..0000000 --- a/docs/en/requests/view.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -title: View Request List ---- - -From this page, you can view the request list (for today or for the next Sunday), view a printable version of the list, and e-mail the list to the members of your group. (NOTE: If you are logged in as a group member, the only option you will see is to view a printable list.) - -## List for Next Sunday - -This will modify the date for the list, so it will look like it is currently next Sunday. This can be used, for example, to see what requests will expire, or allow you to print a list with Sunday's date on Saturday evening. Note that this link does not appear if it is Sunday. - -## View Printable - -Clicking this link will display the list in a format that is suitable for printing; it does not have the normal PrayerTracker header across the top. Once you have clicked the link, you can print it using your browser's standard “Print” functionality. - -## Send Via E-mail - -Clicking this link will send the list you are currently viewing to your group members. The page will remind you that you are about to do that, and ask for your confirmation. If you proceed, you will see a page that shows to whom the list was sent, and what the list looked like. You may safely use your browser's “Back” button to navigate away from the page. diff --git a/docs/es/requests/edit.md b/docs/es/requests/edit.md deleted file mode 100644 index dc8173c..0000000 --- a/docs/es/requests/edit.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -title: Agregar / Editar una Petición ---- - -Esta página le permite introducir o actualizar una petición de oración nueva. - -## Tipo de Petición - -Hay 5 tipos de peticiones en SeguidorOración. “Peticiones Actuales” son sus peticiones habituales que la gente pueda tener acerca de las cosas que suceden durante la próxima semana o así. “Peticiones a Largo Plazo” son peticiones que pueden ocurrir varias veces, o continuar indefinidamente. “Informes de Alabanza” son como “Peticiones Actuales”, pero son respuestas a la oración para compartir con su grupo. “Embarazada” es para aquellos que están embarazadas. “Anuncios” son como “Peticiones Actuales”, pero en lugar de una petición, simplemente se pasa la información a lo largo de algo por venir. - -El orden anterior es el orden en que los tipos de peticiones aparecen en la lista. “Peticiones a Largo Plazo” y “Embarazada” no están sujetos a la caducidad automática (establecida en el “Cambiar las Preferencias” de la página) que las peticiones son otros. - -## Fecha - -Para nuevas peticiones, se trata de una caja con un selector de fechas del calendario. Haga clic en la pestaña o en la caja para mostrar el calendario, que será preseleccionada para la fecha de hoy. Para peticiones existentes, habrá una casilla de verificación “Seleccionar para no actualizar la fecha”. Esto puede ser usado si corrige la ortografía ni la puntuacion, y no tienen una actualización real de hacer la petición. - -## Peticionario / Sujeto - -Para las peticiones o alabanzas, este campo es el nombre de la persona que hizo la petición o que ofrece el informe de alabanza. Para los anuncios, este debe contener el objeto del anuncio. Para todos los tipos, es opcional, yo solía tener un anuncio con ningún tema que iba todas las semanas, diciendo a dónde enviar peticiones y actualizaciones. - -## Expiración - -“Expirará Normalmente” significa que la petición está sujeta a los días de vencimiento de las preferencias del grupo. “Petición no Expira Nunca” se puede utilizar para hacer una petición que no caduque nunca (nótese que esto es redundante para los tipos “Peticiones a Largo Plazo” y “Embarazada”). Si está editando una petición existente, aparece una tercera opción. “Expirará Inmediatamente” hará que la petición expirará cuando se guarda. Aparte de los iconos de la página de mantenimiento de las peticiones, ésta es la única otra forma de expirar peticiones del tipos “Peticiones a Largo Plazo” y “Embarazada”, pero puede ser utilizada para cualquier tipo de petición. - -## Petición - -Este es el texto de la petición. El editor ofrece muchas capacidades de formato, como "El Corrector Ortográfico al Escribir" (habilitado predeterminado), "Pegar desde Word" y "Pegar sin formato", así como "Código Fuente" punto de vista, si quieres editar el código HTML usted mismo. También es compatible con deshacer y rehacer, y el editor soporta modo de pantalla completa. Pase el ratón sobre cada icono para ver qué hace cada botón. diff --git a/docs/es/requests/maintain.md b/docs/es/requests/maintain.md deleted file mode 100644 index 9e78471..0000000 --- a/docs/es/requests/maintain.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -title: Mantener las Peticiones ---- - -Desde esta página, usted puede agregar, editar y borrar sus peticiones actuales. También puede restaurar peticiones que han caducado, sino que debe ser activa, una vez más. - -## Agregar una Nueva Petición - -Para agregar una petición, haga clic en el icono o el texto en el centro de la página, debajo del título y por encima de la lista de peticiones para su grupo. - -## Busca las Peticiones - -Si está buscando una solicitud en particular, ingrese un texto en el cuadro de búsqueda y haga clic en “Buscar”. SeguidorOración buscará los campos de Solicitante / Asunto y Texto de solicitud (sin distinción de mayúsculas y minúsculas) de solicitudes activas e inactivas. Los resultados se mostrarán en el mismo formato que la página de solicitudes de mantenimiento original, por lo que los botones que se describen a continuación funcionarán igual para esas solicitudes. También se mostrarán en las páginas, si hay muchos resultados; el número por página es configurable por grupos pequeños. - -## Editar la Petición - -Para editar una petición, haga clic en el icono de lápiz, el primer icono bajo el título de columna “Acciones”. - -## Expirar una petición - -Para las peticiones activas, el segundo icono es un ojo con una barra a través de él; Si hace clic en este icono, la petición se cancelará inmediatamente. Esto equivale a editar la petición, seleccionar "Expirará Inmediatamente" y guardarla. - -## Restaurar una Petición Inactivo - -Cuando la página se muestra por primera vez, que no muestra peticiones inactivos. Sin embargo, al hacer clic en el vínculo en la parte inferior de la página se actualizará la página con las peticiones se muestran inactivos. El icono del centro se verá como un ojo; Haciendo clic en él, restaurará la petición como una petición activa. La última fecha actualizada será actual, y la petición se establece para caducar normalmente. - -## Eliminar una Petición - -Eliminación de una petición es contraria a la intención de SeguidorOración, como se puede recuperar peticiones que han expirado. Sin embargo, si hay una solicitud que debe ser eliminado, haga clic en el icono de la papelera en la columna “Acciones” le permitirá hacerlo. Utilice esta opción con cuidado, ya que estas supresiones no se puede deshacer, una vez a la petición se ha borrado, ha desaparecido para siempre. \ No newline at end of file diff --git a/docs/es/requests/view.md b/docs/es/requests/view.md deleted file mode 100644 index ed5114c..0000000 --- a/docs/es/requests/view.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -title: Ver la Lista de Peticiones ---- - -Desde esta página, puede ver la lista de peticiones (para hoy o para el próximo Domingo), ver una versión imprimible de la lista, y por correo electrónico la lista de los miembros de su grupo. (NOTA: Si usted está registrado como miembro de la clase, la única opción que se ve es para ver una lista para imprimir.) - -## Lista para el Próximo Domingo - -Esto modificará la fecha de la lista, por lo que se verá como es en la actualidad el próximo Domingo. Esto puede ser usado, por ejemplo, para ver lo que peticiones de caducidad, ni le permite imprimir una lista con la fecha del Domingo en la noche del Sábado. Tenga en cuenta que este enlace no aparece si es Domingo. - -## Versión Imprimible - -Hacer clic en este vínculo, se muestra la lista en un formato que sea adecuado para imprimir, sino que no tiene el encabezado normal de SeguidorOración en la parte superior. Una vez que haya hecho clic en el enlace, se puede imprimir con el navegador estándar de “Imprimir” funcionalidad. - -## Enviar por correo electrónico - -Al hacer clic en este enlace le enviará la lista que está viendo en ese momento a los miembros del grupo. La página te recordará que estás a punto de hacerlo, y pedir su confirmación. Si continúa, usted verá una página que muestra a la que la lista fue enviado, y lo que la lista parecía. Usted puede utilizar con seguridad de su navegador botón “Atrás” para navegar fuera de la página. diff --git a/src/PrayerTracker.UI/Help.fs b/src/PrayerTracker.UI/Help.fs index 054b21a..0c627a0 100644 --- a/src/PrayerTracker.UI/Help.fs +++ b/src/PrayerTracker.UI/Help.fs @@ -71,4 +71,65 @@ module Requests = raw l["This is the text of the request."]; space raw l["The editor provides many formatting capabilities, including “Spell Check as you Type” (enabled by default), “Paste from Word”, and “Paste Plain”, as well as “Source” view, if you want to edit the HTML yourself."]; space raw l["It also supports undo and redo, and the editor supports full-screen mode. Hover over each icon to see what each button does."] ] ] + + /// Maintain Requests + let maintain () = + let s = I18N.localizer.Force() + let l = I18N.forView "Help/Requests/Maintain" + use sw = new StringWriter() + let raw = rawLocText sw + [ p [] [ + raw l["From this page, you can add, edit, and delete your current requests."]; space + raw l["You can also restore requests that may have expired, but should be made active once again."] ] + h2 [] [ locStr s["Add a New Request"] ] + p [] [ + raw l["To add a request, click the icon or text in the center of the page, below the title and above the list of requests for your group."] ] + h2 [] [ locStr s["Search Requests"] ] + p [] [ + raw l["If you are looking for a particular requests, enter some text in the search box and click “Search”."]; space + raw l["PrayerTracker will search the Requestor/Subject and Request Text fields (case-insensitively) of both active and inactive requests."]; space + raw l["The results will be displayed in the same format as the original Maintain Requests page, so the buttons described below will work the same for those requests as well."]; space + raw l["They will also be displayed in pages, if there are a lot of results; the number per page is configurable by small group."] ] + h2 [] [ locStr s["Edit Request"] ] + p [] [ + raw l["To edit a request, click the pencil icon; it's the first icon under the “Actions” column heading."] ] + h2 [] [ locStr s["Expire a Request"] ] + p [] [ + raw l["For active requests, the second icon is an eye with a slash through it; clicking this icon will expire the request immediately."]; space + raw l["This is equivalent to editing the request, selecting “Expire Immediately”, and saving it."] ] + h2 [] [ locStr s["Restore an Inactive Request"] ] + p [] [ + raw l["When the page is first displayed, it does not display inactive requests."]; space + raw l["However, clicking the link at the bottom of the page will refresh the page with the inactive requests shown."]; space + raw l["The middle icon will look like an eye; clicking it will restore the request as an active request."]; space + raw l["The last updated date will be current, and the request is set to expire normally."] ] + h2 [] [ locStr s["Delete a Request"] ] + p [] [ + raw l["Deleting a request is contrary to the intent of PrayerTracker, as you can retrieve requests that have expired."]; space + raw l["However, if there is a request that needs to be deleted, clicking the trash can icon in the “Actions” column will allow you to do it."]; space + raw l["Use this option carefully, as these deletions cannot be undone; once a request is deleted, it is gone for good."] ] ] + + let view () = + let s = I18N.localizer.Force() + let l = I18N.forView "Help/Requests/View" + use sw = new StringWriter() + let raw = rawLocText sw + [ p [] [ + raw l["From this page, you can view the request list (for today or for the next Sunday), view a printable version of the list, and e-mail the list to the members of your group."]; space + raw l["(NOTE: If you are logged in as a group member, the only option you will see is to view a printable list.)"] ] + h2 [] [ locStr s["List for Next Sunday"] ] + p [] [ + raw l["This will modify the date for the list, so it will look like it is currently next Sunday."]; space + raw l["This can be used, for example, to see what requests will expire, or allow you to print a list with Sunday's date on Saturday evening."]; space + raw l["Note that this link does not appear if it is Sunday."] ] + h2 [] [ locStr s["View Printable"] ] + p [] [ + raw l["Clicking this link will display the list in a format that is suitable for printing; it does not have the normal PrayerTracker header across the top."]; space + raw l["Once you have clicked the link, you can print it using your browser's standard “Print” functionality."] ] + h2 [] [ locStr s["Send via E-mail"] ] + p [] [ + raw l["Clicking this link will send the list you are currently viewing to your group members."]; space + raw l["The page will remind you that you are about to do that, and ask for your confirmation."]; space + raw l["If you proceed, you will see a page that shows to whom the list was sent, and what the list looked like."]; space + raw l["You may safely use your browser's “Back” button to navigate away from the page."] ] ] \ No newline at end of file diff --git a/src/PrayerTracker.UI/PrayerTracker.UI.fsproj b/src/PrayerTracker.UI/PrayerTracker.UI.fsproj index 38ff1e4..fde86ce 100644 --- a/src/PrayerTracker.UI/PrayerTracker.UI.fsproj +++ b/src/PrayerTracker.UI/PrayerTracker.UI.fsproj @@ -7,11 +7,11 @@ + - @@ -40,6 +40,12 @@ ResXFileCodeGenerator + + ResXFileCodeGenerator + + + ResXFileCodeGenerator + ResXFileCodeGenerator diff --git a/src/PrayerTracker.UI/Resources/Common.es.resx b/src/PrayerTracker.UI/Resources/Common.es.resx index 41beb32..4ecfc97 100644 --- a/src/PrayerTracker.UI/Resources/Common.es.resx +++ b/src/PrayerTracker.UI/Resources/Common.es.resx @@ -900,4 +900,13 @@ Agregar o Editar una Petición + + Peticiones de Búsqueda + + + Expirar un Petición + + + Restaurar un Petición Inactiva + \ No newline at end of file diff --git a/src/PrayerTracker.UI/Resources/Views/Help/Requests/Maintain.es.resx b/src/PrayerTracker.UI/Resources/Views/Help/Requests/Maintain.es.resx new file mode 100644 index 0000000..8b6483b --- /dev/null +++ b/src/PrayerTracker.UI/Resources/Views/Help/Requests/Maintain.es.resx @@ -0,0 +1,112 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Desde esta página, usted puede agregar, editar y borrar sus peticiones actuales. + + + También puede restaurar peticiones que han caducado, sino que debe ser activa, una vez más. + + + Para agregar una petición, haga clic en el icono o el texto en el centro de la página, debajo del título y por encima de la lista de peticiones para su grupo. + + + Si está buscando una solicitud en particular, ingrese un texto en el cuadro de búsqueda y haga clic en “Buscar”. + + + SeguidorOración buscará los campos de Solicitante / Asunto y Texto de solicitud (sin distinción de mayúsculas y minúsculas) de solicitudes activas e inactivas. + + + Los resultados se mostrarán en el mismo formato que la página de solicitudes de mantenimiento original, por lo que los botones que se describen a continuación funcionarán igual para esas solicitudes. + + + También se mostrarán en las páginas, si hay muchos resultados; el número por página es configurable por grupos pequeños. + + + Para editar una petición, haga clic en el icono de lápiz, el primer icono bajo el título de columna “Acciones”. + + + Para las peticiones activas, el segundo icono es un ojo con una barra a través de él; Si hace clic en este icono, la petición se cancelará inmediatamente. + + + Esto equivale a editar la petición, seleccionar "Expirará Inmediatamente" y guardarla. + + + Cuando la página se muestra por primera vez, que no muestra peticiones inactivos. + + + Sin embargo, al hacer clic en el vínculo en la parte inferior de la página se actualizará la página con las peticiones se muestran inactivos. + + + El icono del centro se verá como un ojo; Haciendo clic en él, restaurará la petición como una petición activa. + + + La última fecha actualizada será actual, y la petición se establece para caducar normalmente. + + + Eliminación de una petición es contraria a la intención de SeguidorOración, como se puede recuperar peticiones que han expirado. + + + Sin embargo, si hay una solicitud que debe ser eliminado, haga clic en el icono de la papelera en la columna “Acciones” le permitirá hacerlo. + + + Utilice esta opción con cuidado, ya que estas supresiones no se puede deshacer, una vez a la petición se ha borrado, ha desaparecido para siempre. + + \ No newline at end of file diff --git a/src/PrayerTracker.UI/Resources/Views/Help/Requests/View.es.resx b/src/PrayerTracker.UI/Resources/Views/Help/Requests/View.es.resx new file mode 100644 index 0000000..80bbb4e --- /dev/null +++ b/src/PrayerTracker.UI/Resources/Views/Help/Requests/View.es.resx @@ -0,0 +1,94 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Desde esta página, puede ver la lista de peticiones (para hoy o para el próximo Domingo), ver una versión imprimible de la lista, y por correo electrónico la lista de los miembros de su grupo. + + + (NOTA: Si usted está registrado como miembro de la clase, la única opción que se ve es para ver una lista para imprimir.) + + + Esto modificará la fecha de la lista, por lo que se verá como es en la actualidad el próximo Domingo. + + + Esto puede ser usado, por ejemplo, para ver lo que peticiones de caducidad, ni le permite imprimir una lista con la fecha del Domingo en la noche del Sábado. + + + Tenga en cuenta que este enlace no aparece si es Domingo. + + + Hacer clic en este vínculo, se muestra la lista en un formato que sea adecuado para imprimir, sino que no tiene el encabezado normal de SeguidorOración en la parte superior. + + + Una vez que haya hecho clic en el enlace, se puede imprimir con el navegador estándar de “Imprimir” funcionalidad. + + + Al hacer clic en este enlace le enviará la lista que está viendo en ese momento a los miembros del grupo. + + + La página te recordará que estás a punto de hacerlo, y pedir su confirmación. + + + Si continúa, usted verá una página que muestra a la que la lista fue enviado, y lo que la lista parecía. + + + Usted puede utilizar con seguridad de su navegador botón “Atrás” para navegar fuera de la página. + + \ No newline at end of file diff --git a/src/PrayerTracker/App.fs b/src/PrayerTracker/App.fs index 0198d9a..c008549 100644 --- a/src/PrayerTracker/App.fs +++ b/src/PrayerTracker/App.fs @@ -99,9 +99,11 @@ module Configure = route "/class/logon" (redirectTo true "/small-group/log-on") routef "/error/%s" Handlers.Home.error subRoute "/help" [ - route "" Handlers.Help.index + route "" Handlers.Help.index subRoute "/requests" [ - route "/edit" Handlers.Help.Requests.edit + route "/edit" Handlers.Help.Requests.edit + route "/maintain" Handlers.Help.Requests.maintain + route "/view" Handlers.Help.Requests.view ] ] routef "/language/%s" Handlers.Home.language diff --git a/src/PrayerTracker/Help.fs b/src/PrayerTracker/Help.fs index 8e0be59..a8ae704 100644 --- a/src/PrayerTracker/Help.fs +++ b/src/PrayerTracker/Help.fs @@ -22,3 +22,19 @@ module Requests = |> Views.Layout.help ctx.Strings["Add / Edit a Request"].Value false |> renderHtml next ctx } + + // GET: /help/requests/maintain + let maintain : HttpHandler = fun next ctx -> task { + return! + Views.Help.Requests.maintain () + |> Views.Layout.help ctx.Strings["Maintain Requests"].Value false + |> renderHtml next ctx + } + + // GET: /help/requests/view + let view : HttpHandler = fun next ctx -> task { + return! + Views.Help.Requests.view () + |> Views.Layout.help ctx.Strings["View Request List"].Value false + |> renderHtml next ctx + }