From 6458ed3f9c5773e521640d8dec1e0498164cd610 Mon Sep 17 00:00:00 2001 From: Guillaume Rousse <guillaume.rousse@renater.fr> Date: Fri, 12 Feb 2021 11:52:11 +0100 Subject: [PATCH] move buttons out of tables --- .../web/edugain/create_accounts.tt2.html | 44 +++++++++---------- .../web/renater/create_accounts.tt2.html | 44 +++++++++---------- 2 files changed, 40 insertions(+), 48 deletions(-) diff --git a/templates/web/edugain/create_accounts.tt2.html b/templates/web/edugain/create_accounts.tt2.html index 335ae9e..223a8a2 100644 --- a/templates/web/edugain/create_accounts.tt2.html +++ b/templates/web/edugain/create_accounts.tt2.html @@ -19,30 +19,26 @@ [% FOREACH account IN accounts %] [% template = account.profile() _ '.tt2' %] [% PROCESS $template scope=account.scope() id=account.id() | trim %] - <div class="small-12 medium-6 large-4 columns"> - <div class="account"> - <table> - <caption>[% lh.maketext("Account profile: [_1]", account.profile()) %]</caption> - <tr> - <td><strong>[% lh.maketext("user name:") %]</strong></td> - <td>user[% account.id() %]</td> - </tr> - <tr> - <td><strong>[% lh.maketext("password:") %]</strong></td> - <td>[% account.password() %]</td> - </tr> - <tr> - <td colspan="2"> - <strong>[% lh.maketext("comment:") %]</strong> - <div class="comment">[% description.${lh.language_tag()} %]</div> - </td> - </tr> - <tr> - <td colspan="2" class="text-center" > - <button data-open="account_details_[% account.id() %]" class="button show_account_details" id="show_account_details_[% account.id() %]">[% lh.maketext("show details") %]</button> - </td> - </tr> - </table> + <div class="account small-12 medium-6 large-4 columns"> + <table> + <caption>[% lh.maketext("Account profile: [_1]", account.profile()) %]</caption> + <tr> + <td><strong>[% lh.maketext("user name:") %]</strong></td> + <td>user[% account.id() %]</td> + </tr> + <tr> + <td><strong>[% lh.maketext("password:") %]</strong></td> + <td>[% account.password() %]</td> + </tr> + <tr> + <td colspan="2"> + <strong>[% lh.maketext("comment:") %]</strong> + <div class="comment">[% description.${lh.language_tag()} %]</div> + </td> + </tr> + </table> + <div class="text-center" > + <button data-open="account_details_[% account.id() %]" id="show_account_details_[% account.id() %]">[% lh.maketext("show details") %]</button> </div> </div> <div class="reveal" data-reveal id="account_details_[% account.id() %]"> diff --git a/templates/web/renater/create_accounts.tt2.html b/templates/web/renater/create_accounts.tt2.html index f4f31ba..10a8ee8 100644 --- a/templates/web/renater/create_accounts.tt2.html +++ b/templates/web/renater/create_accounts.tt2.html @@ -21,30 +21,26 @@ [% FOREACH account IN accounts %] [% template = account.profile() _ '.tt2' %] [% PROCESS $template scope=account.scope() id=account.id() | trim %] - <div class="small-12 medium-6 large-4 columns"> - <div class="account"> - <table> - <caption>[% lh.maketext("Account profile: [_1]", account.profile()) %]</caption> - <tr> - <td><strong>[% lh.maketext("user name:") %]</strong></td> - <td>user[% account.id() %]</td> - </tr> - <tr> - <td><strong>[% lh.maketext("password:") %]</strong></td> - <td>[% account.password() %]</td> - </tr> - <tr> - <td colspan="2"> - <strong>[% lh.maketext("comment:") %]</strong> - <div class="comment">[% description.${lh.language_tag()} %]</div> - </td> - </tr> - <tr> - <td colspan="2" class="text-center" > - <button data-open="account_details_[% account.id() %]" class="button show_account_details" id="show_account_details_[% account.id() %]">[% lh.maketext("show details") %]</button> - </td> - </tr> - </table> + <div class="account small-12 medium-6 large-4 columns"> + <table> + <caption>[% lh.maketext("Account profile: [_1]", account.profile()) %]</caption> + <tr> + <td><strong>[% lh.maketext("user name:") %]</strong></td> + <td>user[% account.id() %]</td> + </tr> + <tr> + <td><strong>[% lh.maketext("password:") %]</strong></td> + <td>[% account.password() %]</td> + </tr> + <tr> + <td colspan="2"> + <strong>[% lh.maketext("comment:") %]</strong> + <div class="comment">[% description.${lh.language_tag()} %]</div> + </td> + </tr> + </table> + <div class="text-center"> + <button data-open="account_details_[% account.id() %]" id="show_account_details_[% account.id() %]">[% lh.maketext("show details") %]</button> </div> </div> <div class="reveal" data-reveal id="account_details_[% account.id() %]"> -- GitLab