Commit caa785fc authored by fettesvieh's avatar fettesvieh

- fixed some style bugs

- reworked permissions selection for better usability
parent 0ef2194b
......@@ -22,7 +22,7 @@
{foreach from=$access item=row}
<tr>
{if $can_delete}
<td><input type="checkbox" name="entries[]" value="{$row.id}" /></td>
<td><input type="checkbox" name="entries[]" value="{$row.id}" class="checkbox" /></td>
{/if}
<td>{check_access mode="link" action="access|edit" uri="acp/access/edit/id_`$row.id`" title=$row.name}</td>
<td style="text-align:justify">{$row.access_to_mod}</td>
......
{if isset($error_msg)}
{$error_msg}
{/if}
<script type="text/javascript" src="{$DESIGN_PATH}access/script.js"></script>
<form action="{$REQUEST_URI}" method="post" accept-charset="UTF-8">
<fieldset>
<dl>
<dt><label for="name">{lang values="common|name"}</label></dt>
<dd><input type="text" name="form[name]" id="name" value="{$form.name}" maxlength="120" /></dd>
</dl>
<p>
{lang values="access|access_level_selection_tip"}
</p>
<dl>
<table class="acp-table">
<caption>
{lang values="access|access_level_selection_tip"}
</caption>
<thead>
<tr class="sub-table-header">
<th>{lang values="common|modules"}</th>
<th><a href="javascript:mark_permissions('read');">{lang values="access|can_read"}</a></th>
<th><a href="javascript:mark_permissions('create');">{lang values="access|can_create"}</a></th>
<th><a href="javascript:mark_permissions('edit');">{lang values="access|can_edit"}</a></th>
<th><a href="javascript:mark_permissions('delete');">{lang values="access|can_delete"}</a></th>
</tr>
</thead>
<tbody>
{foreach from=$mod_list item=mod}
<dt><label for="access-read-{$mod.dir}">{$mod.name}</label></dt>
<dd>
<label for="access-read-{$mod.dir}">
<input type="checkbox" name="form[modules][{$mod.dir}][read]" id="access-read-{$mod.dir}" value="1" class="checkbox"{$mod.read_checked} />
{lang values="access|can_read"}
</label>
<label for="access-create-{$mod.dir}">
<input type="checkbox" name="form[modules][{$mod.dir}][create]" id="access-create-{$mod.dir}" value="2" class="checkbox"{$mod.create_checked} />
{lang values="access|can_create"}
</label>
<label for="access-edit-{$mod.dir}">
<input type="checkbox" name="form[modules][{$mod.dir}][edit]" id="access-edit-{$mod.dir}" value="4" class="checkbox"{$mod.edit_checked} />
{lang values="access|can_edit"}
</label>
<label for="access-delete-{$mod.dir}">
<input type="checkbox" name="form[modules][{$mod.dir}][delete]" id="access-delete-{$mod.dir}" value="8" class="checkbox"{$mod.delete_checked} />
{lang values="access|can_delete"}
</label>
</dd>
<tr>
<td>{$mod.name}</td>
<td><input type="checkbox" name="form[modules][{$mod.dir}][read]" value="1" class="access-read checkbox"{$mod.read_checked} /></td>
<td><input type="checkbox" name="form[modules][{$mod.dir}][create]" value="1" class="access-create checkbox"{$mod.create_checked} /></td>
<td><input type="checkbox" name="form[modules][{$mod.dir}][edit]" value="1" class="access-edit checkbox"{$mod.edit_checked} /></td>
<td><input type="checkbox" name="form[modules][{$mod.dir}][delete]" value="1" class="access-delete checkbox"{$mod.delete_checked} /></td>
</tr>
{/foreach}
</dl>
</tbody>
</table>
</fieldset>
<div class="form-bottom">
<input type="submit" name="submit" value="{lang values="common|submit"}" class="form" />
......
{if isset($error_msg)}
{$error_msg}
{/if}
<script type="text/javascript" src="{$DESIGN_PATH}access/script.js"></script>
<form action="{$REQUEST_URI}" method="post" accept-charset="UTF-8">
<fieldset>
<dl>
<dt><label for="name">{lang values="common|name"}</label></dt>
<dd><input type="text" name="form[name]" id="name" value="{$form.name}" maxlength="120" /></dd>
</dl>
<p>
{lang values="access|access_level_selection_tip"}
</p>
<dl>
<table class="acp-table">
<caption>
{lang values="access|access_level_selection_tip"}
</caption>
<thead>
<tr class="sub-table-header">
<th>{lang values="common|modules"}</th>
<th><a href="javascript:mark_permissions('read','toggle');">{lang values="access|can_read"}</a></th>
<th><a href="javascript:mark_permissions('create','toggle');">{lang values="access|can_create"}</a></th>
<th><a href="javascript:mark_permissions('edit','toggle');">{lang values="access|can_edit"}</a></th>
<th><a href="javascript:mark_permissions('delete','toggle');">{lang values="access|can_delete"}</a></th>
</tr>
</thead>
<tbody>
{foreach from=$mod_list item=mod}
<dt><label for="access-read-{$mod.dir}">{$mod.name}</label></dt>
<dd>
<label for="access-read-{$mod.dir}">
<input type="checkbox" name="form[modules][{$mod.dir}][read]" id="access-read-{$mod.dir}" value="1" class="checkbox"{$mod.read_checked} />
{lang values="access|can_read"}
</label>
<label for="access-create-{$mod.dir}">
<input type="checkbox" name="form[modules][{$mod.dir}][create]" id="access-create-{$mod.dir}" value="2" class="checkbox"{$mod.create_checked} />
{lang values="access|can_create"}
</label>
<label for="access-edit-{$mod.dir}">
<input type="checkbox" name="form[modules][{$mod.dir}][edit]" id="access-edit-{$mod.dir}" value="4" class="checkbox"{$mod.edit_checked} />
{lang values="access|can_edit"}
</label>
<label for="access-delete-{$mod.dir}">
<input type="checkbox" name="form[modules][{$mod.dir}][delete]" id="access-delete-{$mod.dir}" value="8" class="checkbox"{$mod.delete_checked} />
{lang values="access|can_delete"}
</label>
</dd>
<tr>
<td>{$mod.name}</td>
<td><input type="checkbox" name="form[modules][{$mod.dir}][read]" value="1" class="access-read checkbox"{$mod.read_checked} /></td>
<td><input type="checkbox" name="form[modules][{$mod.dir}][create]" value="1" class="access-create checkbox"{$mod.create_checked} /></td>
<td><input type="checkbox" name="form[modules][{$mod.dir}][edit]" value="1" class="access-edit checkbox"{$mod.edit_checked} /></td>
<td><input type="checkbox" name="form[modules][{$mod.dir}][delete]" value="1" class="access-delete checkbox"{$mod.delete_checked} /></td>
</tr>
{/foreach}
</dl>
</tbody>
</table>
</fieldset>
<div class="form-bottom">
<input type="submit" name="submit" value="{lang values="common|submit"}" class="form" />
......
......@@ -24,7 +24,7 @@
{foreach from=$categories item=row}
<tr>
{if $can_delete}
<td><input type="checkbox" name="entries[]" value="{$row.id}" /></td>
<td><input type="checkbox" name="entries[]" value="{$row.id}" class="checkbox" /></td>
{/if}
<td>{check_access mode="link" action="categories|edit" uri="acp/categories/edit/id_`$row.id`" title=$row.name}</td>
<td>{$row.description}</td>
......
......@@ -21,7 +21,7 @@
{foreach from=$comments item=row}
<tr>
{if $can_delete}
<td><input type="checkbox" name="entries[]" value="{$row.module}" /></td>
<td><input type="checkbox" name="entries[]" value="{$row.module}" class="checkbox" /></td>
{/if}
<td>{check_access mode="link" action="comments|adm_list" uri="acp/comments/adm_list/module_`$row.module`" lang="comments|show_comments" title=$row.name}</td>
<td>{$row.count}</td>
......@@ -56,7 +56,7 @@
{foreach from=$comments item=row}
<tr>
{if $can_delete}
<td><input type="checkbox" name="entries[]" value="{$row.id}" /></td>
<td><input type="checkbox" name="entries[]" value="{$row.id}" class="checkbox" /></td>
{/if}
<td>{$row.date}</td>
<td>{check_access mode="link" action="comments|edit" uri="acp/comments/edit/id_`$row.id`" title=$row.name}</td>
......
......@@ -24,7 +24,7 @@
{foreach from=$emoticons item=row}
<tr>
{if $can_delete}
<td><input type="checkbox" name="entries[]" value="{$row.id}" /></td>
<td><input type="checkbox" name="entries[]" value="{$row.id}" class="checkbox" /></td>
{/if}
<td>{check_access mode="link" action="emoticons|edit" uri="acp/emoticons/edit/id_`$row.id`" title=$row.description}</td>
<td>{$row.code}</td>
......
......@@ -24,7 +24,7 @@
{foreach from=$files item=row}
<tr>
{if $can_delete}
<td><input type="checkbox" name="entries[]" value="{$row.id}" /></td>
<td><input type="checkbox" name="entries[]" value="{$row.id}" class="checkbox" /></td>
{/if}
<td>{$row.period}</td>
<td>{check_access mode="link" action="files|edit" uri="acp/files/edit/id_`$row.id`" title=$row.link_title}</td>
......
......@@ -24,7 +24,7 @@
{foreach from=$galleries item=row}
<tr>
{if $can_delete}
<td><input type="checkbox" name="entries[]" value="{$row.id}" /></td>
<td><input type="checkbox" name="entries[]" value="{$row.id}" class="checkbox" /></td>
{/if}
<td>{$row.period}</td>
<td>{check_access mode="link" action="gallery|edit_gallery" uri="acp/gallery/edit_gallery/id_`$row.id`" title=$row.name}</td>
......
......@@ -49,7 +49,7 @@
{foreach from=$pictures item=row}
<tr>
{if $can_delete}
<td><input type="checkbox" name="entries[]" value="{$row.id}" /></td>
<td><input type="checkbox" name="entries[]" value="{$row.id}" class="checkbox" /></td>
{/if}
<td>{if $MODULES->check("gallery", "edit_picture")}<a href="{uri args="acp/gallery/edit_picture/id_`$row.id`"}" title="{lang values="gallery|edit_picture"}"><img src="{uri args="gallery/image/id_`$row.id`/action_mini"}" alt="" /></a>{else}<img src="{uri args="gallery/image/id_`$row.id`/action_mini"}" alt="" />{/if}</td>
<td>{$row.description}</td>
......
......@@ -23,7 +23,7 @@
{foreach from=$guestbook item=row}
<tr>
{if $can_delete}
<td><input type="checkbox" name="entries[]" value="{$row.id}" /></td>
<td><input type="checkbox" name="entries[]" value="{$row.id}" class="checkbox" /></td>
{/if}
<td>{$row.date}</td>
<td>{check_access mode="link" action="guestbook|edit" uri="acp/guestbook/edit/id_`$row.id`" title=$row.name}</td>
......
......@@ -31,7 +31,7 @@
{foreach from=$pages item=row}
<tr>
{if $can_delete}
<td><input type="checkbox" name="entries[]" value="{$row.id}" /></td>
<td><input type="checkbox" name="entries[]" value="{$row.id}" class="checkbox" /></td>
{/if}
<td>{$row.period}</td>
<td>{$row.mode_formated}</td>
......
......@@ -22,7 +22,7 @@
{foreach from=$blocks item=row}
<tr>
{if $can_delete}
<td><input type="checkbox" name="entries[]" value="{$row.id}" /></td>
<td><input type="checkbox" name="entries[]" value="{$row.id}" class="checkbox" /></td>
{/if}
<td>{check_access mode="link" action="menu_items|edit_block" uri="acp/menu_items/edit_block/id_`$row.id`" title=$row.title}</td>
<td>{$row.index_name}</td>
......
......@@ -24,7 +24,7 @@
{foreach from=$news item=row}
<tr>
{if $can_delete}
<td><input type="checkbox" name="entries[]" value="{$row.id}" /></td>
<td><input type="checkbox" name="entries[]" value="{$row.id}" class="checkbox" /></td>
{/if}
<td>{$row.period}</td>
<td>{check_access mode="link" action="news|edit" uri="acp/news/edit/id_`$row.id`" title=$row.headline}</td>
......
......@@ -24,7 +24,7 @@
{foreach from=$accounts item=row}
<tr>
{if $can_delete}
<td><input type="checkbox" name="entries[]" value="{$row.id}" /></td>
<td><input type="checkbox" name="entries[]" value="{$row.id}" class="checkbox" /></td>
{/if}
<td>{$row.mail}</td>
<td>{$row.status}</td>
......
......@@ -27,7 +27,7 @@
{foreach from=$newsletter item=row}
<tr>
{if $can_delete}
<td><input type="checkbox" name="entries[]" value="{$row.id}" /></td>
<td><input type="checkbox" name="entries[]" value="{$row.id}" class="checkbox" /></td>
{/if}
<td>{$row.date}</td>
<td>{check_access mode="link" action="newsletter|edit_archive" uri="acp/newsletter/edit_archive/id_`$row.id`" title=$row.subject}</td>
......
......@@ -22,7 +22,7 @@
{foreach from=$polls item=row}
<tr>
{if $can_delete}
<td><input type="checkbox" name="entries[]" value="{$row.id}" /></td>
<td><input type="checkbox" name="entries[]" value="{$row.id}" class="checkbox" /></td>
{/if}
<td>{$row.period}</td>
<td>{check_access mode="link" action="polls|edit" uri="acp/polls/edit/id_`$row.id`" title=$row.question}</td>
......
......@@ -22,7 +22,7 @@
{foreach from=$pages item=row}
<tr>
{if $can_delete}
<td><input type="checkbox" name="entries[]" value="{$row.id}" /></td>
<td><input type="checkbox" name="entries[]" value="{$row.id}" class="checkbox" /></td>
{/if}
<td>{$row.period}</td>
<td>{check_access mode="link" action="static_pages|edit" uri="acp/static_pages/edit/id_`$row.id`" title=$row.title}</td>
......
......@@ -55,7 +55,7 @@ ul, ol {
ul ul, ol ol {
margin: 0 20px;
}
p {
p, caption {
padding: 5px 0;
text-align: justify;
}
......@@ -87,9 +87,13 @@ table.acp-table th {
table.acp-table td {
padding: 3px;
}
tfoot, .sub-table-header {
tfoot,
.sub-table-header, table.acp-table .sub-table-header th,
table.acp-table th.sub-table-header,
.sub-table-header th, th.sub-table-header {
background: #e7e7e7;
font-weight: bold;
color: #333;
}
pre {
width: 99%;
......@@ -167,7 +171,7 @@ fieldset input:focus, fieldset select:focus, fieldset textarea:focus,
#tabs div input:focus, #tabs div select:focus, #tabs div textarea:focus {
background: #ffc;
}
fieldset dl dd input.checkbox, #tabs div input.checkbox {
fieldset dl dd input.checkbox, #tabs div input.checkbox, table input.checkbox {
width: auto;
background: none;
border: 0;
......
......@@ -23,7 +23,7 @@
{foreach from=$users item=row}
<tr>
{if $can_delete}
<td><input type="checkbox" name="entries[]" value="{$row.id}" /></td>
<td><input type="checkbox" name="entries[]" value="{$row.id}" class="checkbox" /></td>
{/if}
<td>{check_access mode="link" action="users|edit" uri="acp/users/edit/id_`$row.id`" title=$row.nickname}</td>
<td>{$row.mail}</td>
......
......@@ -24,7 +24,7 @@ switch (modules::check()) {
$tpl->assign('BREADCRUMB', breadcrumb::output());
$tpl->assign('CONTENT', !empty($content) ? $content : '');
// Falls ein Modul ein eigenes Layout verwenden möchte, dieses auch verwenden
// Falls ein Modul ein eigenes Layout verwenden möchte, dieses auch zulassen
$tpl->display(defined('CUSTOM_LAYOUT') ? CUSTOM_LAYOUT : 'layout.html');
break;
case 0:
......
......@@ -10,7 +10,7 @@
</item>
<item>
<name>access_level_selection_tip</name>
<message>Bitte wählen Sie aus der untenstehenden Liste aus, welche Aktionen ein Benutzer beim jeweiligen Modul ausführen können.</message>
<message>Bitte wählen Sie aus der untenstehenden Liste aus, welche Aktionen ein Benutzer beim jeweiligen Modul ausführen kann.</message>
</item>
<item>
<name>access_level_undeletable</name>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment