commit f45449f9ddb8334ccd03c1044a3ecf529afeef42
parent 239f55ed9b279b5797dc7c6923be33f6a80afdc4
Author: Jan Dankert <develop@jandankert.de>
Date: Sat, 17 Apr 2021 01:40:04 +0200
Cleanup table layouts
Diffstat:
12 files changed, 66 insertions(+), 66 deletions(-)
diff --git a/modules/cms/ui/themes/default/html/views/group/rights.php b/modules/cms/ui/themes/default/html/views/group/rights.php
@@ -27,19 +27,19 @@
<div class="<?php echo O::escapeHtml('or-table-area') ?>"><?php echo O::escapeHtml('') ?>
<table class="<?php echo O::escapeHtml('or-table') ?>"><?php echo O::escapeHtml('') ?>
<tr class="<?php echo O::escapeHtml('or-table-header') ?>"><?php echo O::escapeHtml('') ?>
- <td class="<?php echo O::escapeHtml('or-help') ?>"><?php echo O::escapeHtml('') ?>
+ <th class="<?php echo O::escapeHtml('or-table-column-uer') ?>"><?php echo O::escapeHtml('') ?>
<span><?php echo O::escapeHtml(''.@O::lang('USER').'') ?></span>
- </td>
- <td class="<?php echo O::escapeHtml('or-help') ?>"><?php echo O::escapeHtml('') ?>
+ </th>
+ <th class="<?php echo O::escapeHtml('or-table-column-auto') ?>"><?php echo O::escapeHtml('') ?>
<span><?php echo O::escapeHtml(''.@O::lang('NAME').'') ?></span>
- </td>
- <td class="<?php echo O::escapeHtml('or-help') ?>"><?php echo O::escapeHtml('') ?>
+ </th>
+ <th class="<?php echo O::escapeHtml('or-table-column-user') ?>"><?php echo O::escapeHtml('') ?>
<span><?php echo O::escapeHtml(''.@O::lang('LANGUAGE').'') ?></span>
- </td>
+ </th>
<?php foreach((array)@$show as $list_key=>$t) { ?>
- <td class="<?php echo O::escapeHtml('or-help') ?>"><?php echo O::escapeHtml('') ?>
+ <th class="<?php echo O::escapeHtml('or-table-column-action') ?>"><?php echo O::escapeHtml('') ?>
<span title="<?php echo O::escapeHtml(''.@O::lang('acl_'.@$t.'').'') ?>"><?php echo O::escapeHtml(''.@O::lang('acl_'.@$t.'_abbrev').'') ?></span>
- </td>
+ </th>
<?php } ?>
</tr>
<?php foreach((array)@$rights as $aclid=>$acl) { extract($acl); ?>
diff --git a/modules/cms/ui/themes/default/html/views/group/rights.tpl.src.xml b/modules/cms/ui/themes/default/html/views/group/rights.tpl.src.xml
@@ -14,17 +14,17 @@
<if not="true" empty="${rights}">
<table>
<row header="true">
- <column class="help">
+ <column header="true" class="table-column-uer">
<text value="${message:USER}"/>
</column>
- <column class="help">
+ <column header="true" class="table-column-auto">
<text value="${message:NAME}"/>
</column>
- <column class="help">
+ <column header="true" class="table-column-user">
<text value="${message:LANGUAGE}"/>
</column>
<list list="${show}" value="t">
- <column class="help">
+ <column header="true" class="table-column-action">
<text value="${message:acl_${t}_abbrev}" title="${message:acl_${t}}"/>
</column>
</list>
diff --git a/modules/cms/ui/themes/default/html/views/languagelist/edit.php b/modules/cms/ui/themes/default/html/views/languagelist/edit.php
@@ -6,16 +6,16 @@
<div class="<?php echo O::escapeHtml('or-table-area') ?>"><?php echo O::escapeHtml('') ?>
<table class="<?php echo O::escapeHtml('or-table') ?>"><?php echo O::escapeHtml('') ?>
<tr class="<?php echo O::escapeHtml('or-table-header') ?>"><?php echo O::escapeHtml('') ?>
- <th><?php echo O::escapeHtml('') ?>
+ <th class="<?php echo O::escapeHtml('or-table-column-auto') ?>"><?php echo O::escapeHtml('') ?>
<span><?php echo O::escapeHtml(''.@O::lang('NAME').'') ?></span>
</th>
- <th><?php echo O::escapeHtml('') ?>
+ <th class="<?php echo O::escapeHtml('or--visible-on-desktop or-table-column-user') ?>"><?php echo O::escapeHtml('') ?>
<span><?php echo O::escapeHtml(''.@O::lang('LANGUAGE_ISOCODE').'') ?></span>
</th>
- <th><?php echo O::escapeHtml('') ?>
+ <th class="<?php echo O::escapeHtml('or--visible-on-desktop or-table-column-user') ?>"><?php echo O::escapeHtml('') ?>
<span><?php echo O::escapeHtml('') ?></span>
</th>
- <td><?php echo O::escapeHtml('') ?></td>
+ <th class="<?php echo O::escapeHtml('or-table-column-action') ?>"><?php echo O::escapeHtml('') ?></th>
</tr>
<?php foreach((array)@$el as $list_key=>$list_value) { extract($list_value); ?>
<tr class="<?php echo O::escapeHtml('or-data') ?>"><?php echo O::escapeHtml('') ?>
@@ -25,11 +25,11 @@
<span><?php echo O::escapeHtml(''.@$name.'') ?></span>
</a>
</td>
- <td><?php echo O::escapeHtml('') ?>
+ <td class="<?php echo O::escapeHtml('or--visible-on-desktop') ?>"><?php echo O::escapeHtml('') ?>
<span><?php echo O::escapeHtml(''.@$isocode.'') ?></span>
</td>
<?php $if5=(!$is_default); if($if5) { ?>
- <td class="<?php echo O::escapeHtml('or-act-clickable') ?>"><?php echo O::escapeHtml('') ?>
+ <td class="<?php echo O::escapeHtml('or-act-clickable or--visible-on-desktop') ?>"><?php echo O::escapeHtml('') ?>
<?php $if7=(isset($id)); if($if7) { ?>
<a target="<?php echo O::escapeHtml('_self') ?>" data-type="<?php echo O::escapeHtml('post') ?>" data-action="<?php echo O::escapeHtml('language') ?>" data-method="<?php echo O::escapeHtml('setdefault') ?>" data-id="<?php echo O::escapeHtml(''.@$id.'') ?>" data-extra="<?php echo O::escapeHtml('[]') ?>" data-data="<?php echo O::escapeHtml('{"action":"language","subaction":"setdefault","id":"'.@$id.'","token":"'.@$_token.'","none":0}') ?>" class="<?php echo O::escapeHtml('or-link') ?>"><?php echo O::escapeHtml('') ?>
<span><?php echo O::escapeHtml(''.@O::lang('make_default').'') ?></span>
@@ -40,7 +40,7 @@
</td>
<?php } ?>
<?php if(!$if5) { ?>
- <td><?php echo O::escapeHtml('') ?>
+ <td class="<?php echo O::escapeHtml('or--visible-on-desktop') ?>"><?php echo O::escapeHtml('') ?>
<em><?php echo O::escapeHtml(''.@O::lang('is_default').'') ?></em>
</td>
<?php } ?>
diff --git a/modules/cms/ui/themes/default/html/views/languagelist/edit.tpl.src.xml b/modules/cms/ui/themes/default/html/views/languagelist/edit.tpl.src.xml
@@ -2,30 +2,30 @@
xsi:schemaLocation="http://www.openrat.de/template ../../../../../../../template_engine/components/template.xsd">
<table>
<row header="true">
- <column header="true">
+ <column header="true" class="table-column-auto">
<text value="${message:NAME}"/>
</column>
- <column header="true">
+ <column header="true" class="-visible-on-desktop,table-column-user">
<text value="${message:LANGUAGE_ISOCODE}"/>
</column>
- <column header="true">
+ <column header="true" class="-visible-on-desktop,table-column-user">
<text value=""/>
</column>
- <column />
+ <column header="true" class="table-column-action" />
</row>
<list list="${el}" extract="true">
<row class="data">
<column class="act-clickable">
<image action="language"/>
<link type="open" name="${name}" action="language" id="${id}">
- <text value="${name}" maxlength="25"/>
+ <text value="${name}" />
</link>
</column>
- <column>
+ <column class="-visible-on-desktop">
<text value="${isocode}"/>
</column>
<if false="${is_default}">
- <column class="act-clickable">
+ <column class="act-clickable,-visible-on-desktop">
<if present="id">
<link type="post" action="language" subaction="setdefault" id="${id}">
<text value="${message:make_default}"/>
@@ -36,7 +36,7 @@
</column>
</if>
<else>
- <column>
+ <column class="-visible-on-desktop">
<text value="${message:is_default}" type="emphatic"/>
</column>
</else>
diff --git a/modules/cms/ui/themes/default/html/views/modellist/edit.php b/modules/cms/ui/themes/default/html/views/modellist/edit.php
@@ -9,10 +9,10 @@
<th><?php echo O::escapeHtml('') ?>
<span><?php echo O::escapeHtml(''.@O::lang('name').'') ?></span>
</th>
- <th><?php echo O::escapeHtml('') ?>
+ <th class="<?php echo O::escapeHtml('or--visible-on-desktop') ?>"><?php echo O::escapeHtml('') ?>
<span><?php echo O::escapeHtml('') ?></span>
</th>
- <td><?php echo O::escapeHtml('') ?></td>
+ <th><?php echo O::escapeHtml('') ?></th>
</tr>
<?php foreach((array)@$el as $list_key=>$list_value) { extract($list_value); ?>
<tr class="<?php echo O::escapeHtml('or-data') ?>"><?php echo O::escapeHtml('') ?>
@@ -23,7 +23,7 @@
</a>
</td>
<?php $if5=(!$is_default); if($if5) { ?>
- <td class="<?php echo O::escapeHtml('or-act-clickable') ?>"><?php echo O::escapeHtml('') ?>
+ <td class="<?php echo O::escapeHtml('or-act-clickable or--visible-on-desktop') ?>"><?php echo O::escapeHtml('') ?>
<?php $if7=(isset($id)); if($if7) { ?>
<a target="<?php echo O::escapeHtml('_self') ?>" data-type="<?php echo O::escapeHtml('post') ?>" data-action="<?php echo O::escapeHtml('model') ?>" data-method="<?php echo O::escapeHtml('setdefault') ?>" data-id="<?php echo O::escapeHtml(''.@$id.'') ?>" data-extra="<?php echo O::escapeHtml('[]') ?>" data-data="<?php echo O::escapeHtml('{"action":"model","subaction":"setdefault","id":"'.@$id.'","token":"'.@$_token.'","none":0}') ?>" class="<?php echo O::escapeHtml('or-link') ?>"><?php echo O::escapeHtml('') ?>
<span><?php echo O::escapeHtml(''.@O::lang('make_default').'') ?></span>
@@ -32,7 +32,7 @@
</td>
<?php } ?>
<?php if(!$if5) { ?>
- <td><?php echo O::escapeHtml('') ?>
+ <td class="<?php echo O::escapeHtml('or--visible-on-desktop') ?>"><?php echo O::escapeHtml('') ?>
<em><?php echo O::escapeHtml(''.@O::lang('is_default').'') ?></em>
</td>
<?php } ?>
diff --git a/modules/cms/ui/themes/default/html/views/modellist/edit.tpl.src.xml b/modules/cms/ui/themes/default/html/views/modellist/edit.tpl.src.xml
@@ -5,21 +5,21 @@
<column header="true">
<text value="${message:name}"/>
</column>
- <column header="true">
+ <column header="true" class="-visible-on-desktop">
<text value=""/>
</column>
- <column/>
+ <column header="true" />
</row>
<list list="${el}" extract="true">
<row class="data">
<column class="act-clickable">
<link type="open" name="${name}" action="model" id="${id}">
<image action="model"/>
- <text value="${name}" maxlength="25"/>
+ <text value="${name}" />
</link>
</column>
<if false="${is_default}">
- <column class="act-clickable">
+ <column class="act-clickable,-visible-on-desktop">
<if present="id">
<link type="post" action="model" subaction="setdefault" id="${id}">
<text value="${message:make_default}"/>
@@ -28,7 +28,7 @@
</column>
</if>
<else>
- <column>
+ <column class="-visible-on-desktop">
<text value="${message:is_default}" type="emphatic"/>
</column>
</else>
diff --git a/modules/cms/ui/themes/default/html/views/object/rights.php b/modules/cms/ui/themes/default/html/views/object/rights.php
@@ -6,14 +6,14 @@
<div class="<?php echo O::escapeHtml('or-table-area') ?>"><?php echo O::escapeHtml('') ?>
<table class="<?php echo O::escapeHtml('or-table') ?>"><?php echo O::escapeHtml('') ?>
<tr class="<?php echo O::escapeHtml('or-table-header') ?>"><?php echo O::escapeHtml('') ?>
- <td><?php echo O::escapeHtml('') ?>
+ <td class="<?php echo O::escapeHtml('or-table-column-auto') ?>"><?php echo O::escapeHtml('') ?>
<span><?php echo O::escapeHtml(''.@O::lang('NAME').'') ?></span>
</td>
- <td><?php echo O::escapeHtml('') ?>
+ <td class="<?php echo O::escapeHtml('or-table-column-auto') ?>"><?php echo O::escapeHtml('') ?>
<span><?php echo O::escapeHtml(''.@O::lang('LANGUAGE').'') ?></span>
</td>
<?php foreach((array)@$show as $list_key=>$t) { ?>
- <td><?php echo O::escapeHtml('') ?>
+ <td class="<?php echo O::escapeHtml('or-table-column-action') ?>"><?php echo O::escapeHtml('') ?>
<span><?php echo O::escapeHtml(''.@O::lang('acl_'.@$t.'_abbrev').'') ?></span>
</td>
<?php } ?>
diff --git a/modules/cms/ui/themes/default/html/views/object/rights.tpl.src.xml b/modules/cms/ui/themes/default/html/views/object/rights.tpl.src.xml
@@ -2,14 +2,14 @@
xsi:schemaLocation="http://www.openrat.de/template ../../../../../../../template_engine/components/template.xsd">
<table>
<row header="true">
- <column>
+ <column class="table-column-auto">
<text value="${message:NAME}"/>
</column>
- <column>
+ <column class="table-column-auto">
<text value="${message:LANGUAGE}"/>
</column>
<list list="${show}" value="t">
- <column>
+ <column class="table-column-action">
<text value="${message:acl_${t}_abbrev}"/>
</column>
</list>
diff --git a/modules/cms/ui/themes/default/html/views/page/edit.php b/modules/cms/ui/themes/default/html/views/page/edit.php
@@ -18,7 +18,7 @@
</th>
</tr>
<?php foreach((array)@$languages as $id=>$name) { ?>
- <tr class="<?php echo O::escapeHtml('or-data or-act-clickable') ?>"><?php echo O::escapeHtml('') ?>
+ <tr class="<?php echo O::escapeHtml('or-data or-act-clickable or-table-column-auto') ?>"><?php echo O::escapeHtml('') ?>
<td><?php echo O::escapeHtml('') ?>
<a title="<?php echo O::escapeHtml(''.@$desc.'') ?>" target="<?php echo O::escapeHtml('_self') ?>" data-name="<?php echo O::escapeHtml(''.@$name.'') ?>" name="<?php echo O::escapeHtml(''.@$name.'') ?>" data-type="<?php echo O::escapeHtml('dialog') ?>" data-action="<?php echo O::escapeHtml('') ?>" data-method="<?php echo O::escapeHtml('all') ?>" data-id="<?php echo O::escapeHtml('') ?>" data-extra-languageid="<?php echo O::escapeHtml(''.@$id.'') ?>" data-extra="<?php echo O::escapeHtml('{"languageid":"'.@$id.'"}') ?>" href="<?php echo O::escapeHtml('') ?>" class="<?php echo O::escapeHtml('or-link') ?>"><?php echo O::escapeHtml('') ?>
<i class="<?php echo O::escapeHtml('or-image-icon or-image-icon--action-pageelement') ?>"><?php echo O::escapeHtml('') ?></i>
@@ -46,16 +46,16 @@
<div class="<?php echo O::escapeHtml('or-table-area') ?>"><?php echo O::escapeHtml('') ?>
<table class="<?php echo O::escapeHtml('or-table') ?>"><?php echo O::escapeHtml('') ?>
<tr class="<?php echo O::escapeHtml('or-table-header') ?>"><?php echo O::escapeHtml('') ?>
- <th><?php echo O::escapeHtml('') ?>
+ <th class="<?php echo O::escapeHtml('or-table-column-auto') ?>"><?php echo O::escapeHtml('') ?>
<span><?php echo O::escapeHtml(''.@O::lang('NAME').'') ?></span>
</th>
- <th><?php echo O::escapeHtml('') ?>
+ <th class="<?php echo O::escapeHtml('or--visible-on-desktop or-table-column-auto') ?>"><?php echo O::escapeHtml('') ?>
<span><?php echo O::escapeHtml(''.@O::lang('DESCRIPTION').'') ?></span>
</th>
- <th><?php echo O::escapeHtml('') ?>
+ <th class="<?php echo O::escapeHtml('or-table-column-auto') ?>"><?php echo O::escapeHtml('') ?>
<span><?php echo O::escapeHtml(''.@O::lang('TYPE').'') ?></span>
</th>
- <th><?php echo O::escapeHtml('') ?></th>
+ <th class="<?php echo O::escapeHtml('or-table-column-action') ?>"><?php echo O::escapeHtml('') ?></th>
</tr>
<?php $if4=(($elements)==FALSE); if($if4) { ?>
<tr><?php echo O::escapeHtml('') ?>
@@ -72,7 +72,7 @@
<span><?php echo O::escapeHtml(''.@$label.'') ?></span>
</a>
</td>
- <td title="<?php echo O::escapeHtml(''.@$desc.'') ?>"><?php echo O::escapeHtml('') ?>
+ <td title="<?php echo O::escapeHtml(''.@$desc.'') ?>" class="<?php echo O::escapeHtml('or--visible-on-desktop') ?>"><?php echo O::escapeHtml('') ?>
<span><?php echo O::escapeHtml(''.@$desc.'') ?></span>
</td>
<td><?php echo O::escapeHtml('') ?>
diff --git a/modules/cms/ui/themes/default/html/views/page/edit.tpl.src.xml b/modules/cms/ui/themes/default/html/views/page/edit.tpl.src.xml
@@ -10,7 +10,7 @@
</column>
</row>
<list list="${languages}" key="id" value="name">
- <row class="data,act-clickable">
+ <row class="data,act-clickable,table-column-auto">
<column>
<link type="dialog" title="${desc}" name="${name}" subaction="all" var1="languageid" value1="${id}">
<image action="pageelement"/>
@@ -25,16 +25,16 @@
<group title="${message:PAGE_PAGEELEMENTS}">
<table>
<row header="true">
- <column header="true">
+ <column header="true" class="table-column-auto">
<text value="${message:NAME}"/>
</column>
- <column header="true">
+ <column header="true" class="-visible-on-desktop,table-column-auto">
<text value="${message:DESCRIPTION}"/>
</column>
- <column header="true">
+ <column header="true" class="table-column-auto">
<text value="${message:TYPE}"/>
</column>
- <column header="true"/>
+ <column header="true" class="table-column-action"/>
</row>
<if empty="${elements}">
<row>
@@ -51,7 +51,7 @@
<text value="${label}"/>
</link>
</column>
- <column title="${desc}">
+ <column title="${desc}" class="-visible-on-desktop">
<text value="${desc}"/>
</column>
<column>
diff --git a/modules/cms/ui/themes/default/html/views/user/rights.php b/modules/cms/ui/themes/default/html/views/user/rights.php
@@ -20,19 +20,19 @@
<div class="<?php echo O::escapeHtml('or-table-area') ?>"><?php echo O::escapeHtml('') ?>
<table class="<?php echo O::escapeHtml('or-table') ?>"><?php echo O::escapeHtml('') ?>
<tr class="<?php echo O::escapeHtml('or-table-header') ?>"><?php echo O::escapeHtml('') ?>
- <td class="<?php echo O::escapeHtml('or-help') ?>"><?php echo O::escapeHtml('') ?>
+ <th class="<?php echo O::escapeHtml('or-table-column-user') ?>"><?php echo O::escapeHtml('') ?>
<span><?php echo O::escapeHtml(''.@O::lang('USER').'') ?></span>
- </td>
- <td class="<?php echo O::escapeHtml('or-help') ?>"><?php echo O::escapeHtml('') ?>
+ </th>
+ <th class="<?php echo O::escapeHtml('or-table-column-auto') ?>"><?php echo O::escapeHtml('') ?>
<span><?php echo O::escapeHtml(''.@O::lang('NAME').'') ?></span>
- </td>
- <td class="<?php echo O::escapeHtml('or-help') ?>"><?php echo O::escapeHtml('') ?>
+ </th>
+ <th class="<?php echo O::escapeHtml('or-table-column-user') ?>"><?php echo O::escapeHtml('') ?>
<span><?php echo O::escapeHtml(''.@O::lang('LANGUAGE').'') ?></span>
- </td>
+ </th>
<?php foreach((array)@$show as $list_key=>$t) { ?>
- <td class="<?php echo O::escapeHtml('or-help') ?>"><?php echo O::escapeHtml('') ?>
+ <th class="<?php echo O::escapeHtml('or-table-column-action') ?>"><?php echo O::escapeHtml('') ?>
<span title="<?php echo O::escapeHtml(''.@O::lang('acl_'.@$t.'').'') ?>"><?php echo O::escapeHtml(''.@O::lang('acl_'.@$t.'_abbrev').'') ?></span>
- </td>
+ </th>
<?php } ?>
</tr>
<?php foreach((array)@$rights as $aclid=>$acl) { extract($acl); ?>
diff --git a/modules/cms/ui/themes/default/html/views/user/rights.tpl.src.xml b/modules/cms/ui/themes/default/html/views/user/rights.tpl.src.xml
@@ -9,17 +9,17 @@
<if not="true" empty="${rights}">
<table>
<row header="true">
- <column class="help">
+ <column header="true" class="table-column-user">
<text value="${message:USER}"/>
</column>
- <column class="help">
+ <column header="true" class="table-column-auto">
<text value="${message:NAME}"/>
</column>
- <column class="help">
+ <column header="true" class="table-column-user">
<text value="${message:LANGUAGE}"/>
</column>
<list list="${show}" value="t">
- <column class="help">
+ <column header="true" class="table-column-action">
<text value="${message:acl_${t}_abbrev}" title="${message:acl_${t}}"/>
<!--<text value="${message:acl_${data:t}_abbrev}" title="${message:acl_${data:t}}"></text>-->
</column>