X-Git-Url: http://git.hcoop.net/bpt/portal.git/blobdiff_plain/d6223be994735931643a8205a2c2c9724640fa21..1da9824864eb5f3222153a4cdad916117bcd9a66:/kind.mlt diff --git a/kind.mlt b/kind.mlt index 2f8f08c..b378d97 100644 --- a/kind.mlt +++ b/kind.mlt @@ -6,18 +6,18 @@ 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; val id = Web.stoi ($"mod"); val kind = Contact.lookupKind id %> -
+ - - -
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