X-Git-Url: http://git.hcoop.net/bpt/portal.git/blobdiff_plain/afc975d0463c554c5dd404851f151ba0e63c1353..b6dd1aafb4c9cddf89b06c2eeac1b5277046ad9f:/kind.mlt diff --git a/kind.mlt b/kind.mlt index 11ce043..b378d97 100644 --- a/kind.mlt +++ b/kind.mlt @@ -6,7 +6,7 @@ ref showNormal = true; if $"cmd" = "add" then val id = Contact.addKind ($"name", (iff $"url" = "on" then SOME ($"urlPrefix", $"urlPostfix") else NONE)) - %>

Contact kind added

+ %>

Contact kind added

<% elseif $"mod" <> "" then showNormal := false; @@ -15,9 +15,9 @@ if $"cmd" = "add" then
- - -
Name:
URL pattern: <% + + +
Name:
URL pattern: <% switch #makeUrl kind of NONE => %> ...<% | SOME (pre, post) => %> ...<% @@ -31,13 +31,13 @@ if $"cmd" = "add" then val id = Web.stoi ($"save"); val kind = Contact.lookupKind id; Contact.modKind {kind with name = $"name", makeUrl = (iff $"url" = "on" then SOME ($"urlPrefix", $"urlPostfix") else NONE)} - %>

Contact kind modified

+ %>

Contact kind modified

<% elseif $"del" <> "" then showNormal := false; val id = Web.stoi ($"del"); val kind = Contact.lookupKind id %> -

Are you sure you want to delete "<% Web.html (#name kind) %>"?

+

Are you sure you want to delete "<% Web.html (#name kind) %>"?

">Yes, delete "<% Web.html (#name kind) %>"! @@ -45,24 +45,24 @@ if $"cmd" = "add" then val id = Web.stoi ($"del2"); val kind = Contact.lookupKind id; Contact.deleteKind id %> -

"<% Web.html (#name kind) %>" deleted

+

"<% Web.html (#name kind) %>" deleted

<% end %> <% if showNormal then %> -

Add a contact kind

+

Add a contact kind

- - - +
Name:
URL pattern: ...
+ +
Name:
URL pattern: ...
-

Current contact kinds

+

Current contact kinds

Kind URL pattern