[Mpuls-commits] r6050 - base/trunk/mpulsweb/templates/meta

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Fri Aug 24 14:24:13 CEST 2012


Author: torsten
Date: 2012-08-24 14:24:13 +0200 (Fri, 24 Aug 2012)
New Revision: 6050

Modified:
   base/trunk/mpulsweb/templates/meta/search.mako
Log:
Changed layout a littlebit and make the search result more noticable to the
user.


Modified: base/trunk/mpulsweb/templates/meta/search.mako
===================================================================
--- base/trunk/mpulsweb/templates/meta/search.mako	2012-08-24 12:23:27 UTC (rev 6049)
+++ base/trunk/mpulsweb/templates/meta/search.mako	2012-08-24 12:24:13 UTC (rev 6050)
@@ -75,44 +75,55 @@
     </table>
   </div>
 </form>
-<table id="table_caseoverview" class="hovertable">
-  <tr>
-    <th width="">${_('UUID')}</th>
-    <th class="actions">${_('Actions')}</th>
-  </tr>
-  % for num, m in enumerate(c.result):
-      <tr class="${num % 2 and 'table_row_h' or ''}">
-        <td>${m["uuid"]}</td>
-        <td class="actions">
-          <a href="${h.url(controller='meta', action='link', id=m['uuid'], confirmed=0)}">
-            <img src    = "${h.url('/images/icons/link_active_22.png')}"
-              border = "0"
-              alt    = "${_('Link')}"
-              title  = "${_('Link')}"
-              width  = "22"
-              height = "22">
-          </a>
-        </td>
-      </tr>
-  % endfor
+
+% if c.show_create:
+  <br>
+  <div class="widget container">
   % if len(c.result) <= 0:
-  <tr>
-    <td colspan="2">
-      ${_('No data found.')}
-    </td>
-  </tr>
+  <h2>${_('No Meta-Cases found!')}</h2>
+  <p>${_('Please make sure that you tried different spellings of the name of client to maximize the chance of finding a meta case. ')}</p>
+  % else:
+  <h2>${_('Meta-Cases found')}</h2>
+  <p>${_('Please select one of the Meta-Cases below to link the local case with the Meta-Case.')}</p>
   % endif
-</table>
-<br>
-% if c.show_create:
-<div class="widget container">
-<h2>${_('Create new meta case')}</h2>
-<p>${_('If you can find not find a counterpart for this case on the metas erver you can create a new one on the meta server. Please make sure that you tried different spellings of the name of client to maximize the chance of finding a meta case.')}</p>
-% if not c.case.is_hashable():
-  <p><strong>${_('State')}:</strong>${_('Required fields to create a new meta case are not filled out')}</p>
-%else:
+  <table class="hovertable">
+    <tr>
+      <th width="">${_('UUID')}</th>
+      <th class="actions">${_('Actions')}</th>
+    </tr>
+    % for num, m in enumerate(c.result):
+        <tr class="${num % 2 and 'table_row_h' or ''}">
+          <td>${m["uuid"]}</td>
+          <td class="actions">
+            <a href="${h.url(controller='meta', action='link', id=m['uuid'], confirmed=0)}">
+              <img src    = "${h.url('/images/icons/link_active_22.png')}"
+                border = "0"
+                alt    = "${_('Link')}"
+                title  = "${_('Link')}"
+                width  = "22"
+                height = "22">
+            </a>
+          </td>
+        </tr>
+    % endfor
+    % if len(c.result) <= 0:
+    <tr>
+      <td colspan="2">
+        ${_('No data found.')}
+      </td>
+    </tr>
+    % endif
+  </table>
+  </div>
   <br>
-  <p><a href="${h.url(controller='meta', action='create', id=c.case.id, confirmed=0)}" class="button">${_('Create meta case')}</a></p>
-%endif
-</div>
+  <div class="widget container">
+  <h2>${_('Create new meta case')}</h2>
+  <p>${_('If you can find not find a counterpart for this case on the metas erver you can create a new one on the meta server.')}</p>
+  % if not c.case.is_hashable():
+    <p><strong>${_('State')}:</strong>${_('Required fields to create a new meta case are not filled out')}</p>
+  %else:
+    <br>
+    <p><a href="${h.url(controller='meta', action='create', id=c.case.id, confirmed=0)}" class="button">${_('Create meta case')}</a></p>
+  %endif
+  </div>
 % endif



More information about the Mpuls-commits mailing list