Skip to content
Snippets Groups Projects
Commit 10d55be1 authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

simplification: don't use table for layout

parent f5d576d9
Branches
Tags
No related merge requests found
...@@ -175,25 +175,18 @@ div.account h3 { ...@@ -175,25 +175,18 @@ div.account h3 {
div.account table { div.account table {
table-layout: fixed; table-layout: fixed;
word-wrap: break-word; word-wrap: break-word;
margin-bottom: 0;
} }
div.account table tbody { div.account table tbody {
border:1px solid #f1893b; border:1px solid #f1893b;
} }
div.account .comment { div.account .description {
/*display: flex;*/ height: 4em;
margin: 0;
padding: 0;
height: 7em;
overflow-y: auto; overflow-y: auto;
font-size: 0.875rem;
line-height: 1.3;
text-align: left;
} }
/*
div.account button { div.account button {
margin-bottom: 0;
padding: 0.5rem 1rem; padding: 0.5rem 1rem;
} } */
.scrollable { .scrollable {
overflow-y: scroll; overflow-y: scroll;
......
...@@ -21,6 +21,9 @@ ...@@ -21,6 +21,9 @@
[% PROCESS $template scope=account.scope() id=account.id() | trim %] [% PROCESS $template scope=account.scope() id=account.id() | trim %]
<div class="account small-12 medium-6 large-4 columns"> <div class="account small-12 medium-6 large-4 columns">
<h3>[% lh.maketext("Account profile: [_1]", account.profile()) %]</h3> <h3>[% lh.maketext("Account profile: [_1]", account.profile()) %]</h3>
<div class="description">[% description.${lh.language_tag()} %].</div>
<table> <table>
<tr> <tr>
<td><strong>[% lh.maketext("user name:") %]</strong></td> <td><strong>[% lh.maketext("user name:") %]</strong></td>
...@@ -30,13 +33,8 @@ ...@@ -30,13 +33,8 @@
<td><strong>[% lh.maketext("password:") %]</strong></td> <td><strong>[% lh.maketext("password:") %]</strong></td>
<td>[% account.password() %]</td> <td>[% account.password() %]</td>
</tr> </tr>
<tr>
<td colspan="2">
<strong>[% lh.maketext("comment:") %]</strong>
<div class="comment">[% description.${lh.language_tag()} %]</div>
</td>
</tr>
</table> </table>
<div class="text-center" > <div class="text-center" >
<button data-open="account_details_[% account.id() %]" id="show_account_details_[% account.id() %]">[% lh.maketext("show details") %]</button> <button data-open="account_details_[% account.id() %]" id="show_account_details_[% account.id() %]">[% lh.maketext("show details") %]</button>
</div> </div>
...@@ -46,6 +44,7 @@ ...@@ -46,6 +44,7 @@
<span aria-hidden="true">&times;</span> <span aria-hidden="true">&times;</span>
</button> </button>
<h3>[% lh.maketext("User attributes list") %]</h3> <h3>[% lh.maketext("User attributes list") %]</h3>
<table> <table>
[% FOREACH pair IN attributes.pairs %] [% FOREACH pair IN attributes.pairs %]
<tr> <tr>
......
...@@ -23,6 +23,9 @@ ...@@ -23,6 +23,9 @@
[% PROCESS $template scope=account.scope() id=account.id() | trim %] [% PROCESS $template scope=account.scope() id=account.id() | trim %]
<div class="account small-12 medium-6 large-4 columns"> <div class="account small-12 medium-6 large-4 columns">
<h3>[% lh.maketext("Account profile: [_1]", account.profile()) %]</h3> <h3>[% lh.maketext("Account profile: [_1]", account.profile()) %]</h3>
<div class="description">[% description.${lh.language_tag()} %].</div>
<table> <table>
<tr> <tr>
<td><strong>[% lh.maketext("user name:") %]</strong></td> <td><strong>[% lh.maketext("user name:") %]</strong></td>
...@@ -32,13 +35,8 @@ ...@@ -32,13 +35,8 @@
<td><strong>[% lh.maketext("password:") %]</strong></td> <td><strong>[% lh.maketext("password:") %]</strong></td>
<td>[% account.password() %]</td> <td>[% account.password() %]</td>
</tr> </tr>
<tr>
<td colspan="2">
<strong>[% lh.maketext("comment:") %]</strong>
<div class="comment">[% description.${lh.language_tag()} %]</div>
</td>
</tr>
</table> </table>
<div class="text-center"> <div class="text-center">
<button data-open="account_details_[% account.id() %]" id="show_account_details_[% account.id() %]">[% lh.maketext("show details") %]</button> <button data-open="account_details_[% account.id() %]" id="show_account_details_[% account.id() %]">[% lh.maketext("show details") %]</button>
</div> </div>
...@@ -48,6 +46,7 @@ ...@@ -48,6 +46,7 @@
<span aria-hidden="true">&times;</span> <span aria-hidden="true">&times;</span>
</button> </button>
<h3>[% lh.maketext("User attributes list") %]</h3> <h3>[% lh.maketext("User attributes list") %]</h3>
<table> <table>
[% FOREACH pair IN attributes.pairs %] [% FOREACH pair IN attributes.pairs %]
<tr> <tr>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment