[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[3635] trunk/UI/setup



Revision: 3635
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=3635&view=rev
Author:   einhverfr
Date:     2011-08-04 23:03:26 +0000 (Thu, 04 Aug 2011)

Log Message:
-----------
UI templates for database setup wizard

Added Paths:
-----------
    trunk/UI/setup/confirm_operation.html
    trunk/UI/setup/credentials.html
    trunk/UI/setup/new_user.html
    trunk/UI/setup/select_coa.html

Added: trunk/UI/setup/confirm_operation.html
===================================================================
--- trunk/UI/setup/confirm_operation.html	                        (rev 0)
+++ trunk/UI/setup/confirm_operation.html	2011-08-04 23:03:26 UTC (rev 3635)
@@ -0,0 +1,41 @@
+<?lsmb INCLUDE "ui-header.html" stylesheet="UI/setup/stylesheet.css" ?>
+<?lsmb PROCESS elements.html ?>
+<body>
+<div class="listtop"><?lsmb text('Confirm Operation') ?></div>
+<div id="notice"><?lsmb notice ?></div>
+<div id="operation"><?lsmb operation ?></div>
+<form action="setup.pl" method="POST" name="confirm_operation">
+<?lsmb INCLUDE input element_data = {
+    name = 'database'
+    type = 'hidden'
+   value = database
+} ?>
+<div class="inputrow">
+<?lsmb 
+INCLUDE input element_data = {
+    name = 'confirm'
+   value = '1'
+    type = 'radio'
+   class = 'confirm'
+   label = text('Yes')
+} ;
+INCLUDE input element_data = {
+    name = 'confirm'
+   value = '0'
+    type = 'radio'
+   class = 'confirm'
+   label = text('No')
+} ?>
+</div>
+<div class="inputrow">
+<?lsmb INCLUDE button element_data = {
+    name = 'action'
+   value = next_action
+    type = 'submit'
+   class = 'next'
+    text = text('Next') 
+} ?>
+</div>
+</form>
+</body>
+</html>

Added: trunk/UI/setup/credentials.html
===================================================================
--- trunk/UI/setup/credentials.html	                        (rev 0)
+++ trunk/UI/setup/credentials.html	2011-08-04 23:03:26 UTC (rev 3635)
@@ -0,0 +1,52 @@
+<?lsmb INCLUDE "ui-header.html" stylesheet="UI/setup/stylesheet.css" ?>
+<?lsmb PROCESS elements.html ?>
+<body>
+<div class="listtop"><?lsmb text('Superuser Credentials') ?></div>
+<form action="setup.pl" method="POST" name="credentials">
+<div class="login_form">
+<div class="userpass">
+<div class="inputrow">
+<?lsmb IF !s_user; s_user = 'postgres'; END;
+INCLUDE input element_data = {
+    name = 's_user'
+   value = s_user
+    type = 'text'
+    size = '15'
+   class = 'username'
+   label = text('Super-user login') #'
+} ?>
+</div>
+<div class="inputrow">
+<?lsmb INCLUDE input element_data = {
+    name = 's_password'
+   value = s_password
+    type = 'password'
+    size = '15'
+   class = 'password'
+   label = text('Password') 
+} ?>
+</div>
+</div>
+<div class="inputrow">
+<?lsmb INCLUDE input element_data = {
+    name = 'database'
+   value = database
+    type = 'text'
+    size = '15'
+   class = 'database'
+   label = text('Database') 
+} ?>
+</div>
+<div class="inputrow">
+<?lsmb INCLUDE button element_data = {
+    name = 'action'
+   value = 'login'
+    type = 'submit'
+   class = 'submit'
+    text = text('Login') 
+} ?>
+</div>
+</div>
+</form>
+</body>
+</html>

Added: trunk/UI/setup/new_user.html
===================================================================
--- trunk/UI/setup/new_user.html	                        (rev 0)
+++ trunk/UI/setup/new_user.html	2011-08-04 23:03:26 UTC (rev 3635)
@@ -0,0 +1,105 @@
+<?lsmb INCLUDE "ui-header.html" stylesheet="UI/setup/stylesheet.css" ?>
+<?lsmb PROCESS elements.html ?>
+<body>
+<div class="listtop"><?lsmb text('Enter User') ?>
+<form action="setup.pl" method="POST" name="new_user">
+<?lsmb INCLUDE input element_data = {
+    name = 'database'
+    type = 'hidden'
+   value = database
+} ?>
+<div class="form">
+<div class="input_row">
+<?lsmb INCLUDE input element_data = {
+                            name  = 'username'
+                            type  = 'text'
+                           label  = text('Username')
+                            class = 'username'
+} ?>
+</div>
+<div class="input_row">
+<?lsmb INCLUDE input element_data = {
+                            name  = 'password'
+                            type  = 'password'
+                           label  = text('Password')
+                            class = 'password'
+} ?>
+</div>
+<div class="input_row">
+<label><?lsmb text('Import') ?></label>
+                <?lsmb INCLUDE input element_data = {
+                           label   = 'Yes'
+                           value   = '1'
+                           checked = ''
+                           name    = 'import'
+                           type    = 'radio'
+                   };
+                   INCLUDE input element_data = {
+                           label   = 'No'
+                           value   = '0'
+                           checked = 'CHECKED'
+                           name    = 'import'
+                           type    = 'radio'
+                   } ?>
+</div>
+<div class="input_row">
+<?lsmb INCLUDE select element_data = {
+          options = salutations
+        text_attr = 'salutation'
+       value_attr = 'id'
+            label = 'Salutation'
+} ?>
+</div>
+<div class="input_row">
+<?lsmb INCLUDE input element_data = {
+    name = 'first_name'
+   class = 'name'
+    type = 'text'
+    size = '15'
+} ?>
+</div>
+<div class="input_row">
+<?lsmb INCLUDE input element_data = {
+    name = 'last_name'
+   class = 'name'
+    type = 'text'
+    size = '15'
+} ?>
+</div>
+<div class="input_row">
+<?lsmb INCLUDE input element_data = {
+    name = 'employeenumber'
+   class = 'control_code'
+    type = 'text'
+    size = '15'
+} ?>
+</div>
+<div class="input_row">
+<?lsmb  countries.shift({});
+INCLUDE select element_data = {
+          options = countries
+        text_attr = 'name'
+       value_attr = 'id'
+            label = 'Country'
+} ?>
+</div>
+<div class="input_row">
+<?lsmb INCLUDE select element_data = {
+          options = perm_sets
+        text_attr = 'label'
+       value_attr = 'id'
+            label = 'Assign Permissions'
+} ?>
+</div>
+<div class="input_row">
+<?lsmb INCLUDE button element_data = {
+    text = text('Create User') #';
+    name = 'action'
+   value = 'save_user'
+    type = 'submit'
+   class = 'submit'
+} ?>
+</div>
+</form>
+</body>
+</html>

Added: trunk/UI/setup/select_coa.html
===================================================================
--- trunk/UI/setup/select_coa.html	                        (rev 0)
+++ trunk/UI/setup/select_coa.html	2011-08-04 23:03:26 UTC (rev 3635)
@@ -0,0 +1,68 @@
+<?lsmb INCLUDE "ui-header.html" stylesheet="UI/setup/stylesheet.css" ?>
+<?lsmb PROCESS elements.html ?>
+<body>
+<div class="listtop"><?lsmb title ?></div>
+<div 
+<form action="setup.pl" method="POST" name="credentials">
+<?lsmb INCLUDE input element_data = {
+    name = 'database'
+    type = 'hidden'
+   value = database
+} ?>
+<?lsmb IF coa_lc;
+   INCLUDE input element_data = {
+        name = 'coa_lc'
+        type = 'hidden'
+       value = coa_lc
+   } ;
+END ?>
+<div class="inputrow">
+<?lsmb IF coa_lc; 
+    INCLUDE select element_data = {
+         options = charts
+            name = 'coa'
+       text_attr = 'name'
+      value_attr = 'name'
+    }; 
+ELSE;
+    INCLUDE select element_data = {
+         options = coa_lcs
+            name = 'coa_lc'
+       text_attr = 'country'
+      value_attr = 'name'
+    };
+END ?>
+</div>
+<div class="inputrow">
+<?lsmb INCLUDE input element_data = {
+    name = 's_password'
+   value = s_password
+    type = 'password'
+    size = '15'
+   class = 'password'
+   label = text('Password') 
+} ?>
+</div>
+<div class="inputrow">
+<?lsmb INCLUDE input element_data = {
+    name = 'database'
+   value = database
+    type = 'text'
+    size = '15'
+   class = 'database'
+   label = text('Database') 
+} ?>
+</div>
+<div class="inputrow">
+<?lsmb INCLUDE button element_data = {
+    name = 'action'
+   value = 'select_coa'
+    type = 'submit'
+   class = 'database'
+    text = text('Next') 
+} ?>
+</div>
+</div>
+</form>
+</body>
+</html>


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.