};
this.clear = function() {
+ self.url = null;
self.code = null;
self.response = null;
};
PingCntl.$inject = ['$xhr'];
</script>
<div ng:controller="PingCntl">
- <input type="text" name="function" value="CRM_username" size="20"/>
+ <input type="text" name="function" value="CRM_search" size="20"/>
<input type="text" name="args" value="test" size="10"/>
<button ng:click="fetch()">fetch</button>
<button ng:click="clear()">clear</button>
<b ng:show="url && ! code">loading {{url}}</b>
+ <b ng:show="response">{{response.length}} results</b>
<table ng:show="response">
<tr>
<th>USERNAME</th>
<td>{{u.OPT82}}</td>
</tr>
</table>
- <pre>
+ <input type=checkbox name=debug value=1>
+ <pre ng:show=debug>
url={{url}}
code={{code}}
response={{response}}
@@ index.html.ep
% layout 'default';
% title 'Gearman demo';
-Welcome to Mojolicious Gearman integration demo!
-<p>
-
-<%= link_to 'Gearman web interface' => 'gearman.html' %>
-
-<p>
+<ul>
+<li><%= link_to 'Gearman' => 'gearman.html' %> web interface
+<li><%= link_to 'CRM' => 'CRM.html' %> search with tabular output
+</ul>
Low-level API tests: