Ernesto Menéndez avatar Ernesto Menéndez committed ab9c4d4

apps.admin: estilo de formularios

Comments (0)

Files changed (6)

nxweb/apps/admin/html/partials/attribute.html

+<div class="k-content">
+    <form name="form" class="forms" novalidate>
 
-<form name="form" class="css-form" novalidate>
+    <table>
 
-<table>
+    <tr>
+      <td>Name:</td>
+      <td><input type="text" ng-model="name" class="k-textbox" required /></td>
+      <td><p ng-hide="name">Required</p></td>
+    </tr>
 
-<tr>
-  <td>Name:</td>
-  <td><input type="text" ng-model="name" required/></td>
-  <td><p ng-hide="name">Required</p></td>
-</tr>
+    <tr>
+      <td>Value:</td>
+      <td><input name="values" ng-model="values" ng-list class="k-textbox"></td>
+      <td></td>
+    </tr>
 
-<tr>
-  <td>Value:</td>
-  <td><input name="values" ng-model="values" ng-list></td>
-  <td></td>
-</tr>
 
 
+    </table>
+    <button ng-click="update(name,values)" ng-disabled="form.$invalid" class="k-button">Save</button>
 
-</table>
-<button ng-click="update(name,values)"  ng-disabled="form.$invalid">Save</button>
-
-</form>
-<!-- <a href="#/attributes">Back</a> -->
-<p ng-show=message> {{message}} </p>
+    </form>
+    <!-- <a href="#/attributes">Back</a> -->
+    <p ng-show=message> {{message}} </p>
+</div>

nxweb/apps/admin/html/partials/login.html

-<div ng-show="logged==false">
+<div class="k-block" style="width: 400px; height: 200px;">
+    <div class="k-header">Login</div>
 
-<form name="form" novalidate>
-  Username:
-  <input type="text" ng-model="uid" required/><br />
-  Password:
-  <input type="password" ng-model="pwd" required/><br />
+    <div ng-show="logged==false" style="padding-top: 25px">
+        <form name="form" novalidate class="forms">
+            <table>
+                <tr>
+                    <td>Username:</td>
+                    <td><input type="text" ng-model="uid" required class="k-textbox" /></td>
+                </tr>
+                <tr>
+                    <td>Password:</td>
+                    <td><input type="password" ng-model="pwd" required class="k-textbox" /></td>
+                </tr>
+            </table>
 
-  <button ng-click="login(uid, pwd)"  ng-disabled="form.$invalid">Login</button>
+          <p style="text-align: center">
+            <button ng-click="login(uid, pwd)"  ng-disabled="form.$invalid" class="k-button">Login</button>
+        </p>
 
-  {{response}}
-</form>
+          {{response}}
+        </form>
+    </div>
+
+    <div ng-show="logged!=false">
+    User already Logged In
+    </div>
 </div>
-
-<div ng-show="logged!=false">
-User already Logged In
-</div>

nxweb/apps/admin/html/partials/pkey.html

-<form name="form" class="css-form" novalidate>
+<div class="k-content">
+    <form name="form" class="css-form" novalidate>
 
-<table>
+    <table>
 
-<tr>
-  <td>Name:</td>
-  <td><input type="text" ng-model="name" required/></td>
-  <td><p ng-hide="name">Required</p></td>
-</tr>
+    <tr>
+      <td>Name:</td>
+      <td><input type="text" ng-model="name" required class="k-textbox" /></td>
+      <td><p ng-hide="name">Required</p></td>
+    </tr>
 
-<tr>
-  <td>Value:</td>
-  <td><textarea ng-model="pkey" required></textarea></td>
-  <td></td>
-</tr>
+    <tr>
+      <td>Value:</td>
+      <td><textarea ng-model="pkey" required class="k-textbox"></textarea></td>
+      <td></td>
+    </tr>
 
+    </table>
+    <button ng-click="update(name,pkey)"  ng-disabled="form.$invalid" class="k-button">Save</button>
 
-
-</table>
-<button ng-click="update(name,pkey)"  ng-disabled="form.$invalid">Save</button>
-
-</form>
-<!-- <a href="#/pkeys">Back</a> -->
-<p ng-show=message> {{message}} </p>
+    </form>
+    <!-- <a href="#/pkeys">Back</a> -->
+    <p ng-show=message> {{message}} </p>
+</div>

nxweb/apps/admin/html/partials/program.html

 </form>-->
 
 
-<!-- <form name="form"  action="/program" method="POST" enctype="multipart/form-data" novalidate> -->
-<form>
+<div class="k-content">
+  <!-- <form name="form"  action="/program" method="POST" enctype="multipart/form-data" novalidate> -->
+  <form>
 
-<table>
+  <table>
 
-<tr>
-  <td>Name:</td>
-  <td><input type="text" name="program_name" ng-model="program_name" required/></td>
-</tr>
+  <tr>
+    <td>Name:</td>
+    <td><input type="text" name="program_name" ng-model="program_name" required class="k-textbox" /></td>
+  </tr>
 
-<tr>
-  <td>Version:</td>
-  <td><input name="program_version" ng-model="program_version" required></td>
-  <td></td>
-</tr>
+  <tr>
+    <td>Version:</td>
+    <td><input name="program_version" ng-model="program_version" required class="k-textbox" /></td>
+    <td></td>
+  </tr>
 
-<tr>
-  <td>Runner:</td>
-  <td>
-        <select ng-model="runner_name" required>
-            <option ng-repeat="name in runner_options">{{name}}</option>
-        </select>
-  </td>
-  <td></td>
-</tr>
+  <tr>
+    <td>Runner:</td>
+    <td>
+          <select ng-model="runner_name" required class="k-select">
+              <option ng-repeat="name in runner_options">{{name}}</option>
+          </select>
+    </td>
+    <td></td>
+  </tr>
 
-<tr>
-  <td>Runner Arguments:</td>
-  <td>
-  <table>
-    <tr ng-repeat="(k, v) in runner_args_clone">
-        <td>{{k}}</td>
-        <td><input type="text" ng-model="runner_args[k]"/></td>
-        <td><a ng-click="delete(k);">X</a></td>
-    </tr>
+  <tr>
+    <td>Runner Arguments:</td>
+    <td>
+    <table>
+      <tr ng-repeat="(k, v) in runner_args_clone">
+          <td>{{k}}</td>
+          <td>
+            <span class="k-textbox k-space-right">
+              <input type="text" ng-model="runner_args[k]" />
+              <a ng-click="delete(k)" class="k-icon k-si-minus">&nbsp;</a>
+            </span>
+          </td>
+      </tr>
 
-    <tr>
-        <td>New</td><td><input type="text" ng-model="new"/></td>
-        <td><a ng-click="new_argument(new);" ng-show="new.length>=1">Create </a></td>
-    </tr>
-    </table>
-  </td>
-  <td></td>
-</tr>
-<tr>
-<td>Zip File </td><td><input type="file" id="program" name="program"></input></td>
-</tr>
-</table>
-<button ng-click="update()">Upload</button>
+      <tr>
+          <td>New</td>
+          <td>
+            <span class="k-textbox k-space-right">
+              <input type="text" ng-model="new" />
+              <a ng-click="new_argument(new)" ng-show="new.length>=1" class="k-icon k-si-plus">&nbsp;</a>
+            </span>
+          </td>
+      </tr>
+      </table>
+    </td>
+    <td></td>
+  </tr>
 
-</form>
-<!-- <a href="#/programs">Back</a> -->
-<p ng-show=message> {{message}} </p>
+  <tr>
+  <td>Zip File </td><td><input type="file" id="program" name="program" class="k-upload-files" /></td>
+  </tr>
+  </table>
+  <button ng-click="update()" class="k-button">Upload</button>
+
+  </form>
+  <!-- <a href="#/programs">Back</a> -->
+  <p ng-show=message> {{message}} </p>
+</div>

nxweb/apps/admin/html/partials/user.html

-<form name="form" novalidate>
+<div class="k-content">
+  <form name="form" novalidate>
 
-<table>
+  <table>
 
-<tr>
-  <td>User Id:</td>
-  <td><input type="text" ng-model="fuser.uid" required/></td>
-  <td><p ng-hide="fuser.uid">Required</p></td>
-</tr>
+  <tr>
+    <td>User Id:</td>
+    <td><input type="text" ng-model="fuser.uid" required class="k-textbox" /></td>
+    <td><p ng-hide="fuser.uid">Required</p></td>
+  </tr>
 
-<tr>
-  <td>Password:</td>
-  <td><input type="password" ng-model="fuser.pwd" required /></td>
-  <td><p ng-hide="fuser.pwd">Required</p></td>
-</tr>
+  <tr>
+    <td>Password:</td>
+    <td><input type="password" ng-model="fuser.pwd" required class="k-textbox" /></td>
+    <td><p ng-hide="fuser.pwd">Required</p></td>
+  </tr>
 
-<tr>
-  <td>Confirm Password:</td>
-  <td><input type="password" ng-model="fuser.pwdcheck" required /></td>
-  <td><p ng-show="fuser.pwd!=fuser.pwdcheck">Password doesn't match</p></td>
-</tr>
+  <tr>
+    <td>Confirm Password:</td>
+    <td><input type="password" ng-model="fuser.pwdcheck" required class="k-textbox" /></td>
+    <td><p ng-show="fuser.pwd!=fuser.pwdcheck">Password doesn't match</p></td>
+  </tr>
 
-<tr>
-  <td>Groups:</td><td>
-    <select multiple ng-model="fuser.groups" required>
-      <option ng-repeat="group in groups">{{group}}</option>
-    </select>
-  </td>
-  <td><p ng-hide="fuser.groups">Required</p></td>
-</tr>
+  <tr>
+    <td>Groups:</td><td>
+      <select multiple ng-model="fuser.groups" required class="k-select">
+        <option ng-repeat="group in groups">{{group}}</option>
+      </select>
+    </td>
+    <td><p ng-hide="fuser.groups">Required</p></td>
+  </tr>
 
 
-</table>
-<button ng-click="update(fuser)"  ng-disabled="form.$invalid || fuser.pwd!=fuser.pwdcheck || !fuser.groups  ">Save</button>
+  </table>
+  <button ng-click="update(fuser)"  ng-disabled="form.$invalid || fuser.pwd!=fuser.pwdcheck || !fuser.groups  " class="k-button">Save</button>
 
-</form>
-<!-- <a href="#/users">Back</a> -->
-<p ng-show=message> {{message}} </p>
+  </form>
+  <!-- <a href="#/users">Back</a> -->
+  <p ng-show=message> {{message}} </p>
+</div>

nxweb/apps/admin/views/programs.py

 
     binary = req.params.get("program")
     if not hasattr(binary,"file"):
-        return ok(req)
+        return ok(req, info="file not updated")
     binary = binary.file.read()
 
     program_dkvs.create_binary(user_key,
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.