use custom css file instead of inline style

This commit is contained in:
Marc Michalsky 2023-08-29 17:02:05 +02:00
parent ab5b0b3929
commit b7b0e6d610
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9
3 changed files with 7 additions and 1 deletions

View file

@ -32,6 +32,9 @@ class CRM_Twingle_Page_Profiles extends CRM_Core_Page {
$this->assign('profiles', $profiles);
$this->assign('profile_stats', CRM_Twingle_Profile::getProfileStats());
// Add custom css
Civi::resources()->addStyleFile(E::LONG_NAME, 'css/twingle.css');
parent::run();
}

3
css/twingle.css Normal file
View file

@ -0,0 +1,3 @@
.twingle-profile-list {
border-bottom: 1px solid #cfcec3;
}

View file

@ -34,7 +34,7 @@
<tbody>
{foreach from=$profiles item=profile}
{assign var="profile_name" value=$profile.name}
<tr style="border-bottom: 1px solid #cfcec3;">
<tr class="twingle-profile-list">
<td>{$profile.name}</td>
<td>
{if not $profile.is_default}