You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2007/02/28 17:50:06 UTC

svn commit: r512841 - in /ofbiz/trunk/applications/content: webapp/content/website/WebSiteCMSContent.ftl widget/content/DataResourceForms.xml

Author: jaz
Date: Wed Feb 28 08:50:05 2007
New Revision: 512841

URL: http://svn.apache.org/viewvc?view=rev&rev=512841
Log:
added isPublic to CMS creation; changed isPublic from checkbox to default select so we can actually turn it off once it is enabled

Modified:
    ofbiz/trunk/applications/content/webapp/content/website/WebSiteCMSContent.ftl
    ofbiz/trunk/applications/content/widget/content/DataResourceForms.xml

Modified: ofbiz/trunk/applications/content/webapp/content/website/WebSiteCMSContent.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/webapp/content/website/WebSiteCMSContent.ftl?view=diff&rev=512841&r1=512840&r2=512841
==============================================================================
--- ofbiz/trunk/applications/content/webapp/content/website/WebSiteCMSContent.ftl (original)
+++ ofbiz/trunk/applications/content/webapp/content/website/WebSiteCMSContent.ftl Wed Feb 28 08:50:05 2007
@@ -52,8 +52,8 @@
 <div id="cmsmenu" style="margin-bottom: 8px;">
     <#if (content?has_content)>        
         <a href="javascript:void(0);" onclick="javascript:callEditor(true, '${content.contentId}', '', 'ELECTRONIC_TEXT');" class="tabButton">Quick Sub-Content</a>
-        <a href="javascript:void(0);" onclick="javascript:callPathAlias('${content.contentId}');" class="tabButton">New PathAlias</a>
-        <a href="javascript:void(0);" onclick="javascript:callMetaInfo('${content.contentId}');" class="tabButton">Meta Data</a>
+        <a href="javascript:void(0);" onclick="javascript:callPathAlias('${content.contentId}');" class="tabButton">Path Alias</a>
+        <a href="javascript:void(0);" onclick="javascript:callMetaInfo('${content.contentId}');" class="tabButton">Meta Tags</a>
     </#if>
 </div>
 
@@ -225,6 +225,23 @@
                     <#list statuses as status>
                         <option value="${status.statusId}">${status.description}</option>
                     </#list>
+                </select>
+            </td>
+          </tr>
+          <tr>
+            <td><div class="tableheadtext">Is Public</div></td>
+            <td>
+                <select name="statusId" class="selectBox">
+                    <#if (dataResource?has_content)>
+                        <#if (dataResource.isPublic?has_content)>
+                            <option>${dataResource.isPublic}</option>
+                            <option value="${dataResource.isPublic}">----</option>
+                        <#else>
+                            <option></option>
+                        </#if>
+                    </#if>
+                    <option>Y</option>
+                    <option>N</option>
                 </select>
             </td>
           </tr>

Modified: ofbiz/trunk/applications/content/widget/content/DataResourceForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/widget/content/DataResourceForms.xml?view=diff&rev=512841&r1=512840&r2=512841
==============================================================================
--- ofbiz/trunk/applications/content/widget/content/DataResourceForms.xml (original)
+++ ofbiz/trunk/applications/content/widget/content/DataResourceForms.xml Wed Feb 28 08:50:05 2007
@@ -157,9 +157,7 @@
                 <entity-options description="${description}" entity-name="CharacterSet" key-field-name="characterSetId"/>
             </drop-down>
         </field>
-        <field name="isPublic" >
-            <check />
-        </field>
+        
         <field name="createButton" title="${uiLabelMap.CommonCreate}" use-when="currentValue==null" widget-style="smallSubmit"><submit button-type="button"/></field>
         <field name="updateButton" title="${uiLabelMap.CommonUpdate}" use-when="currentValue!=null" widget-style="smallSubmit"><submit button-type="button"/></field>
     </form>