Skip to content

Commit

Permalink
Create help section for configuration and #47 #61
Browse files Browse the repository at this point in the history
  • Loading branch information
baimard committed Jan 26, 2022
1 parent 8aea4c1 commit 234dc62
Show file tree
Hide file tree
Showing 108 changed files with 101 additions and 46 deletions.
Empty file modified .github/workflows/codeql-analysis.yml
100644 → 100755
Empty file.
Empty file modified .github/workflows/release.yml
100644 → 100755
Empty file.
Empty file modified composer.lock
100644 → 100755
Empty file.
Empty file modified js/820.app.js
100644 → 100755
Empty file.
Empty file modified js/820.devisShow.app.js
100644 → 100755
Empty file.
Empty file modified js/820.factureShow.app.js
100644 → 100755
Empty file.
Empty file modified js/856.app.js
100644 → 100755
Empty file.
Empty file modified js/856.devisShow.app.js
100644 → 100755
Empty file.
Empty file modified js/856.factureShow.app.js
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions js/client.app.js
100644 → 100755

Large diffs are not rendered by default.

13 changes: 11 additions & 2 deletions js/configuration.app.js
100644 → 100755

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/devis.app.js
100644 → 100755

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/devisShow.app.js
100644 → 100755

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/facture.app.js
100644 → 100755

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/factureShow.app.js
100644 → 100755

Large diffs are not rendered by default.

Empty file modified js/main.app.js
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions js/produit.app.js
100644 → 100755

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/statistique.app.js
100644 → 100755

Large diffs are not rendered by default.

Empty file modified l10n/bg.js
100644 → 100755
Empty file.
Empty file modified l10n/bg.json
100644 → 100755
Empty file.
Empty file modified l10n/cs.js
100644 → 100755
Empty file.
Empty file modified l10n/cs.json
100644 → 100755
Empty file.
Empty file modified l10n/de.js
100644 → 100755
Empty file.
Empty file modified l10n/de.json
100644 → 100755
Empty file.
Empty file modified l10n/de_DE.js
100644 → 100755
Empty file.
Empty file modified l10n/de_DE.json
100644 → 100755
Empty file.
Empty file modified l10n/el.js
100644 → 100755
Empty file.
Empty file modified l10n/el.json
100644 → 100755
Empty file.
Empty file modified l10n/en_GB.js
100644 → 100755
Empty file.
Empty file modified l10n/en_GB.json
100644 → 100755
Empty file.
Empty file modified l10n/es.js
100644 → 100755
Empty file.
Empty file modified l10n/es.json
100644 → 100755
Empty file.
Empty file modified l10n/eu.js
100644 → 100755
Empty file.
Empty file modified l10n/eu.json
100644 → 100755
Empty file.
Empty file modified l10n/fi.js
100644 → 100755
Empty file.
Empty file modified l10n/fi.json
100644 → 100755
Empty file.
Empty file modified l10n/fr.js
100644 → 100755
Empty file.
Empty file modified l10n/fr.json
100644 → 100755
Empty file.
Empty file modified l10n/hr.js
100644 → 100755
Empty file.
Empty file modified l10n/hr.json
100644 → 100755
Empty file.
Empty file modified l10n/hu.js
100644 → 100755
Empty file.
Empty file modified l10n/hu.json
100644 → 100755
Empty file.
Empty file modified l10n/it.js
100644 → 100755
Empty file.
Empty file modified l10n/it.json
100644 → 100755
Empty file.
Empty file modified l10n/ja.js
100644 → 100755
Empty file.
Empty file modified l10n/ja.json
100644 → 100755
Empty file.
Empty file modified l10n/lt_LT.js
100644 → 100755
Empty file.
Empty file modified l10n/lt_LT.json
100644 → 100755
Empty file.
Empty file modified l10n/mk.js
100644 → 100755
Empty file.
Empty file modified l10n/mk.json
100644 → 100755
Empty file.
Empty file modified l10n/nl.js
100644 → 100755
Empty file.
Empty file modified l10n/nl.json
100644 → 100755
Empty file.
Empty file modified l10n/oc.js
100644 → 100755
Empty file.
Empty file modified l10n/oc.json
100644 → 100755
Empty file.
Empty file modified l10n/pl.js
100644 → 100755
Empty file.
Empty file modified l10n/pl.json
100644 → 100755
Empty file.
Empty file modified l10n/pt_BR.js
100644 → 100755
Empty file.
Empty file modified l10n/pt_BR.json
100644 → 100755
Empty file.
Empty file modified l10n/ru.js
100644 → 100755
Empty file.
Empty file modified l10n/ru.json
100644 → 100755
Empty file.
Empty file modified l10n/sc.js
100644 → 100755
Empty file.
Empty file modified l10n/sc.json
100644 → 100755
Empty file.
Empty file modified l10n/sk.js
100644 → 100755
Empty file.
Empty file modified l10n/sk.json
100644 → 100755
Empty file.
Empty file modified l10n/sl.js
100644 → 100755
Empty file.
Empty file modified l10n/sl.json
100644 → 100755
Empty file.
Empty file modified l10n/tr.js
100644 → 100755
Empty file.
Empty file modified l10n/tr.json
100644 → 100755
Empty file.
Empty file modified l10n/zh_CN.js
100644 → 100755
Empty file.
Empty file modified l10n/zh_CN.json
100644 → 100755
Empty file.
Empty file modified l10n/zh_HK.js
100644 → 100755
Empty file.
Empty file modified l10n/zh_HK.json
100644 → 100755
Empty file.
Empty file modified l10n/zh_TW.js
100644 → 100755
Empty file.
Empty file modified l10n/zh_TW.json
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions lib/Db/Bdd.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ public function checkConfig($idNextcloud){
$this->execSQLNoData($sql, array($this->l->t('Your company name'),
$this->l->t('Your company contact surname'),
$this->l->t('Your company contact name'),
$this->l->t('Your Limited company'),
$this->l->t('Your company Unique identification'),
$this->l->t('Legal company information line one'),
$this->l->t('Legal company information line two'),
$this->l->t('Your company email'),
$this->l->t('Your company phone'),
$this->l->t('Your company address'),
Expand Down
4 changes: 4 additions & 0 deletions src/css/mycss.less
Original file line number Diff line number Diff line change
Expand Up @@ -227,4 +227,8 @@ table.dataTable.display tbody tr.even > [class*="sorting_"] {
float: right;
padding-top:0px;
margin-top: 0px;
}

.ConfigurationHelp{
margin-bottom: 20px;
}
Empty file modified src/js/client.js
100644 → 100755
Empty file.
9 changes: 9 additions & 0 deletions src/js/configuration.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,17 @@ window.addEventListener('DOMContentLoaded', function () {
configuration(path);
configuration(loadConfigurationDT);

/* LISTENER */

var HelpSection = document.getElementById('HelpSection');
HelpSection.addEventListener('click', function(){
var modal = document.getElementById("ConfigurationHelp");
modal.style.display = "block";
});

});


function loadConfigurationDT(response) {
$.each(JSON.parse(response), function (arrayID, myresp) {
$('#entreprise').html(((myresp.entreprise.length === 0) ? '-' : myresp.entreprise));
Expand Down
Empty file modified src/js/devis.js
100644 → 100755
Empty file.
Empty file modified src/js/devisShow.js
100644 → 100755
Empty file.
Empty file modified src/js/facture.js
100644 → 100755
Empty file.
Empty file modified src/js/factureShow.js
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion src/js/listener/main_listener.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { FilePicker } = require("@nextcloud/dialogs");
const { FilePicker, showError } = require("@nextcloud/dialogs");
const { updateDB, configuration, updateEditable, deleteDB, getProduitsById, listProduit } = require("../modules/ajaxRequest.mjs");
const { path, baseUrl } = require("../modules/mainFunction.mjs");
import DataTable from 'datatables.net';
Expand Down
Empty file modified src/js/produit.js
100644 → 100755
Empty file.
Empty file modified src/js/statistique.js
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions templates/configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

<div id="app-content">
<div id="app-content-wrapper">
<?php print_unescaped($this->inc('content/changelog')); ?>
<?php print_unescaped($this->inc('content/configuration')); ?>
</div>
</div>
Expand Down
32 changes: 32 additions & 0 deletions templates/content/changelog.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,35 @@
<button id="sendmail"><?php p($l->t('Send')); ?></button>
</div>
</div>

<div id="ConfigurationHelp" class="modal">
<div class="modal-content">
<span class="modalClose">&times;</span>
<h2><?php p($l->t('Help configure')); ?></h2>
<hr/>
<h2><?php p($l->t('Company name')); ?></h2>
<div class="ConfigurationHelp"><?php p($l->t('This is the name of the company that will appear in the footer of your quote and invoice. For example, you can set : "Company : Cybercorp" or just "Cybercorp"')); ?></div>
<h2><?php p($l->t('Your company contact surname')); ?></h2>
<div class="ConfigurationHelp"><?php p($l->t('First name appear in the quote/invoice header as a contact')); ?></div>
<h2><?php p($l->t('Your company contact name')); ?></h2>
<div class="ConfigurationHelp"><?php p($l->t('Last name appear in the quote/invoice header as a contact')); ?></div>
<h2><?php p($l->t('Legal company information line one')); ?></h2>
<div class="ConfigurationHelp"><?php p($l->t('This is a first line in the footer of your Quote/Invoice with all legals informations you need')); ?></div>
<h2><?php p($l->t('Legal company information line two')); ?></h2>
<div class="ConfigurationHelp"><?php p($l->t('This is a second line in the footer of your Quote/Invoice with all legals informations you need')); ?></div>
<h2><?php p($l->t('Your company address')); ?></h2>
<div class="ConfigurationHelp"><?php p($l->t('Company address appear in the quote/invoice header')); ?></div>
<h2><?php p($l->t('Your company phone')); ?></h2>
<div class="ConfigurationHelp"><?php p($l->t('Phone number appear in the quote/invoice header')); ?></div>
<h2><?php p($l->t('Your company email')); ?></h2>
<div><?php p($l->t('Email appear in the quote/invoice header')); ?></div>
<h2><?php p($l->t('Your company VAT')); ?></h2>
<div class="ConfigurationHelp"><?php p($l->t('Global Default VAT apply to your Quote/Invoice (globally), to change it, please just insert VAT amount without the percent sign')); ?></div>
<h2><?php p($l->t('Automatic generated invoice number')); ?></h2>
<div class="ConfigurationHelp"><?php p($l->t('If you want to have an automatic generated invoice number, set to enable, if you want to be free, set disable. You can enable and disable when you want.')); ?></div>
<h2><?php p($l->t('Global default Currency')); ?></h2>
<div class="ConfigurationHelp"><?php p($l->t('Gloabl currency for the application')); ?></div>
<h2><?php p($l->t('Legal disclaimer/mentions')); ?></h2>
<div class="ConfigurationHelp"><?php p($l->t('Legal disclaimer/mentions you need in your footer - before company information')); ?></div>
</div>
</div>
50 changes: 25 additions & 25 deletions templates/content/configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,53 +8,53 @@
<span><?php p($l->t('Configuration')); ?></span>
</div>
</div>
<h2 id="configuration"><?php p($l->t('Click to edit')); ?></h2>
<div title="<?php p($l->t('Company name')); ?>" class="configuration-global">
<div class="configuration-icon icon-timezone"></div>
<h2 id="configuration"><?php p($l->t('Click to edit')); ?> - <a id="HelpSection"><u><?php p($l->t('Need help ?')); ?></u></a></h2>
<div title="<?php p($l->t('This is the name of the company that will appear in the footer of your quote and invoice. For example, you can set : "Company : Cybercorp" or just "Cybercorp"')); ?>" class="configuration-global">
<div class="configuration-icon icon-details"></div>
<div style="float:none;" id="entreprise" class="configuration-content editable" data-table="configuration" data-column="entreprise" data-id=""><?php p($l->t('Loading …')); ?></div>
</div>
<div title="<?php p($l->t('Contact First name')); ?>" class="configuration-global">
<div class="configuration-icon icon-user"></div>
<div title="<?php p($l->t('First name appear in the quote/invoice header as a contact')); ?>" class="configuration-global">
<div class="configuration-icon icon-details"></div>
<div style="float:none;" id="prenom" class="configuration-content editable" data-table="configuration" data-column="prenom" data-id=""><?php p($l->t('Loading …')); ?></div>
</div>
<div title="<?php p($l->t('Contact name')); ?>" class="configuration-global">
<div class="configuration-icon icon-user"></div>
<div title="<?php p($l->t('Last name appear in the quote/invoice header as a contact')); ?>" class="configuration-global">
<div class="configuration-icon icon-details"></div>
<div style="float:none;" id="nom" class="configuration-content editable" data-table="configuration" data-column="nom" data-id=""><?php p($l->t('Loading …')); ?></div>
</div>
<div title="<?php p($l->t('Company address')); ?>" class="configuration-global">
<div class="configuration-icon icon-address"></div>
<div title="<?php p($l->t('Company address appear in the quote/invoice header')); ?>" class="configuration-global">
<div class="configuration-icon icon-details"></div>
<div style="float:none;" id="adresse" class="configuration-content editable" data-table="configuration" data-column="adresse" data-id=""><?php p($l->t('Loading …')); ?></div>
</div>
<div title="<?php p($l->t('Limited company')); ?>" class="configuration-global">
<div class="configuration-icon icon-edit"></div>
<div title="<?php p($l->t('This is a first line in the footer of your Quote/Invoice with all legals informations you need')); ?>" class="configuration-global">
<div class="configuration-icon icon-details"></div>
<div style="float:none;" id="legal_one" class="configuration-content editable" data-table="configuration" data-column="legal_one" data-id=""><?php p($l->t('Loading …')); ?></div>
</div>
<div title="<?php p($l->t('Unique identification')); ?>" class="configuration-global">
<div class="configuration-icon icon-category-enabled"></div>
<div title="<?php p($l->t('This is a second line in the footer of your Quote/Invoice with all legals informations you need')); ?>" class="configuration-global">
<div class="configuration-icon icon-details"></div>
<div style="float:none;" id="legal_two" class="configuration-content editable" data-table="configuration" data-column="legal_two" data-id=""><?php p($l->t('Loading …')); ?></div>
</div>
<div title="<?php p($l->t('Phone number')); ?>" class="configuration-global">
<div class="configuration-icon icon-phone"></div>
<div title="<?php p($l->t('Phone number appear in the quote/invoice header')); ?>" class="configuration-global">
<div class="configuration-icon icon-details"></div>
<div style="float:none;" id="telephone" class="configuration-content editable" data-table="configuration" data-column="telephone" data-id=""><?php p($l->t('Loading …')); ?></div>
</div>
<div title="<?php p($l->t('Email')); ?>" class="configuration-global">
<div class="configuration-icon icon-mail"></div>
<div title="<?php p($l->t('Email appear in the quote/invoice header')); ?>" class="configuration-global">
<div class="configuration-icon icon-details"></div>
<div style="float:none;" id="mail" class="configuration-content editable" data-table="configuration" data-column="mail" data-id=""><?php p($l->t('Loading …')); ?></div>
</div>
<div title="<?php p($l->t('Default VAT')); ?>" class="configuration-global">
<div class="configuration-icon icon-info"></div>
<div title="<?php p($l->t('Global Default VAT apply to your Quote/Invoice (globally), to change it, please just insert VAT amount without the percent sign')); ?>" class="configuration-global">
<div class="configuration-icon icon-details"></div>
<div style="float:none;" id="tva_default" class="configuration-content editable" data-table="configuration" data-column="tva_default" data-id=""><?php p($l->t('Loading …')); ?></div>
</div>
<div title="<?php p($l->t('Automatic invoice number')); ?>" class="configuration-global">
<div class="configuration-icon icon-category-dashboard"></div>
<div title="<?php p($l->t('Automatic generated invoice number')); ?>" class="configuration-global">
<div class="configuration-icon icon-details"></div>
<select style="float:none;" id="auto_invoice_number" class="configuration-content editableSelect" data-table="configuration" data-column="auto_invoice_number" data-id=""></select>
</div>
<div title="<?php p($l->t('Default Currency')); ?>" class="configuration-global">
<div class="configuration-icon icon-rename"></div>
<div title="<?php p($l->t('Global default Currency')); ?>" class="configuration-global">
<div class="configuration-icon icon-details"></div>
<select style="float:none;" id="currency" class="configuration-content editableSelect" data-table="configuration" data-column="devise" data-id=""></select>
</div>
<div title="<?php p($l->t('Legal disclaimer/mentions')); ?>" class="configuration-global">
<div class="configuration-icon icon-comment"></div>
<div title="<?php p($l->t('Legal disclaimer/mentions you need in your footer - before company information')); ?>" class="configuration-global">
<div class="configuration-icon icon-details"></div>
<div style="float:none;" id="mentions_default" class="configuration-content editable" data-table="configuration" data-column="mentions_default" data-id=""><?php p($l->t('Loading …')); ?></div>
</div>
</div>
2 changes: 1 addition & 1 deletion templates/content/devisshow.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@
</div>
<hr />
<div class="col m-0 pb-0 alert alert-info text-center">
<p><?php p($l->t('Company'));?> <?php echo $res->entreprise; ?><br /><?php echo $res->adresse; ?><br /> <?php p($l->t('Unique identification'));?> : <?php echo $res->legal_two; ?> - <?php p($l->t('Limited company'));?> : <?php echo $res->legal_one; ?></p>
<p><?php echo $res->entreprise; ?><br /><?php echo $res->adresse; ?><br /><?php echo $res->legal_one; ?><br/><?php echo $res->legal_two; ?></p>
</div>
</div>
2 changes: 1 addition & 1 deletion templates/content/factureshow.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
</div>
<hr />
<div class="col m-0 pb-0 alert alert-info text-center">
<p><?php p($l->t('Company'));?> <?php echo $res->entreprise; ?><br /><?php echo $res->adresse; ?><br /> <?php p($l->t('Unique identification'));?> : <?php echo $res->legal_two; ?> - <?php p($l->t('Limited company'));?> : <?php echo $res->legal_one; ?></p>
<p><?php echo $res->entreprise; ?><br /><?php echo $res->adresse; ?><br /><?php echo $res->legal_one; ?><br/><?php echo $res->legal_two; ?></p>
</div>
</div>

Empty file modified tests/Unit/Panther/screens/about.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified tests/Unit/Panther/screens/config.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified tests/Unit/Panther/screens/devis.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified tests/Unit/Panther/screens/facture.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified tests/Unit/Panther/screens/index.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified tests/Unit/Panther/screens/produit.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified tests/Unit/Panther/screens/selectFolder.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified tests/Unit/Panther/screens/statistique.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified translationfiles/templates/gestion.pot
100644 → 100755
Empty file.
Empty file modified vendor/autoload.php
100644 → 100755
Empty file.
Empty file modified vendor/composer/ClassLoader.php
100644 → 100755
Empty file.
Empty file modified vendor/composer/LICENSE
100644 → 100755
Empty file.
Empty file modified vendor/composer/autoload_classmap.php
100644 → 100755
Empty file.
Empty file modified vendor/composer/autoload_namespaces.php
100644 → 100755
Empty file.
Empty file modified vendor/composer/autoload_psr4.php
100644 → 100755
Empty file.
Empty file modified vendor/composer/autoload_real.php
100644 → 100755
Empty file.
Empty file modified vendor/composer/autoload_static.php
100644 → 100755
Empty file.
Empty file modified vendor/composer/installed.json
100644 → 100755
Empty file.

0 comments on commit 234dc62

Please sign in to comment.