diff --git a/application/controllers/Simplefle.php b/application/controllers/Simplefle.php index 09b536994..dff43e23a 100644 --- a/application/controllers/Simplefle.php +++ b/application/controllers/Simplefle.php @@ -29,4 +29,8 @@ class SimpleFLE extends CI_Controller { $this->load->view('interface_assets/footer', $footerData); } + + public function displaySyntax() { + $this->load->view('simplefle/syntax_help'); + } } \ No newline at end of file diff --git a/application/views/simplefle/syntax_help.php b/application/views/simplefle/syntax_help.php new file mode 100644 index 000000000..dd0799f8e --- /dev/null +++ b/application/views/simplefle/syntax_help.php @@ -0,0 +1,28 @@ +
The basic syntax of FastLogEntry
+

Before start logging a qso to notice to basic rules:

+

- Every new QSO get its own new line

+

- At every new line only write data, which changed to the last qso

+
+

We start with the first data, you already filled the form on the left with the date, wwff/sota info, stationcall and operator call. The main data contains the band, mode and time. After time you provide the first qso (basically the callsign)

+
+    20m ssb
+    2134 2m0sql
+
+

So this QSO started at 21:34 (UTC!) with 2M0SQL on 20m SSB.

+

If you do not provide any RST Information the Syntax will use 59 (599 for data). Out next QSO wasn't 59 on both sides so we provide the information with the sent RST first. And it was 2 Minutes later then the first QSO.

+
+    20m ssb
+    2134 2m0sql
+    6 la8aja 47 46
+
+

The first QSO was at 21:34, the second one 2 Minutes later at 21:36 so we write down 6 because this is the only data which changed here. The information about band and mode didn't change. So this data is omitted.

+

For our next QSO at 21:40 we changed band to 40m, but still on SSB. If now RST information is given the syntax will use 59 for every new QSO.

+
+    20m ssb
+    2134 2m0sql
+    6 la8aja 47 46
+    40m 
+    40 dj7nt
+
+

For further information about the syntax please check the Website of DF3CB here.

+ diff --git a/assets/js/sections/simplefle.js b/assets/js/sections/simplefle.js index 032019366..1372326d6 100644 --- a/assets/js/sections/simplefle.js +++ b/assets/js/sections/simplefle.js @@ -93,18 +93,18 @@ $('#simpleFleInfoButton').click(function (event) { }); $('#js-syntax').click(function (event) { - var awardInfoLines = [ - lang_simplefle_syntax_help_ln2, - lang_simplefle_syntax_help_ln3, - lang_simplefle_syntax_help_ln4 - ]; - var simpleFleSyntaxHelp = ""; - awardInfoLines.forEach(function (line) { - simpleFleSyntaxHelp += line + "

"; - }); - BootstrapDialog.alert({ - title: "

"+lang_simplefle_syntax_help_ln1+"

", - message: simpleFleSyntaxHelp, + $('#js-syntax').prop("disabled", false); + $.ajax({ + url: base_url + 'index.php/simplefle/displaySyntax', + type: 'post', + success: function (html) { + BootstrapDialog.alert({ + title: "

"+lang_simplefle_syntax_help_ln1+"

", + // // size: BootstrapDialog.SIZE_NORMAL, + nl2br: false, + message: html, + }); + } }); });