From b2aa5bb6136f733bd983bea03239e976fe4dc6ba Mon Sep 17 00:00:00 2001 From: Parabola Date: Sun, 23 Jan 2011 00:25:31 +0000 Subject: Initial commit. Ported cgit design to roundup's --- html/_generic.404.html | 10 ++ html/_generic.calendar.html | 19 ++ html/_generic.collision.html | 17 ++ html/_generic.help-empty.html | 9 + html/_generic.help-list.html | 84 +++++++++ html/_generic.help-search.html | 14 ++ html/_generic.help-submit.html | 74 ++++++++ html/_generic.help.html | 99 +++++++++++ html/_generic.index.html | 72 ++++++++ html/_generic.item.html | 59 +++++++ html/archnavbar | 1 + html/file.index.html | 32 ++++ html/file.item.html | 54 ++++++ html/help.html | 39 +++++ html/help_controls.js | 324 ++++++++++++++++++++++++++++++++++ html/home.classlist.html | 26 +++ html/home.html | 11 ++ html/issue.index.html | 162 +++++++++++++++++ html/issue.item.html | 198 +++++++++++++++++++++ html/issue.search.html | 235 +++++++++++++++++++++++++ html/keyword.item.html | 56 ++++++ html/msg.index.html | 26 +++ html/msg.item.html | 84 +++++++++ html/page.html | 383 +++++++++++++++++++++++++++++++++++++++++ html/query.edit.html | 112 ++++++++++++ html/query.item.html | 4 + html/user.forgotten.html | 44 +++++ html/user.help-search.html | 86 +++++++++ html/user.help.html | 50 ++++++ html/user.index.html | 50 ++++++ html/user.item.html | 170 ++++++++++++++++++ html/user.register.html | 82 +++++++++ html/user.rego_progress.html | 17 ++ html/user_utils.js | 114 ++++++++++++ 34 files changed, 2817 insertions(+) create mode 100644 html/_generic.404.html create mode 100644 html/_generic.calendar.html create mode 100644 html/_generic.collision.html create mode 100644 html/_generic.help-empty.html create mode 100644 html/_generic.help-list.html create mode 100644 html/_generic.help-search.html create mode 100644 html/_generic.help-submit.html create mode 100644 html/_generic.help.html create mode 100644 html/_generic.index.html create mode 100644 html/_generic.item.html create mode 120000 html/archnavbar create mode 100644 html/file.index.html create mode 100644 html/file.item.html create mode 100644 html/help.html create mode 100644 html/help_controls.js create mode 100644 html/home.classlist.html create mode 100644 html/home.html create mode 100644 html/issue.index.html create mode 100644 html/issue.item.html create mode 100644 html/issue.search.html create mode 100644 html/keyword.item.html create mode 100644 html/msg.index.html create mode 100644 html/msg.item.html create mode 100644 html/page.html create mode 100644 html/query.edit.html create mode 100644 html/query.item.html create mode 100644 html/user.forgotten.html create mode 100644 html/user.help-search.html create mode 100644 html/user.help.html create mode 100644 html/user.index.html create mode 100644 html/user.item.html create mode 100644 html/user.register.html create mode 100644 html/user.rego_progress.html create mode 100644 html/user_utils.js diff --git a/html/_generic.404.html b/html/_generic.404.html new file mode 100644 index 0000000..451367d --- /dev/null +++ b/html/_generic.404.html @@ -0,0 +1,10 @@ + + +Item Not Found + + + +There is no with id + + + diff --git a/html/_generic.calendar.html b/html/_generic.calendar.html new file mode 100644 index 0000000..0455873 --- /dev/null +++ b/html/_generic.calendar.html @@ -0,0 +1,19 @@ + + + + + + + + + + + + diff --git a/html/_generic.collision.html b/html/_generic.collision.html new file mode 100644 index 0000000..3bab076 --- /dev/null +++ b/html/_generic.collision.html @@ -0,0 +1,17 @@ + +<span tal:replace="python:context._classname.capitalize()" + i18n:name="class" /> Edit Collision - <span i18n:name="tracker" + tal:replace="config/TRACKER_NAME" /> + Edit Collision + + + + + diff --git a/html/_generic.help-empty.html b/html/_generic.help-empty.html new file mode 100644 index 0000000..ec0e05a --- /dev/null +++ b/html/_generic.help-empty.html @@ -0,0 +1,9 @@ + + + Empty page (no search performed yet) + + +

Please specify your search parameters!

+ + + diff --git a/html/_generic.help-list.html b/html/_generic.help-list.html new file mode 100644 index 0000000..487dd2a --- /dev/null +++ b/html/_generic.help-list.html @@ -0,0 +1,84 @@ + + + Search result for user helper + + + + + + +
+
+  

You are not + allowed to view this page.

+ + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + +
 x
+ + + +
+
+
+
+ +
+     
+  
+
+
diff --git a/html/_generic.help-search.html b/html/_generic.help-search.html
new file mode 100644
index 0000000..386eadf
--- /dev/null
+++ b/html/_generic.help-search.html
@@ -0,0 +1,14 @@
+
+  
+    Frame for search input fields
+  
+  
+    

Generic template + help-search + or version for class + user + is not yet implemented

+ + + + diff --git a/html/_generic.help-submit.html b/html/_generic.help-submit.html new file mode 100644 index 0000000..7b4239e --- /dev/null +++ b/html/_generic.help-submit.html @@ -0,0 +1,74 @@ + + + + + + Generic submit page for framed helper windows + + + + + +
+ 
+
+ +
+ + + + +
+ + + + diff --git a/html/_generic.help.html b/html/_generic.help.html new file mode 100644 index 0000000..f3876ee --- /dev/null +++ b/html/_generic.help.html @@ -0,0 +1,99 @@ + + + + + + + <tal:x i18n:name="property" + tal:content="property" i18n:translate="" /> help - <span i18n:name="tracker" + tal:replace="config/TRACKER_NAME" /> + + + + + +
+ +
+ + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + +
 x
+ + + +
 x
+ +
+ + + diff --git a/html/_generic.index.html b/html/_generic.index.html new file mode 100644 index 0000000..f0a8d10 --- /dev/null +++ b/html/_generic.index.html @@ -0,0 +1,72 @@ + + + +<span tal:replace="python:context._classname.capitalize()" + i18n:name="class" /> editing - <span i18n:name="tracker" + tal:replace="config/TRACKER_NAME" /> + editing + + + +You are not allowed to view this page. + +Please login with your username and password. + + + +

+ You may edit the contents of the + + class using this form. Commas, newlines and double quotes (") must be + handled delicately. You may include commas and newlines by enclosing the + values in double-quotes ("). Double quotes themselves must be quoted by + doubling (""). +

+ +

+ Multilink properties have their multiple values colon (":") separated + (... ,"one:two:three", ...) +

+ +

+ Remove entries by deleting their line. Add new entries by appending + them to the table - put an X in the id column. If you wish to restore a + removed item and you know its id then just put that id in the id column. +

+
+
+ +
+ + +
+
+ + + + + + + + + + +
 
 
+ + + +
+ diff --git a/html/_generic.item.html b/html/_generic.item.html new file mode 100644 index 0000000..8704f47 --- /dev/null +++ b/html/_generic.item.html @@ -0,0 +1,59 @@ + +<span tal:replace="python:context._classname.capitalize()" + i18n:name="class" /> editing - <span i18n:name="tracker" + tal:replace="config/TRACKER_NAME" /> + editing + + + +

+ You are not allowed to view this page.

+ +

+ Please login with your username and password.

+ +
+ +
+ + + + + + + + + + + + + + + +
  + submit button will go here +
+ +
+ + +

Showing 10 items. +Show all history +(warning: this could be VERY long)

+ +
+ + + +
+ diff --git a/html/archnavbar b/html/archnavbar new file mode 120000 index 0000000..4418ff7 --- /dev/null +++ b/html/archnavbar @@ -0,0 +1 @@ +/srv/http/web/media/archnavbar/ \ No newline at end of file diff --git a/html/file.index.html b/html/file.index.html new file mode 100644 index 0000000..9672930 --- /dev/null +++ b/html/file.index.html @@ -0,0 +1,32 @@ + + +List of files - <span tal:replace="config/TRACKER_NAME" i18n:name="tracker" /> +List of files + + + + + + + + + + + + + + + + + +
DownloadContent TypeUploaded ByDate
+ dld link + content typecreator's namecreation date
+ + + +
+ diff --git a/html/file.item.html b/html/file.item.html new file mode 100644 index 0000000..12c3240 --- /dev/null +++ b/html/file.item.html @@ -0,0 +1,54 @@ + +File display - <span + i18n:name="tracker" tal:replace="config/TRACKER_NAME" /> +File display + + + +

+ You are not allowed to view this page.

+ +

+ Please login with your username and password.

+ +
+ + + + + + + + + + + + + + + +
Name
Content Type
+   + + + + submit button here
+
+ +download + + + + + + + diff --git a/html/help.html b/html/help.html new file mode 100644 index 0000000..3b134ad --- /dev/null +++ b/html/help.html @@ -0,0 +1,39 @@ + + + + + + x + + + + + + + + + + +
+ diff --git a/html/help_controls.js b/html/help_controls.js new file mode 100644 index 0000000..480170a --- /dev/null +++ b/html/help_controls.js @@ -0,0 +1,324 @@ +// initial values for either Nosy, Superseder, Keyword and Waiting On, +// depending on which has called +original_field = form[field].value; + +// Some browsers (ok, IE) don't define the "undefined" variable. +undefined = document.geez_IE_is_really_friggin_annoying; + +function trim(value) { + var temp = value; + var obj = /^(\s*)([\W\w]*)(\b\s*$)/; + if (obj.test(temp)) { temp = temp.replace(obj, '$2'); } + var obj = / /g; + while (temp.match(obj)) { temp = temp.replace(obj, " "); } + return temp; +} + +function determineList() { + // generate a comma-separated list of the checked items + var list = new String(''); + + // either a checkbox object or an array of checkboxes + var check = document.frm_help.check; + + if ((check.length == undefined) && (check.checked != undefined)) { + // only one checkbox on page + if (check.checked) { + list = check.value; + } + } else { + // array of checkboxes + for (box=0; box < check.length; box++) { + if (check[box].checked) { + if (list.length == 0) { + separator = ''; + } + else { + separator = ','; + } + // we used to use an Array and push / join, but IE5.0 sux + list = list + separator + check[box].value; + } + } + } + return list; +} + +/** + * update the field in the opening window; + * the text_field variable must be set in the calling page + */ +function updateOpener() { + // write back to opener window + if (document.frm_help.check==undefined) { return; } + form[field].value = text_field.value; +} + +function updateList() { + // write back to opener window + if (document.frm_help.check==undefined) { return; } + form[field].value = determineList(); +} + +function updatePreview() { + // update the preview box + if (document.frm_help.check==undefined) { return; } + writePreview(determineList()); +} + +function clearList() { + // uncheck all checkboxes + if (document.frm_help.check==undefined) { return; } + for (box=0; box < document.frm_help.check.length; box++) { + document.frm_help.check[box].checked = false; + } +} + +function reviseList_framed(form, textfield) { + // update the checkboxes based on the preview field + // alert('reviseList_framed') + // alert(form) + if (form.check==undefined) + return; + // alert(textfield) + var to_check; + var list = textfield.value.split(","); + if (form.check.length==undefined) { + check = form.check; + to_check = false; + for (val in list) { + if (check.value==trim(list[val])) { + to_check = true; + break; + } + } + check.checked = to_check; + } else { + for (box=0; box < form.check.length; box++) { + check = form.check[box]; + to_check = false; + for (val in list) { + if (check.value==trim(list[val])) { + to_check = true; + break; + } + } + check.checked = to_check; + } + } +} + +function reviseList(vals) { + // update the checkboxes based on the preview field + if (document.frm_help.check==undefined) { return; } + var to_check; + var list = vals.split(","); + if (document.frm_help.check.length==undefined) { + check = document.frm_help.check; + to_check = false; + for (val in list) { + if (check.value==trim(list[val])) { + to_check = true; + break; + } + } + check.checked = to_check; + } else { + for (box=0; box < document.frm_help.check.length; box++) { + check = document.frm_help.check[box]; + to_check = false; + for (val in list) { + if (check.value==trim(list[val])) { + to_check = true; + break; + } + } + check.checked = to_check; + } + } +} + +function resetList() { + // reset preview and check boxes to initial values + if (document.frm_help.check==undefined) { return; } + writePreview(original_field); + reviseList(original_field); +} + +function writePreview(val) { + // writes a value to the text_preview + document.frm_help.text_preview.value = val; +} + +function focusField(name) { + for(i=0; i < document.forms.length; ++i) { + var obj = document.forms[i].elements[name]; + if (obj && obj.focus) {obj.focus();} + } +} + +function selectField(name) { + for(i=0; i < document.forms.length; ++i) { + var obj = document.forms[i].elements[name]; + if (obj && obj.focus){obj.focus();} + if (obj && obj.select){obj.select();} + } +} + +function checkRequiredFields(fields) +{ + var bonk=''; + var res=''; + var argv = checkRequiredFields.arguments; + var argc = argv.length; + var input = ''; + var val=''; + + for (var i=0; i < argc; i++) { + fi = argv[i]; + input = document.getElementById(fi); + if (input) { + val = input.value + if (val == '' || val == '-1' || val == -1) { + if (res == '') { + res = fi; + bonk = input; + } else { + res += ', '+fi; + } + } + } else { + alert('Field with id='+fi+' not found!') + } + } + if (res == '') { + return submit_once(); + } else { + alert('Missing value here ('+res+')!'); + if (window.event && window.event.returnvalue) { + event.returnValue = 0; // work-around for IE + } + bonk.focus(); + return false; + } +} + +/** + * seeks the given value (2nd argument) + * in the value of the given input element (1st argument), + * which is considered a list of values, separated by commas + */ +function has_value(input, val) +{ + var actval = input.value + var arr = feld.value.split(','); + var max = arr.length; + for (i=0;i remove_val() + * + * This will work nicely even for batched lists + */ +function append_val(name, val) +{ + var feld = document.itemSynopsis[name]; + var actval = feld.value; + if (actval == '') { + feld.value = val + } else { + var arr = feld.value.split(','); + var max = arr.length; + for (i=0;i append_val() + */ +function remove_val(name, val) +{ + var feld = document.itemSynopsis[name]; + var actval = feld.value; + var changed=false; + if (actval == '') { + return + } else { + var arr = feld.value.split(','); + var max = arr.length; + var neu = '' + for (i=0;i +List of classes - <span + i18n:name="tracker" tal:replace="config/TRACKER_NAME" /> +List of classes + + + + + + + + + + + + + +
+ classname +
nametype
+ + +
+ diff --git a/html/home.html b/html/home.html new file mode 100644 index 0000000..de249f1 --- /dev/null +++ b/html/home.html @@ -0,0 +1,11 @@ + + + diff --git a/html/issue.index.html b/html/issue.index.html new file mode 100644 index 0000000..dcfbae2 --- /dev/null +++ b/html/issue.index.html @@ -0,0 +1,162 @@ + + + + <span tal:omit-tag="true" i18n:translate="" >List of issues</span> + <span tal:condition="request/dispname" + tal:replace="python:' - %s '%request.dispname" + /> - <span tal:replace="config/TRACKER_NAME" /> + + + List of issues + + + + + +

+ You are not allowed to view this page.

+ +

+ Please login with your username and password.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PriorityIDCreationActivityActorKeywordTitleStatusCreatorAssigned To
       + title + + + + + +    
+ .. + out of + + << previous +   + + next >>   +
+ +Download as CSV + +
+ + + + + + + + + + + + + + + + + + + +
+ Sort on: + + + Descending: +
+ Group on: + + + Descending: +
+ + +
+
+ +
+ + +
vim: sw=1 ts=8 et si + + diff --git a/html/issue.item.html b/html/issue.item.html new file mode 100644 index 0000000..3a397c2 --- /dev/null +++ b/html/issue.item.html @@ -0,0 +1,198 @@ + + + +<tal:block condition="context/id" i18n:translate="" + >Issue <tal:x tal:content="context/id" i18n:name="id" + />: <tal:x content="context/title" i18n:name="title" + /> - <tal:x content="config/TRACKER_NAME" i18n:name="tracker" +/></tal:block> +<tal:block condition="not:context/id" i18n:translate="" + >New Issue - <span tal:replace="config/TRACKER_NAME" i18n:name="tracker" +/></tal:block> + + + New Issue + New Issue Editing + Issue + Issue Editing + + + + +

+ You are not allowed to view this page.

+ +

+ Please login with your username and password.

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Titletitle
PrioritypriorityStatusstatus
Superseder + + + +
View: + +
+
Nosy List + +
+
Assigned Toassignedto menuKeywords + + +
Change Note + +
File
+   + + + + submit button + Make a copy +
+
+ + + + + + + + +
Note: highlighted fields are required.
+
+ +

+ Created on + by , + last changed + by . +

+ + + + + + + + + + + + + + + + +
Files
File nameUploadedTypeEditRemove
+ dld link + + creator's name, + creation date + + edit + +
+ + + +
+
+ + + + + + + + + + + + + + +
Messages
msg (view)Author: Date: +
+ + + +
+
+
content
+
+ + + +
+ + + +
+ diff --git a/html/issue.search.html b/html/issue.search.html new file mode 100644 index 0000000..ce3e08e --- /dev/null +++ b/html/issue.search.html @@ -0,0 +1,235 @@ + +Issue searching - <span + i18n:name="tracker" tal:replace="config/TRACKER_NAME" /> +Issue searching + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 Filter onDisplaySort onGroup on
All text*:   
Title: 
Keyword: + +
ID: 
Creation Date:
Creator: + +
Activity: 
Actor: + +  
Priority: + +
Status: + + + + +
Assigned to: + + + + +
No Sort or group:  
Pagesize:
Start With:
Sort Descending: +
Group Descending: +
Query name**: + + +
+   + +
  + + *: The "all text" field will look in message bodies and issue titles +
+ + **: If you supply a name, the query will be saved off and available as a + link in the sidebar + +
+ +
+ + +
+ diff --git a/html/keyword.item.html b/html/keyword.item.html new file mode 100644 index 0000000..7c599c2 --- /dev/null +++ b/html/keyword.item.html @@ -0,0 +1,56 @@ + + +Keyword editing - <span + i18n:name="tracker" tal:replace="config/TRACKER_NAME" /> +Keyword editing + + + + + + + + + + +
Existing Keywords
+ keyword here +
+ To edit an existing keyword (for spelling or typing errors), + click on its entry above. +
+ +

+ To create a new keyword, enter it below and click "Submit New Entry". +

+ +
+ + + + + + + + + + + +
Keywordname
+   + + + + submit button will go here +
+
+ + +
+ diff --git a/html/msg.index.html b/html/msg.index.html new file mode 100644 index 0000000..bdc7a47 --- /dev/null +++ b/html/msg.index.html @@ -0,0 +1,26 @@ + +List of messages - <span tal:replace="config/TRACKER_NAME" + i18n:name="tracker"/> +Message listing + + + + + + + + + + + + + + + +
Messages
authordate
content
+ + +
+ diff --git a/html/msg.item.html b/html/msg.item.html new file mode 100644 index 0000000..dbc7dcb --- /dev/null +++ b/html/msg.item.html @@ -0,0 +1,84 @@ + + + +<tal:block condition="context/id" i18n:translate="" + >Message <span tal:replace="context/id" i18n:name="id" + /> - <span tal:replace="config/TRACKER_NAME" i18n:name="tracker" +/></tal:block> +<tal:block condition="not:context/id" i18n:translate="" + >New Message - <span tal:replace="config/TRACKER_NAME" i18n:name="tracker" +/></tal:block> + + + New Message + New Message Editing + Message + Message Editing + + + +

+ You are not allowed to view this page.

+ +

+ Please login with your username and password.

+ +
+ + + + + + + + + + + + + + + + +
Author
Recipients
Date
+ + + + + + +
Content
+ + + + + + + + + + + +
Files
File nameUploaded
+ dld link + + creator's name, + creation date +
+ + + +
+ + +
+ diff --git a/html/page.html b/html/page.html new file mode 100644 index 0000000..3b3eeaf --- /dev/null +++ b/html/page.html @@ -0,0 +1,383 @@ + + + +title goes here + + + + + + + +
+ +
+ +
+
+ + + + + + + + + + + + + + + + + + + + +
+ new + unassigned + all + + search
+
+
+ + + + + +
+
+ +
+ + + Page content goes here +
+
+ +
+
+ + + + + + + +
+

+

+ + clear this message +

+
+ + +
+ + + + + + + + + + + + + + + + (cal) + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
  • + +
  • +
  • + + +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/html/query.edit.html b/html/query.edit.html new file mode 100644 index 0000000..e15a734 --- /dev/null +++ b/html/query.edit.html @@ -0,0 +1,112 @@ + + +"Your Queries" Editing - <span tal:replace="config/TRACKER_NAME" + i18n:name="tracker" /> +"Your Queries" Editing + + + +You are not allowed to edit queries. + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
QueryInclude in "Your Queries"EditPrivate to you? 
query + + + [query is retired]
query + + edit + + + +
query + + + edit + [not yours to edit]
+ + + +
+ +
+ +
+ diff --git a/html/query.item.html b/html/query.item.html new file mode 100644 index 0000000..490cd75 --- /dev/null +++ b/html/query.item.html @@ -0,0 +1,4 @@ + + + + diff --git a/html/user.forgotten.html b/html/user.forgotten.html new file mode 100644 index 0000000..27ca865 --- /dev/null +++ b/html/user.forgotten.html @@ -0,0 +1,44 @@ + + +Password reset request - <span + i18n:name="tracker" tal:replace="config/TRACKER_NAME" /> +Password reset request + + +

You have two options if you have forgotten your password. +If you know the email address you registered with, enter it below.

+ +
+ + + + + + + + + +
Email Address:
  + + + +
+ +

Or, if you know your username, then enter it below.

+ + + + +
Username:
+
+ +

A confirmation email will be sent to you - +please follow the instructions within it to complete the reset process.

+ + +
+ diff --git a/html/user.help-search.html b/html/user.help-search.html new file mode 100644 index 0000000..dc4a95f --- /dev/null +++ b/html/user.help-search.html @@ -0,0 +1,86 @@ + + + Search input for user helper + + + + + +
+    
+ + + + + + + + + + + + + + + + + + + + + + + + +
Name
Phone
role + +
  + + + + + + +
+ +
+
+
+  
+
+
diff --git a/html/user.help.html b/html/user.help.html
new file mode 100644
index 0000000..ba930a9
--- /dev/null
+++ b/html/user.help.html
@@ -0,0 +1,50 @@
+
+
+  
+      
+      
+      
+      <tal:x i18n:translate=""><tal:x i18n:name="property"
+       tal:content="property" i18n:translate="" /> help - <span i18n:name="tracker"
+	       tal:replace="config/TRACKER_NAME" /></tal:x>
+      
+      
+      
+  
+
+  
+  
+  
+  
+  
+
+
+  <body>
+<p i18n:translate="">
+Your browser is not capable of using frames; you should be redirected immediately,
+or visit <a href="#" tal:attributes="href string:?${qs}&template=help-noframes"
+i18n:name="link">this link</a>.
+</p>
+</body>
+
+
+
+
diff --git a/html/user.index.html b/html/user.index.html
new file mode 100644
index 0000000..42babc2
--- /dev/null
+++ b/html/user.index.html
@@ -0,0 +1,50 @@
+
+
+User listing - <span
+ i18n:name="tracker" tal:replace="config/TRACKER_NAME" />
+User listing
+
+
+You are not allowed to view this page.
+
+Please login with your username and password.
+
+
+
+ 
+ 
+ 
+ 
+ 
+ 
+
+
+
+ 
+ 
+ 
+ 
+ 
+ 
+
+
+
UsernameReal nameOrganisationEmail addressPhone numberRetire
+ username +      +
+ + + +
+
+ + +
+ diff --git a/html/user.item.html b/html/user.item.html new file mode 100644 index 0000000..5fe0e8a --- /dev/null +++ b/html/user.item.html @@ -0,0 +1,170 @@ + + + +<tal:if condition="context/id" i18n:translate="" + >User <tal:x content="context/id" i18n:name="id" + />: <tal:x content="context/username" i18n:name="title" + /> - <tal:x content="config/TRACKER_NAME" i18n:name="tracker" +/></tal:if> +<tal:if condition="not:context/id" i18n:translate="" + >New User - <span tal:replace="config/TRACKER_NAME" i18n:name="tracker" +/></tal:if> + + + + + + + New User + New User Editing + User + User Editing + + + + +

+ You are not allowed to view this page.

+ +

+ Please login with your username and password.

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Name
Login Name
Login Password
Confirm Password
+ + + + + + + (to give the user more than one role, + enter a comma,separated,list) +
Phone
Organisation
Timezone + (this is a numeric hour offset, the default is + ) +
E-mail address + calvin@the-z.org + + + +   +
+ +
+   + + + + +
+
+ + + + + + + + +
Note: highlighted fields are required.
+
+ + + +
+ + + +
+ diff --git a/html/user.register.html b/html/user.register.html new file mode 100644 index 0000000..64cb34c --- /dev/null +++ b/html/user.register.html @@ -0,0 +1,82 @@ + + +Registering with <span i18n:name="tracker" + tal:replace="db/config/TRACKER_NAME" /> +Registering with + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Namerealname
Login Nameusername
Login Passwordpassword
Confirm Passwordpassword
Rolesroles + +
Phonephone
Organisationorganisation
E-mail addressaddress
Alternate E-mail addresses
One address per line
alternate_addresses
  + + + + +
+
+ + + + + + + + +
Note: highlighted fields are required.
+
+ + + +
+ diff --git a/html/user.rego_progress.html b/html/user.rego_progress.html new file mode 100644 index 0000000..8ab618b --- /dev/null +++ b/html/user.rego_progress.html @@ -0,0 +1,17 @@ + + +Registration in progress - <span i18n:name="tracker" + tal:replace="config/TRACKER_NAME" /> +Registration in progress... + + +

You will shortly receive an email +to confirm your registration. To complete the registration process, +visit the link indicated in the email. +

+ + +
+ diff --git a/html/user_utils.js b/html/user_utils.js new file mode 100644 index 0000000..7b2946d --- /dev/null +++ b/html/user_utils.js @@ -0,0 +1,114 @@ +// User Editing Utilities + +/** + * for new users: + * Depending on the input field which calls it, takes the value + * and dispatches it to certain other input fields: + * + * address + * +-> username + * | `-> realname + * `-> organisation + */ +function split_name(that) { + var raw = that.value + var val = trim(raw) + if (val == '') { + return + } + var username='' + var realname='' + var address='' + switch (that.name) { + case 'address': + address=val + break + case 'username': + username=val + break + case 'realname': + realname=val + break + case 'firstname': + case 'lastname': + return + default: + alert('Ooops - unknown name field '+that.name+'!') + return + } + var the_form = that.form; + + function field_empty(name) { + return the_form[name].value == '' + } + + // no break statements - on purpose! + switch (that.name) { + case 'address': + var split1 = address.split('@') + if (field_empty('username')) { + username = split1[0] + the_form.username.value = username + } + if (field_empty('organisation')) { + the_form.organisation.value = default_organisation(split1[1]) + } + case 'username': + if (field_empty('realname')) { + realname = Cap(username.split('.').join(' ')) + the_form.realname.value = realname + } + case 'realname': + if (field_empty('username')) { + username = Cap(realname.replace(' ', '.')) + the_form.username.value = username + } + if (the_form.firstname && the_form.lastname) { + var split2 = realname.split(' ') + var firstname='', lastname='' + firstname = split2[0] + lastname = split2.slice(1).join(' ') + if (field_empty('firstname')) { + the_form.firstname.value = firstname + } + if (field_empty('lastname')) { + the_form.lastname.value = lastname + } + } + } +} + +function SubCap(str) { + switch (str) { + case 'de': case 'do': case 'da': + case 'du': case 'von': + return str; + } + if (str.toLowerCase().slice(0,2) == 'mc') { + return 'Mc'+str.slice(2,3).toUpperCase()+str.slice(3).toLowerCase() + } + return str.slice(0,1).toUpperCase()+str.slice(1).toLowerCase() +} + +function Cap(str) { + var liz = str.split(' ') + for (var i=0; i