summaryrefslogtreecommitdiff
path: root/templates/module_config_role_inc.tpl
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2012-08-06 11:32:45 +0100
committerlsces <lester@lsces.co.uk>2012-08-06 11:32:45 +0100
commit31cacc6c7129ca9e9cd46c83fda72233f0eae95c (patch)
tree2476b7fd84bded4add9856766c364d8a7d0db9ed /templates/module_config_role_inc.tpl
parenta177cfa6b9e4cd225de8423e178a2f464da96bf1 (diff)
downloadthemes-31cacc6c7129ca9e9cd46c83fda72233f0eae95c.tar.gz
themes-31cacc6c7129ca9e9cd46c83fda72233f0eae95c.tar.bz2
themes-31cacc6c7129ca9e9cd46c83fda72233f0eae95c.zip
Separate templates for role model
still need selecting corretly Theme still needs some work to merge remaining group/role switch
Diffstat (limited to 'templates/module_config_role_inc.tpl')
-rw-r--r--templates/module_config_role_inc.tpl80
1 files changed, 80 insertions, 0 deletions
diff --git a/templates/module_config_role_inc.tpl b/templates/module_config_role_inc.tpl
new file mode 100644
index 0000000..13e2f62
--- /dev/null
+++ b/templates/module_config_role_inc.tpl
@@ -0,0 +1,80 @@
+{capture name=shared}
+ {smartlink ititle="Up" ibiticon="icons/go-up" iforce="icon" page=$page move_module=up module_package=$module_package module_id=`$modInfo.module_id`}
+ {smartlink ititle="Down" ibiticon="icons/go-down" iforce="icon" page=$page move_module=down module_package=$module_package module_id=`$modInfo.module_id`}
+ {if $colkey eq 'left' or $colkey eq 'right'}
+ {if $colkey == 'left'}
+ {assign var=icon value=next}
+ {assign var=move value=right}
+ {elseif $colkey == 'right'}
+ {assign var=icon value=previous}
+ {assign var=move value=left}
+ {/if}
+ {smartlink ititle="Move module" ibiticon="icons/go-$icon" iforce="icon" iexplain="`$move`" page=$page move_module=$move module_package=$module_package module_id=$modInfo.module_id}
+ {/if}
+ {if $gBitThemes->isCustomModule( $modInfo.module_rsrc )}
+ {smartlink ititle="Edit" ibiticon="icons/accessories-text-editor" iforce=icon iexplain="Edit" page=custom_modules name=$modInfo.module_rsrc|regex_replace:"!.*\/!":"" action=edit}
+ {/if}
+ {smartlink ititle="Unassign" ibiticon="icons/edit-delete" iforce=icon iexplain="Delete" ionclick="return confirm('Are you sure you want to remove `$modInfo.name`?');" page=$page move_module=unassign module_package=$module_package module_id=$modInfo.module_id }
+{/capture}
+
+{strip}
+<h3>
+ {if !$smarty.request.nocollapse && !$condensed && $gBitThemes->isJavascriptEnabled()}<a href="javascript:BitBase.flipWithSign('id-{$modInfo.module_id}');"><span id="flipperid-{$modInfo.module_id}" class="monospace">[+]</span> {/if}
+ {$modInfo.name}
+ <input type="hidden" name="modules[{$modInfo.module_id}][layout_area]" value="{$area}" />
+ <input type="hidden" name="modules[{$modInfo.module_id}][layout]" value="{$module_package}" />
+ {if !$smarty.request.nocollapse && !$condensed && $gBitThemes->isJavascriptEnabled()}</a>{/if}
+ <br />
+ {$smarty.capture.shared}
+</h3>
+
+{if !$condensed}
+ {if !$smarty.request.nocollapse && $gBitThemes->isJavascriptEnabled()}<div id="id-{$modInfo.module_id}" style="display:none;">{/if}
+ <table class="data">
+ <tr>
+ <td class="alignright">{tr}Position{/tr}</td>
+ <td>
+ <input type="text" size="4" name="modules[{$modInfo.module_id}][pos]" value="{$modInfo.pos}" />
+ </td>
+ </tr>
+
+ {if !$gBitThemes->isCustomModule( $modInfo.module_rsrc )}
+ <tr>
+ <td class="alignright">{tr}Title{/tr}</td>
+ <td><input type="text" size="15" name="modules[{$modInfo.module_id}][title]" value="{$modInfo.title|escape}" /></td>
+ </tr>
+ <tr>
+ <td class="alignright">{tr}Rows{/tr}</td>
+ <td><input type="text" size="15" name="modules[{$modInfo.module_id}][module_rows]" value="{$modInfo.module_rows}" /></td>
+ </tr>
+ <tr>
+ <td class="alignright">{tr}Parameters{/tr}</td>
+ <td><input type="text" size="15" name="modules[{$modInfo.module_id}][params]" value="{$modInfo.params}" /></td>
+ </tr>
+ {/if}
+
+ <tr>
+ <td class="alignright">{tr}Cache Time{/tr}</td>
+ <td><input type="text" size="15" name="modules[{$modInfo.module_id}][cache_time]" value="{$modInfo.cache_time}" /></td>
+ </tr>
+
+ <tr>
+ <td class="alignright">{tr}Roles{/tr}</td>
+ <td>
+ <select multiple="multiple" size="3" name="modules[{$modInfo.module_id}][roles][]">
+ {foreach from=$roles key=roleId item=role}
+ {assign var=selected value=n}
+ {foreach from=$modInfo.module_roles item=module_roles}
+ {if $roleId == $module_roles}
+ {assign var=selected value=y}
+ {/if}
+ {/foreach}
+ <option value="{$roleId}" {if $selected eq 'y'}selected="selected"{/if}>{$role.role_name}</option>
+ {/foreach}
+ </select>
+ </td>
+ </tr>
+ </table>
+ {if !$smarty.request.nocollapse && $gBitThemes->isJavascriptEnabled()}</div>{/if}
+{/if}
+{/strip}