Skip to content

Commit

Permalink
Updated readme and email template
Browse files Browse the repository at this point in the history
Just fixes a few oddities with the readme and also updates the email template to match the style of the existing ones in FOSSBilling.
  • Loading branch information
BelleNottelling committed Sep 19, 2023
1 parent 55eee70 commit e495584
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 14 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ All modules can communicate with the other modules using their API endpoints.

## Optional

* **README.md** - file for installation and getting started instructions
* **html_admin** folder - for admin area templates, to store custom *.html.twig files
* **html_client** folder - for client area templates, to store custom *.html.twig files
* **README.md** - file for installation and getting started instructions.
* **html_admin** - folder - for admin area templates, to store custom *.html.twig files.
* **html_client** - folder - for client area templates, to store custom *.html.twig files.

### Controller folder

* **Admin.php** - if the module has install/uninstall functions or an admin area interface\
* **Client.php** - if the module has a client area interface
* **Admin.php** - Defines the module's routes and navigation items for the administrator panel.
* **Client.php** - Used to define the module's routes for the client / guest area.

### Api folder

Expand Down Expand Up @@ -53,4 +53,3 @@ This extension is open source software and is released under the Apache v2.0 lic

This product includes the following third party work:
* Open Source Iconography by [Pictogrammers](https://pictogrammers.com/) licensed under the [Pictogrammers Free License](https://pictogrammers.com/docs/general/license/).
* We recommend hosting your extensions on a public [GitHub](https://github.com) repository.
48 changes: 40 additions & 8 deletions src/html_email/mod_example_email.html.twig
Original file line number Diff line number Diff line change
@@ -1,11 +1,43 @@
{% block subject %}Example Email Subject{% endblock %}
{% block content %}
{% apply markdown %}
Hi {{ c.first_name }},

This is a test message from fossbilling.org

{{ guest.system_company.signature }}

{% endapply %}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style type="text/css">
body {
font-family: Arial, sans-serif;
font-size: 14px;
color: #333333;
}
h1 {
font-size: 24px;
font-weight: bold;
margin: 0 0 20px;
}
p {
margin: 0 0 10px;
}
strong {
font-weight: bold;
}
.signature {
font-style: italic;
color: #999999;
margin-top: 20px;
border-top: 1px solid #cccccc;
padding-top: 10px;
}
</style>
</head>
<body>
<p>Hi {{ c.first_name }},</p>
<p>This is a test message from <a href="fossbilling.org">fossbilling.org</a></p>
<p class="signature">{{ guest.system_company.signature }}</p>
</body>
</html>
{% endblock %}

0 comments on commit e495584

Please sign in to comment.