[pLog-svn] r6982 - plog/trunk/templates/admin

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Wed Feb 17 15:41:17 EST 2010


Author: jondaley
Date: 2010-02-17 15:41:17 -0500 (Wed, 17 Feb 2010)
New Revision: 6982

Modified:
   plog/trunk/templates/admin/globalsettings_url.template
Log:
merging 6933:6981, I added validation in 1.2.x, but for 2.0 we should use the new validation: TODO

Modified: plog/trunk/templates/admin/globalsettings_url.template
===================================================================
--- plog/trunk/templates/admin/globalsettings_url.template	2010-02-17 20:19:38 UTC (rev 6981)
+++ plog/trunk/templates/admin/globalsettings_url.template	2010-02-17 20:41:17 UTC (rev 6982)
@@ -28,72 +28,84 @@
     <label for="config[permalink_format]">permalink_format</label>
     <div class="formHelp">{$locale->tr("help_permalink_format")}</div>    
     <input style="width:100%" type="text" id="config[permalink_format]" name="config[permalink_format]" value="{$permalink_format}"/>
+    {include file="$admintemplatepath/validate.template" field="config[permalink_format]" message=$locale->tr("error_empty_text")}
    </div>
    <!-- category_link_format -->
    <div class="field">
     <label for="config[category_link_format]">category_link_format</label>
     <div class="formHelp">{$locale->tr("help_category_link_format")}</div>    
     <input style="width:100%" type="text" id="config[category_link_format]" name="config[category_link_format]" value="{$category_link_format}" />
+    {include file="$admintemplatepath/validate.template" field="config[category_link_format]" message=$locale->tr("error_empty_text")}
    </div>
    <!-- blog_link_format -->
    <div class="field">
     <label for="config[blog_link_format]">blog_link_format</label>
     <div class="formHelp">{$locale->tr("help_blog_link_format")}</div>    
     <input style="width:100%" type="text" id="config[blog_link_format]" name="config[blog_link_format]" value="{$blog_link_format}"/>
+    {include file="$admintemplatepath/validate.template" field=config[blog_link_format] message=$locale->tr("error_empty_text")}
    </div>   
    <!-- archive_link_format -->
    <div class="field">
     <label for="config[archive_link_format]">archive_link_format</label> 
     <div class="formHelp">{$locale->tr("help_archive_link_format")}</div>	
     <input style="width:100%" type="text" id="config[archive_link_format]" name="config[archive_link_format]" value="{$archive_link_format}"/>
+    {include file="$admintemplatepath/validate.template" field=config[archive_link_format] message=$locale->tr("error_empty_text")}
    </div>
    <!-- user_posts_link_format -->
    <div class="field">
     <label for="config[user_posts_link_format]">user_posts_link_format</label>
     <div class="formHelp">{$locale->tr("help_user_posts_link_format")}</div>	
     <input style="width:100%" type="text" id="config[user_posts_link_format]" name="config[user_posts_link_format]" value="{$user_posts_link_format}"/>    
+    {include file="$admintemplatepath/validate.template" field=config[user_posts_link_format] message=$locale->tr("error_empty_text")}
    </div>       
    <!-- post_trackbacks_link_format -->
    <div class="field">
     <label for="config[post_trackbacks_link_format]">post_trackbacks_link_format</label>
     <div class="formHelp">{$locale->tr("help_post_trackbacks_link_format")}</div>	
     <input style="width:100%" type="text" id="config[post_trackbacks_link_format]" name="config[post_trackbacks_link_format]" value="{$post_trackbacks_link_format}"/>    
+    {include file="$admintemplatepath/validate.template" field=config[post_trackbacks_link_format] message=$locale->tr("error_empty_text")}
    </div>
    <!-- template_link_format -->
    <div class="field">
     <label for="config[template_link_format]">template_link_format</label>
     <div class="formHelp">{$locale->tr("help_template_link_format")}</div>	
     <input style="width:100%" type="text" id="config[template_link_format]" name="config[template_link_format]" value="{$template_link_format}"/>
+    {include file="$admintemplatepath/validate.template" field=config[template_link_format] message=$locale->tr("error_empty_text")}
    </div>   
    <!-- album_link_format -->
    <div class="field">
     <label for="config[album_link_format]">album_link_format</label>
     <div class="formHelp">{$locale->tr("help_album_link_format")}</div>	
     <input style="width:100%" type="text" id="config[album_link_format]" name="config[album_link_format]" value="{$album_link_format}"/>
+    {include file="$admintemplatepath/validate.template" field=config[album_link_format] message=$locale->tr("error_empty_text")}
    </div>
    <!-- resource_link_format -->
    <div class="field">
     <label for="config[resource_link_format]">resource_link_format</label>
     <div class="formHelp">{$locale->tr("help_resource_link_format")}</div>	
     <input style="width:100%" type="text" id="config[resource_link_format]" name="config[resource_link_format]" value="{$resource_link_format}"/>
+    {include file="$admintemplatepath/validate.template" field=config[resource_link_format] message=$locale->tr("error_empty_text")}
    </div>
 <!--   
    <div class="field">
     <label for="config[resource_preview_link_format]">resource_preview_link_format</label>
     <div class="formHelp">{$locale->tr("help_resource_preview_link_format")}</div>	
     <input disabled="disabled" style="width:100%" type="text" id="config[resource_preview_link_format]" name="config[resource_preview_link_format]" value="{$resource_preview_link_format}"/>
+    {include file="$admintemplatepath/validate.template" field=config[resource_preview_link_format] message=$locale->tr("error_empty_text")}
    </div>
 
    <div class="field">
     <label for="config[resource_medium_size_preview_link_format]">resource_medium_size_preview_link_format</label>
     <div class="formHelp">{$locale->tr("help_resource_medium_size_preview_link_format")}</div>	
     <input disabled="disabled" style="width:100%" type="text" id="config[resource_medium_size_preview_link_format]" name="config[resource_medium_size_preview_link_format]" value="{$resource_medium_size_preview_link_format}"/>    
+    {include file="$admintemplatepath/validate.template" field=config[resource_medium_size_preview_link_format] message=$locale->tr("error_empty_text")}
    </div>   
 
    <div class="field">
     <label for="config[resource_download_link_format]">resource_download_link_format</label>
     <div class="formHelp">{$locale->tr("help_resource_download_link_format")}</div>	
     <input disabled="disabled" style="width:100%" type="text" id="config[resource_download_link_format]" name="config[resource_download_link_format]" value="{$resource_download_link_format}"/>
+    {include file="$admintemplatepath/validate.template" field=config[resource_download_link_format] message=$locale->tr("error_empty_text")}
    </div>
 -->
    <!-- page_suffix_format -->
@@ -101,5 +113,6 @@
     <label for="config[page_suffix_format]">page_suffix_format</label>
     <div class="formHelp">{$locale->tr("help_page_suffix_format")}</div>	
     <input style="width:100%" type="text" id="config[page_suffix_format]" name="config[page_suffix_format]" value="{$page_suffix_format}"/>
+    {include file="$admintemplatepath/validate.template" field=config[page_suffix_format] message=$locale->tr("error_empty_text")}
    </div>   
 </div>



More information about the pLog-svn mailing list