]> git.decadent.org.uk Git - maypole.git/commitdiff
almost there. still missing ordering.
authorMarcus Ramberg <mramberg@cpan.org>
Fri, 17 Sep 2004 13:17:06 +0000 (13:17 +0000)
committerMarcus Ramberg <mramberg@cpan.org>
Fri, 17 Sep 2004 13:17:06 +0000 (13:17 +0000)
git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@193 48953598-375a-da11-a14b-00016c27c3ee

templates/beer/addnew
templates/factory/addnew
templates/factory/pager
templates/factory/search_form
templates/factory/view
templates/maypole.css

index 20ec419b575f54aea0c86a9cca22e207c60643ea..32b97db0e89b17da97fb13a43c7006ebb1cead71 100644 (file)
@@ -15,5 +15,5 @@
         [% END; %]
        
     <input type="submit" name="create" value="create"/>
-    </div>
+    </fieldset>
 </form>
index 950d89de23dcddf6773585ded94d935a71527e66..18d63d46b7e40886cf294b13a2cdd78204764873 100644 (file)
@@ -13,7 +13,6 @@ table.
 <form id="createform" method="post" action="[% base %]/[% classmetadata.table %]/do_edit/">
     <fieldset>
 <legend>Add a new [% classmetadata.moniker %]</legend>
-    <input type="hidden" name="action" value="create"/>
     [% FOR col = classmetadata.columns %]
         [% NEXT IF col == "id" %]
             <label><span class="field">[% classmetadata.colnames.$col %]</span>
index c10fdeed685a8f4025bc005dcb94b18e87a2e313..419d1019efdb7852027fe86b50d607a8b0e213d0 100644 (file)
@@ -10,7 +10,7 @@ to the L<Data::Page> interface.
 [%
 IF pager AND pager.first_page != pager.last_page;
 %]
-<p align=center>Pages: 
+<p class="pager">Pages: 
 [%
     SET begin_page = pager.current_page - 10;
     IF begin_page < 1;
index 065332acb3992330c7f50686680c1a9b882db19e..1e90dbf75b369ae9b1a8b9e423c16b8fa0df0fb0 100644 (file)
@@ -1,8 +1,6 @@
 <form method="get" action="[% base %]/[% classmetadata.moniker %]/search/">
 <fieldset class="search">
 <legend>Search</legend>
-    <input type="hidden" name="action" value="create"/>
-    <input type="hidden" name="class" value="[% classmetadata.name %]"/>
         [% FOR col = classmetadata.columns;
             NEXT IF col == "id";
          %]
index 75d003f18d74be367fbe750c7c0a0582a12fa7d4..cf7822e5498298cdb27516bb58b57218340331b7 100644 (file)
@@ -34,7 +34,7 @@ from the C<column_names> method:
             <tr>
                 <td class="field">[% classmetadata.colnames.$col; %]</td>
                 <td>
-                    [% IF col == "url";  # Possibly too much magic.
+                    [% IF col == "url" && item.url;  # Possibly too much magic.
                         '<a href="'; item.url; '"> '; item.url; '</a>';
                     ELSE;
                         maybe_link_view(item.$col); 
index cd4bc5ee2517c98a480db6add342f227d544a7b8..86fcbafe2d4ea2e9b132bc58a295994caad7067f 100644 (file)
@@ -161,4 +161,7 @@ label .field {
 .error { color: #d00; }
 
 .list { width: 70%; }
-.action { style:block;
+.action { 
+    style:block;
+}
+.pager { text-align:center;}