From 339b03b28881dbd1370071918433ccc75279d81b Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 7 Sep 2009 15:11:21 +0000 Subject: Put viewroles in a table, changed some wording for new roles and users. --- app/acf-util/password-controller.lua | 2 +- app/acf-util/password-status-html.lsp | 2 +- app/acf-util/roles-controller.lua | 2 +- app/acf-util/roles-viewroles-html.lsp | 10 +++++----- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'app/acf-util') diff --git a/app/acf-util/password-controller.lua b/app/acf-util/password-controller.lua index b2fab85..8260d82 100755 --- a/app/acf-util/password-controller.lua +++ b/app/acf-util/password-controller.lua @@ -60,7 +60,7 @@ function newuser(self) return self.model.read_user(self) end, function(value) return self.model.create_user(self, value) - end, self.clientdata, "Save", "New User Settings", "Saved user") + end, self.clientdata, "Create", "Create New User", "Created user") end function deleteuser(self) diff --git a/app/acf-util/password-status-html.lsp b/app/acf-util/password-status-html.lsp index 714dfae..045d770 100755 --- a/app/acf-util/password-status-html.lsp +++ b/app/acf-util/password-status-html.lsp @@ -14,7 +14,7 @@ io.write("")

Create new account

-
+

Existing account

diff --git a/app/acf-util/roles-controller.lua b/app/acf-util/roles-controller.lua index 738f54f..27ddef7 100644 --- a/app/acf-util/roles-controller.lua +++ b/app/acf-util/roles-controller.lua @@ -47,7 +47,7 @@ newrole = function(self) return controllerfunctions.handle_form(self, function() return self.model.getpermissions(self) end, function(value) return self.model.setpermissions(self, value, true) end, - self.clientdata, "Save", "Create New Role", "New Role Created") + self.clientdata, "Create", "Create New Role", "New Role Created") end editrole = function(self) diff --git a/app/acf-util/roles-viewroles-html.lsp b/app/acf-util/roles-viewroles-html.lsp index 46fdfc2..9575ac6 100644 --- a/app/acf-util/roles-viewroles-html.lsp +++ b/app/acf-util/roles-viewroles-html.lsp @@ -11,20 +11,20 @@

Create new role

-
+

Existing roles

<% if view.value.default_roles then %> -
+ <% for x,role in pairs(view.value.default_roles.value) do %> -
<%= html.html_escape(role) %>
+ <% end %> - +
<%= html.html_escape(role) %>
[View this role] [Edit this role] -
+
<% end %> <% if view.value.defined_roles then %>
-- cgit v1.2.3