X-Git-Url: https://git.hcoop.net/hcoop/portal.git/blobdiff_plain/a4ccdb5e625953aa6ece8874b34c811353144426..0b4db14f7226c2e419320aa1a5140056038ba0c3:/support.mlt diff --git a/support.mlt b/support.mlt index a9c64c9..077ba4e 100644 --- a/support.mlt +++ b/support.mlt @@ -7,16 +7,16 @@ ref showNormal = true; if $"sub" <> "" then Support.subscribe { cat = Web.stoi ($"sub"), usr = you } - %>

Subscribed

+ %>

Subscribed

<% elseif $"unsub" <> "" then Support.unsubscribe { cat = Web.stoi ($"unsub"), usr = you } - %>

Unsubscribed

+ %>

Unsubscribed

<% elseif $"cmd" = "add" then Group.requireGroupName "support"; val id = Support.addCategory (Web.stoi ($"grp"), $"name", $"descr") - %>

Category added

+ %>

Category added

<% elseif $"mod" <> "" then Group.requireGroupName "support"; @@ -24,18 +24,18 @@ if $"sub" <> "" then val id = Web.stoi ($"mod"); val cat = Support.lookupCategory id %> -

Modify category

+

Modify category

- - -
Name:
Owning group: + + - +
Name:
Owning group:
Description:
Description:
@@ -45,14 +45,14 @@ if $"sub" <> "" then val id = Web.stoi ($"save"); val cat = Support.lookupCategory id; Support.modCategory {cat with name = $"name", descr = $"descr", grp = Web.stoi ($"grp")} - %>

Category saved

+ %>

Category saved

<% elseif $"del" <> "" then Group.requireGroupName "support"; showNormal := false; val id = Web.stoi ($"del"); val cat = Support.lookupCategory id; - %>

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

+ %>

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

Yes, delete "<% Web.html (#name cat) %>"! <% elseif $"del2" <> "" then @@ -60,13 +60,30 @@ if $"sub" <> "" then val id = Web.stoi ($"del2"); val cat = Support.lookupCategory id; Support.deleteCategory id; - %>

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

+ %>

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

<% end; if showNormal then %> -

Choose a category:

+ + +

Otherwise...

+ +

First, check our member FAQ and read all the question descriptions to make sure that your problem isn't solved there.

+ +

If you don't find it, visit our Bugzilla database to open a custom issue. You can log in there using the same username and password that you are using to access this portal.

+ + <% if admin then %> -

Add new category

+ <% end %>