]> source.dussan.org Git - archiva.git/commitdiff
added a couple of sample pages for role assignment and login
authorJesse McConnell <jmcconnell@apache.org>
Wed, 6 Sep 2006 21:44:35 +0000 (21:44 +0000)
committerJesse McConnell <jmcconnell@apache.org>
Wed, 6 Sep 2006 21:44:35 +0000 (21:44 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@440884 13f79535-47bb-0310-9956-ffa450edef68

design/white-site/src/site/site.xml
design/white-site/src/site/xdoc/admin/login.xml [new file with mode: 0644]
design/white-site/src/site/xdoc/admin/user.xml [new file with mode: 0644]
design/white-site/src/site/xdoc/admin/users.xml [new file with mode: 0644]

index ced9604590294a12d735112af42040adcec6eea8..5b10e27e4bd06340f84113bfb72859d2a00bf50f 100644 (file)
@@ -10,6 +10,7 @@
   <publishDate position="none"/>
   <body>
     <links>
+      <item name="Login" href="/admin/login.html"/>
       <item name="Archiva" href="http://maven.apache.org/archiva/"/>
       <item name="Maven" href="http://maven.apache.org/"/>
       <item name="Apache" href="http://www.apache.org/"/>
@@ -23,6 +24,7 @@
       <item name="Reports" href="/reports.html"/>
       <item name="Synchronisation" href="/sync.html"/>
       <item name="Administration" href="/admin/index.html">
+      <item name="User Management" href="/admin/users.html"/>
         <item name="Proxied Repositories" href="/admin/proxies.html"/>
         <item name="Synced Repositories" href="/admin/sync.html"/>
       </item>
diff --git a/design/white-site/src/site/xdoc/admin/login.xml b/design/white-site/src/site/xdoc/admin/login.xml
new file mode 100644 (file)
index 0000000..432f866
--- /dev/null
@@ -0,0 +1,44 @@
+<document>
+  <properties>
+    <title>Archiva</title>
+  </properties>
+  <body>
+    <h1>login</h1>
+
+    <div id="sidebar">
+      <p>reserved sidebar</p>
+    </div>
+
+    <div id="contentArea">
+      <div id="searchBox">
+        <form action="../results.html">
+          <p>
+            <table>
+                <tr>
+                    <td>
+                        Username:
+                    </td>
+                    <td>
+                        <input type="text" size="50"/>
+                    </td>
+                </tr>
+                <tr>
+                    <td>
+                        Password:
+                    </td>
+                    <td>
+                        <input type="password" size="50"/>
+                    </td>
+                </tr>
+              </table>
+          </p>
+          <p>
+            <input type="submit" name="Go!"/>
+          </p>
+        
+        </form>
+      </div>
+    </div>
+  </body>
+</document>
+
diff --git a/design/white-site/src/site/xdoc/admin/user.xml b/design/white-site/src/site/xdoc/admin/user.xml
new file mode 100644 (file)
index 0000000..0ead320
--- /dev/null
@@ -0,0 +1,96 @@
+<document>
+  <properties>
+    <title>Archiva</title>
+  </properties>
+  <body>
+    <h1>User Management</h1>
+
+    <div id="sidebar">
+      <p>reserved sidebar</p>
+    </div>
+
+    <div id="contentArea">
+      <div id="searchBox">
+        <p>
+           Currently Assigned Roles
+        </p>
+        <ul>
+          <li>Manager of central</li>
+          <li>Observer of central-plugins</li>
+          <li>Project Manager of org.apache.maven.*</li>
+        </ul>
+        <hr/>
+        <form action="user.html">
+          <p>
+             Grant Adminstrative Role
+          </p>
+          <p>
+            <select>
+              <option>admin1</option>
+              <option>admin2</option>
+            </select>
+          </p> 
+          <p>
+            <input type="submit" name="Add Role"/>
+          </p>
+        </form>
+        <hr/>
+        <form action="user.html">
+          <p>
+             Grant Repository Role
+          </p>
+          <p>
+            <select>
+              <option>manager of X</option>
+              <option>obverser of X</option>
+              <option>manager of Y</option>
+            </select>
+          </p> 
+          <p>
+            <input type="submit" name="Add Role"/>
+          </p>
+        </form>
+        <hr/>
+        <form action="confirm-roles.html">
+          <p>
+             Grant Project Role
+          </p>
+          <p>
+            <select>
+              <option>manager</option>
+              <option>obverser</option>
+            </select>
+          </p>
+          <p>
+            Project:
+            <table>
+              <tr>
+                <td>
+            <select>
+              <option>p1</option>
+              <option>p2</option>
+              <option>p3</option>
+              <option>p4</option>
+              <option>p5</option>
+              <option>p6</option>
+            </select>
+            </td>
+            <td>
+              or
+            </td>
+            <td>
+              Expression (ex: org.apache.maven.*):
+              <input type="text" name="projectExpression"/>
+            </td>
+            </tr>
+            </table>
+          </p>
+          <p>
+            <input type="submit" name="Add Role"/>
+          </p>
+        </form>
+      </div>
+    </div>
+  </body>
+</document>
+
diff --git a/design/white-site/src/site/xdoc/admin/users.xml b/design/white-site/src/site/xdoc/admin/users.xml
new file mode 100644 (file)
index 0000000..468ab4d
--- /dev/null
@@ -0,0 +1,33 @@
+<document>
+  <properties>
+    <title>Archiva</title>
+  </properties>
+  <body>
+    <h1>Users Management</h1>
+
+    <div id="sidebar">
+      <p>reserved sidebar</p>
+    </div>
+
+    <div id="contentArea">
+      <div id="searchBox">
+        <p>
+            Select a user to administer:
+        </p>
+        <form action="user.html">
+          <p>
+            <select name="user">
+              <option>user1</option>
+              <option>user2</option>
+            </select>
+          </p>
+          <p>
+            <input type="submit" name="Manage"/>
+          </p>
+        
+        </form>
+      </div>
+    </div>
+  </body>
+</document>
+