added FieldPerm checking on "menu" field selector
authorAdrian Oldham <adriann@visualthought.com.au>
Wed, 8 Aug 2007 07:05:35 +0000 (07:05 +0000)
committeradriann <adriann@45cb6cf1-00bc-42d2-bb5a-07f51df49f94>
Wed, 8 Aug 2007 07:05:35 +0000 (07:05 +0000)
site/templates/admin/edit_1.tmpl
site/templates/admin/edit_catalog.tmpl
site/templates/admin/edit_product.tmpl
site/templates/admin/edit_seminar.tmpl

index b606f35fb0f68ee273efdf8bac8d72ee023b5a09..7260cbec4a7e90fd8e302b3285fb9b8caa734a81 100644 (file)
             <:or:><:default title:><:eif:></td>
             <td nowrap="nowrap" bgcolor="#FFFFFF"><:help edit title:> <:error_img title:></td>
           </tr>
+          <:if Cfg "title alias" [concatenate level [article level]]:><tr>
+            <th nowrap="nowrap" bgcolor="#FFFFFF" align="left">Alias:</th>
+            <td bgcolor="#FFFFFF" width="100%">
+              <:if FieldPerm titleAlias:><input type="text" name="titleAlias" maxlength="<:cfg fields alias_size 60:>" size="60" value="<:old titleAlias article titleAlias:>" /><:or FieldPerm:><:article titleAlias:><:eif FieldPerm:>
+            </td>
+            <td nowrap="nowrap" bgcolor="#FFFFFF"><:help edit titleAlias:> <:error_img titleAlias:></td>
+          </tr><:or Cfg:><:eif Cfg:>
           <tr> 
             <th nowrap="nowrap" bgcolor="#FFFFFF" align="left">Summary: 
             </th>
           <:if Cfgsection [concatenate level [article level] " menus"]:><tr> 
             <th nowrap="nowrap" bgcolor="#FFFFFF" align="left">Menu:</th>
             <td bgcolor="#FFFFFF" width="100%"> 
-              <select name="menu" id="menu">
+              <:if FieldPerm menu:><select name="menu" id="menu">
                 <:iterator begin cfgsection [concatenate level [article level] " menus"] sort=key:><option value="<:cfgentry key:>"<:if Eq [old menu] [cfgentry key]:> selected="selected"<:or Eq:><:eif Eq:>><:cfgentry value:></option><:iterator separator cfgsection:>
                 <:iterator end cfgsection:>
-              </select>
+              </select><:or FieldPerm:><:article menu:><:eif FieldPerm:>
             </td>
             <td nowrap="nowrap" bgcolor="#FFFFFF"><:help article menu:> <:error_img menu:></td>
           </tr><:or Cfgsection:><:eif Cfgsection:>
index dd4182cd4b327bb67a04ccddfd4b5d0d5f7d1f9f..050154598304fd89ab0914be3bf94897bb1e5bd3 100644 (file)
           <:if Cfgsection [concatenate level [article level] " menus"]:><tr> 
             <th nowrap="nowrap" bgcolor="#FFFFFF" align="left">Menu:</th>
             <td bgcolor="#FFFFFF" width="100%"> 
-              <select name="menu" id="menu">
+              <:if FieldPerm menu:><select name="menu" id="menu">
                 <:iterator begin cfgsection [concatenate level [article level] " menus"] sort=key:><option value="<:cfgentry key:>"<:if Eq [old menu] [cfgentry key]:> selected="selected"<:or Eq:><:eif Eq:>><:cfgentry value:></option><:iterator separator cfgsection:>
                 <:iterator end cfgsection:>
-              </select>
+              </select><:or FieldPerm:><:article menu:><:eif FieldPerm:>
             </td>
             <td nowrap="nowrap" bgcolor="#FFFFFF"><:help article menu:> <:error_img menu:></td>
           </tr><:or Cfgsection:><:eif Cfgsection:>
index 8fc2f588b856f4bf23cce55d55de82aa1791a736..578880f870a4c9c7f021a04467cca0b81c93e75e 100644 (file)
           <:if Cfgsection [concatenate level [article level] " menus"]:><tr> 
             <th nowrap="nowrap" bgcolor="#FFFFFF" align="left">Menu:</th>
             <td bgcolor="#FFFFFF" width="100%"> 
-              <select name="menu" id="menu">
+              <:if FieldPerm menu:><select name="menu" id="menu">
                 <:iterator begin cfgsection [concatenate level [article level] " menus"] sort=key:><option value="<:cfgentry key:>"<:if Eq [old menu] [cfgentry key]:> selected="selected"<:or Eq:><:eif Eq:>><:cfgentry value:></option><:iterator separator cfgsection:>
                 <:iterator end cfgsection:>
-              </select>
+              </select><:or FieldPerm:><:article menu:><:eif FieldPerm:>
             </td>
             <td nowrap="nowrap" bgcolor="#FFFFFF"><:help article menu:> <:error_img menu:></td>
           </tr><:or Cfgsection:><:eif Cfgsection:>
index a1135abbce3cf3c89f49e4d4e6eca2504af0a6d8..19b05cd33a520257185fda73db76e54ba01d36c6 100644 (file)
           <:if Cfgsection [concatenate level [article level] " menus"]:><tr> 
             <th nowrap="nowrap" bgcolor="#FFFFFF" align="left">Menu:</th>
             <td bgcolor="#FFFFFF" width="100%"> 
-              <select name="menu" id="menu">
+              <:if FieldPerm menu:><select name="menu" id="menu">
                 <:iterator begin cfgsection [concatenate level [article level] " menus"] sort=key:><option value="<:cfgentry key:>"<:if Eq [old menu] [cfgentry key]:> selected="selected"<:or Eq:><:eif Eq:>><:cfgentry value:></option><:iterator separator cfgsection:>
                 <:iterator end cfgsection:>
-              </select>
+              </select><:or FieldPerm:><:article menu:><:eif FieldPerm:>
             </td>
             <td nowrap="nowrap" bgcolor="#FFFFFF"><:help article menu:> <:error_img menu:></td>
           </tr><:or Cfgsection:><:eif Cfgsection:>