This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, master has been updated
via 656983040dee024ec1a05af9fa3c91e22e318d1a (commit)
from c7e6ecc76a66ab647a0f502a2a0f553d8a060b69 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=656983040dee024ec1a05af9fa3c91e22e318d1a
commit 656983040dee024ec1a05af9fa3c91e22e318d1a
Author: Stéphane-Eymeric Bredthauer <[email protected]>
Date: Fri May 13 11:19:54 2016 +0200
Tracker workflow: revew display using css
diff --git a/src/common/tracker/views/form-workflow.php
b/src/common/tracker/views/form-workflow.php
index f80c478..21d487e 100644
--- a/src/common/tracker/views/form-workflow.php
+++ b/src/common/tracker/views/form-workflow.php
@@ -70,15 +70,19 @@ echo $HTML->openForm(array('action' =>
'/tracker/admin/?group_id='.$group_id.'&a
$init = _('Initial values').' ';
$title_arr=array();
- $title_arr[]=_('From Value');
+ $class_arr=array();
+ $title_arr[]=('From Value');
+ $class_arr[]=('');
foreach ($elearray as $status) {
- $title_arr[]=$status['element_name'];
+
$title_arr[]='<div><span>'.$status['element_name'].'</span></div>';
+
$to_title_arr[]='<div><span>'.$to.$status['element_name'].'</span></div>';
+ $class_arr[]='rotate';
}
- echo $HTML->listTableTop($title_arr, false, ' ');
+ echo $HTML->listTableTop($title_arr, false,
'table-header-rotated','',$class_arr);
echo "\n";
// Special treatement for the initial value (in the Submit form).
- echo '<tr id="initval"><th style="text-align:left">'.$init.'</th>'."\n";
+ echo '<tr id="initval"><th class="row-header"
style="text-align:left">'.$init.'</th>'."\n";
$next = $atw->getNextNodes('100');
foreach ($states as $s) {
$name = 'wk[100]['. $s['element_id'].']';
@@ -92,14 +96,18 @@ echo $HTML->openForm(array('action' =>
'/tracker/admin/?group_id='.$group_id.'&a
$count=count($title_arr);
$totitle_arr = array();
+ $class_arr= array();
+ $totitle_arr[]=('');
+ $class_arr[]=('');
for ($i=0; $i<$count; $i++) {
- $totitle_arr[] = $title_arr[$i]? $to.$title_arr[$i] : '';
+ $totitle_arr[] = $title_arr[$i]? $to_title_arr[$i] : '';
+ $class_arr[]='rotate';
}
- echo $HTML->listTableTop($totitle_arr, false, ' ');
+ echo $HTML->listTableTop($totitle_arr, false,
'table-header-rotated','',$class_arr);
$i=1;
foreach ($elearray as $status) {
- echo '<tr id="configuring-'.$i++.'"><th
style="text-align:left">'.$from.$status['element_name'].'</th>'."\n";
+ echo '<tr id="configuring-'.$i++.'"><th class ="row-header"
style="text-align:left">'.$from.$status['element_name'].'</th>'."\n";
$next = $atw->getNextNodes($status['element_id']);
foreach ($states as $s) {
if ($status['element_id'] !== $s['element_id']) {
diff --git a/src/www/themes/funky/css/theme.css
b/src/www/themes/funky/css/theme.css
index 77ad957..0c65a78 100644
--- a/src/www/themes/funky/css/theme.css
+++ b/src/www/themes/funky/css/theme.css
@@ -813,3 +813,34 @@ p.information {
#docman_search_query_label {
font-weight:bold;
}
+
+.table-header-rotated {
+ border-collapse: collapse;
+}
+
+.table-header-rotated td {
+ width: 30px;
+ text-align: center;
+ padding: 10px 5px;
+ border: 1px solid #ccc;
+}
+
+.table-header-rotated th.rotate {
+ height: 140px;
+ white-space: nowrap;
+}
+
+.table-header-rotated th.rotate>div {
+ transform: translate(25px, 51px) rotate(315deg);
+ width: 30px;
+}
+
+.table-header-rotated th.rotate>div>span {
+ border-bottom: 1px solid #ccc;
+ padding: 5px 10px;
+}
+
+.table-header-rotated th.row-header {
+ padding: 0 10px;
+ border-bottom: 1px solid #ccc;
+}
-----------------------------------------------------------------------
Summary of changes:
src/common/tracker/views/form-workflow.php | 22 ++++++++++++++-------
src/www/themes/funky/css/theme.css | 31 ++++++++++++++++++++++++++++++
2 files changed, 46 insertions(+), 7 deletions(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits