continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r170427 - in /maven/continuum/trunk/continuum-web/src/main/resources/templates/screens: Add.vm Delete.vm Edit.vm Summary.vm View.vm
Date Mon, 16 May 2005 18:49:07 GMT
Author: jvanzyl
Date: Mon May 16 11:49:04 2005
New Revision: 170427

URL: http://svn.apache.org/viewcvs?rev=170427&view=rev
Log:
o adding velocity templates to replace the custom form renderers

Added:
    maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/Add.vm
    maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/Delete.vm
    maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/Edit.vm
    maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/Summary.vm
    maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/View.vm

Added: maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/Add.vm
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/Add.vm?rev=170427&view=auto
==============================================================================
--- maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/Add.vm (added)
+++ maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/Add.vm Mon May
16 11:49:04 2005
@@ -0,0 +1,27 @@
+#if ( !$fid )
+  #set ( $fid = $data.getParameters().getString( "fid" ) )
+#end
+#set ( $form = $formtool.getForm( $fid ) )
+<div class="app">
+  <div id="axial" class="h3">
+    <h3>$i18n.getString( $form.add.titleKey )</h3>
+    <form method="post" action="$link">
+      #hidden ( "formId" $form.id )
+      #hidden ( "action" $form.add.action )
+      #hidden ( "view" $form.add.view )
+      <div class="axial">
+        <table border="1" cellspacing="2" cellpadding="3" width="100%">
+          #foreach ( $element in $form.elements )
+          #if ( !$element.immutable )
+          <tr>
+            #addField( $i18n $data $element )
+            #validateField( $fvr $element )
+          </tr>
+          #end
+          #end
+        </table>
+        #submitBar( "Submit" )
+      </div>
+    </form>
+  </div>
+</div>

Added: maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/Delete.vm
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/Delete.vm?rev=170427&view=auto
==============================================================================
--- maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/Delete.vm (added)
+++ maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/Delete.vm Mon
May 16 11:49:04 2005
@@ -0,0 +1,30 @@
+#if ( !$fid )
+  #set ( $fid = $data.getParameters().getString( "fid" ) )
+#end
+#set ( $form = $formtool.getForm( $fid ) )
+#if ( !$id )
+  #set ( $id = $data.getParameters().getString( "id" ) )
+#end
+#if ( $id )
+  #set( $item = $formtool.getItem( $form, $id ) )
+#end
+<div class="app">
+  <div id="axial" class="h3">
+    <h3>$i18n.getString( $form.delete.titleKey )</h3>
+    <div class="warningmessage">
+      <p>
+        <strong>$i18n.getString( "delete.confirmation.message" )</strong>
+      </p>
+    </div>
+    <form method="post" action="$link">
+      #hidden ( "formId" $form.id )
+      #hidden ( "action" $form.delete.action )
+      #hidden ( "view" $form.delete.view )
+      #hidden ( "id" $id )
+      <div class="functnbar3">
+        <input type="submit" name="deleteEntry" value="Delete"/>
+        <input type="submit" name="cancel" value="Cancel"/>
+      </div>
+  </form>
+  </div>
+</div>

Added: maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/Edit.vm
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/Edit.vm?rev=170427&view=auto
==============================================================================
--- maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/Edit.vm (added)
+++ maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/Edit.vm Mon May
16 11:49:04 2005
@@ -0,0 +1,34 @@
+#if ( !$fid )
+  #set ( $fid = $data.getParameters().getString( "fid" ) )
+#end
+#set ( $form = $formtool.getForm( $fid ) )
+#if ( !$id )
+  #set ( $id = $data.getParameters().getString( "id" ) )
+#end
+#if ( $id )
+  #set( $item = $formtool.getItem( $form, $id ) )
+#end
+<div class="app">
+  <div id="axial" class="h3">
+    <h3>$i18n.getString( $form.update.titleKey )</h3>
+    <form method="post" action="$link">
+      #hidden ( "formId" $form.id )
+      #hidden ( "action" $form.update.action )
+      #hidden ( "view" $form.update.view )
+      #hidden ( "id" $id )
+      <div class="axial">
+        <table border="1" cellspacing="2" cellpadding="3" width="100%">
+          #foreach ( $element in $form.elements )
+          #if ( !$element.immutable )
+          <tr>
+            #editField( $i18n $data $element $formtool )
+            #validateField( $fvr $element )
+          </tr>
+          #end
+          #end
+        </table>
+        #submitBar( "Submit" )
+      </div>
+    </form>
+  </div>
+</div>

Added: maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/Summary.vm
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/Summary.vm?rev=170427&view=auto
==============================================================================
--- maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/Summary.vm (added)
+++ maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/Summary.vm Mon
May 16 11:49:04 2005
@@ -0,0 +1,29 @@
+#set ( $fid = $data.getParameters().getString( "fid" ) )
+#if ( !$fid )
+  #set ( $fid = "continuumProject" )
+#end
+#set ( $form = $formtool.getForm( $fid ) )
+<div class="app">
+  <div id="h3">
+    <h3>$i18n.getString( $form.summary.titleKey )</h3>
+    <table border="1" cellspacing="2" cellpadding="3" width="100%">
+      <tr>
+        #foreach ( $se in $form.summary.summaryElements )
+        <th>$i18n.getString( $form.getElement( $se.id ).labelKey )</th>
+        #end
+        <th colspan="$form.summary.operations.size()"></th>
+      </tr>
+      #foreach ( $item in $formtool.getSummaryItems( $fid ) )
+      <tr class="$css.nextClass">
+        #foreach ( $se in $form.summary.summaryElements )
+        <td>$formtool.getSummaryItem( $form, $se, $item )</td>
+        #end
+        #foreach ( $operation in $form.summary.operations )
+        <td><a href="$link.setPage( $formtool.getOperationUrl( $form, $item, $operation
) )">$operation.name</a></td>
+        #end
+      </tr>
+      #end
+    </table>
+    #bar()
+  </div>
+</div>

Added: maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/View.vm
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/View.vm?rev=170427&view=auto
==============================================================================
--- maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/View.vm (added)
+++ maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/View.vm Mon May
16 11:49:04 2005
@@ -0,0 +1,22 @@
+#set ( $fid = $data.getParameters().getString( "fid" ) )
+#set ( $form = $formtool.getForm( $fid ) )
+#set ( $id = $data.getParameters().getString( "id" ) )
+#set ( $item = $formtool.getItem( $form, $id ) )
+<div class="app">
+  <div id="axial" class="h3">
+    <h3>$i18n.getString( $form.view.titleKey )</h3>
+    <div class="axial">
+      <table border="1" cellspacing="2" cellpadding="3" width="100%">
+        #foreach ( $element in $form.elements )
+        #if ( !$element.immutable )
+        <tr class="b">
+          <th>$i18n.getString( $element.labelKey )</th>
+          <td>$formtool.getItem( $form, $element, $item )</td>
+        </tr>
+        #end
+        #end
+      </table>
+      #bar()
+    </div>
+  </div>
+</div>



Mime
View raw message