Compare commits
6 commits
Author | SHA1 | Date | |
---|---|---|---|
|
387f45588f | ||
|
ef7981af75 | ||
|
9090b41c9e | ||
|
81a3640362 | ||
|
d906a8e539 | ||
|
e8a6174b1a |
8 changed files with 133 additions and 71 deletions
BIN
.form.php.swp
BIN
.form.php.swp
Binary file not shown.
BIN
.index.php.swp
BIN
.index.php.swp
Binary file not shown.
11
README.md
11
README.md
|
@ -1,8 +1,8 @@
|
||||||
# Kostenerstattungsformular
|
# Kostenerstattungsformular
|
||||||
|
|
||||||
## INSTALL
|
## INSTALL it
|
||||||
|
|
||||||
Install the following programs and PHP modules:
|
Install the following programs and PHP (7.4) modules:
|
||||||
|
|
||||||
* pdftk
|
* pdftk
|
||||||
* php-session
|
* php-session
|
||||||
|
@ -11,7 +11,12 @@ Install the following programs and PHP modules:
|
||||||
* php-ctype
|
* php-ctype
|
||||||
* php-filter
|
* php-filter
|
||||||
* php-fileinfo
|
* php-fileinfo
|
||||||
|
* ImageMagick
|
||||||
|
|
||||||
Copy **config.sample.php** to **config.php**, and edit **config.php** to your needs.
|
Copy **config.sample.php** to **config.php**, and edit **config.php** to your needs.
|
||||||
|
Within config.php you'll have to state where the pdftk and (ImageMagick-)convert binaries are situated on the system.
|
||||||
|
Configure the php.ini according to php-production.ini.
|
||||||
|
|
||||||
|
|
||||||
|
Then you are ready to go.
|
||||||
|
|
||||||
Tha's it.
|
|
||||||
|
|
81
form.php
81
form.php
|
@ -1,9 +1,9 @@
|
||||||
<h1>
|
<h1>
|
||||||
<?php echo _($localeYaml['mainheader'][$loc])?>
|
<?php echo $localeYaml['mainheader'][$loc]?>
|
||||||
</h1>
|
</h1>
|
||||||
<p>
|
<p>
|
||||||
<?php echo _($localeYaml['mainheader_subtext_1'][$loc])?><BR>
|
<?php echo $localeYaml['mainheader_subtext_1'][$loc]?><BR>
|
||||||
<?php echo _($localeYaml['mainheader_subtext_2'][$loc])?><BR><BR>
|
<?php echo $localeYaml['mainheader_subtext_2'][$loc]?><BR><BR>
|
||||||
<?php
|
<?php
|
||||||
$ct = @file_get_contents( "./locale/$loc/h1.php");
|
$ct = @file_get_contents( "./locale/$loc/h1.php");
|
||||||
if ($ct==false)
|
if ($ct==false)
|
||||||
|
@ -16,42 +16,40 @@
|
||||||
|
|
||||||
<form data-kube="kaform" name="theform" id="theform" action="submit.php" method="POST">
|
<form data-kube="kaform" name="theform" id="theform" action="submit.php" method="POST">
|
||||||
|
|
||||||
<fieldset> <legend><?php echo _($localeYaml['form_1_header'][$loc])?></legend>
|
<fieldset> <legend><?php echo $localeYaml['form_1_header'][$loc]?></legend>
|
||||||
|
|
||||||
<div class="is-row">
|
<div class="is-row">
|
||||||
<div class="is-col">
|
<div class="is-col">
|
||||||
<input required type="input"
|
<input required type="input"
|
||||||
size="32" id="projectid" name="project"
|
size="32" id="projectid" name="project"
|
||||||
placeholder="<?php echo _($localeYaml['form_1_placeholder_1'][$loc])?>" />
|
placeholder="<?php echo $localeYaml['form_1_placeholder_1'][$loc]?>" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="is-row">
|
<div class="is-row">
|
||||||
<div class="is-col">
|
<div class="is-col">
|
||||||
<input required type="input" size="32"
|
<input required type="input" size="32"
|
||||||
` id="realname" name="realname" placeholder="<?php echo _($localeYaml['form_1_placeholder_2'][$loc])?>" />
|
` id="realname" name="realname" placeholder="<?php echo $localeYaml['form_1_placeholder_2'][$loc]?>" />
|
||||||
</div>
|
</div>
|
||||||
<div class="is-col">
|
<div class="is-col">
|
||||||
<input type="input" size="32"
|
<input type="input" size="32"
|
||||||
` id="wmdecontact" name="wmdecontact"
|
` id="wmdecontact" name="wmdecontact"
|
||||||
placeholder="<?= _($localeYaml['form_1_placeholder_3'][$loc])?>" />
|
placeholder="<?= $localeYaml['form_1_placeholder_3'][$loc]?>" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="is-row">
|
<div class="is-row">
|
||||||
<div class="is-col">
|
<div class="is-col">
|
||||||
<input type="tel" size="32"
|
<input type="tel" size="32"
|
||||||
id="phone" name="phone"
|
id="phone" name="phone"
|
||||||
placeholder="<?= _($localeYaml['form_1_placeholder_4'][$loc])?>" />
|
placeholder="<?= $localeYaml['form_1_placeholder_4'][$loc]?>" />
|
||||||
</div>
|
</div>
|
||||||
<div class="is-col">
|
<div class="is-col">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="is-row">
|
<div class="is-row">
|
||||||
<div class="is-col">
|
<div class="is-col">
|
||||||
<input required type="email" size="32" id="email"
|
<input required type="email" size="32" id="email"
|
||||||
name="email" placeholder="<?= _($localeYaml['form_1_placeholder_5'][$loc])?>" />
|
name="email" placeholder="<?= $localeYaml['form_1_placeholder_5'][$loc]?>" />
|
||||||
</div>
|
</div>
|
||||||
<div class="is-col">
|
<div class="is-col">
|
||||||
</div>
|
</div>
|
||||||
|
@ -61,14 +59,14 @@
|
||||||
<div class="is-col">
|
<div class="is-col">
|
||||||
|
|
||||||
<nav class="tabs" data-kube="tabs" data-equal="false">
|
<nav class="tabs" data-kube="tabs" data-equal="false">
|
||||||
<a href="#bank-eu" class="is-active"><?=_($localeYaml['form_1_SEPA'][$loc])?></a>
|
<a href="#bank-eu" class="is-active"><?=$localeYaml['form_1_SEPA'][$loc]?></a>
|
||||||
<a href="#bank-noneu"><?=_($localeYaml['form_1_noSEPA'][$loc])?></a>
|
<a href="#bank-noneu"><?=$localeYaml['form_1_noSEPA'][$loc]?></a>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<section id="bank-eu">
|
<section id="bank-eu">
|
||||||
<div class="is-row">
|
<div class="is-row">
|
||||||
<div class="is-col">
|
<div class="is-col">
|
||||||
<input type="input" size="32" name="sepa_owner" placeholder="<?=_($localeYaml['form_1_SEPA_placeholder_1'][$loc])?>" />
|
<input type="input" size="32" name="sepa_owner" placeholder="<?=$localeYaml['form_1_SEPA_placeholder_1'][$loc]?>" />
|
||||||
</div>
|
</div>
|
||||||
<div class="is-col">
|
<div class="is-col">
|
||||||
</div>
|
</div>
|
||||||
|
@ -76,14 +74,14 @@
|
||||||
|
|
||||||
<div class="is-row">
|
<div class="is-row">
|
||||||
<div class="is-col">
|
<div class="is-col">
|
||||||
<input type="input" size="32" id="iban" name="iban" placeholder="<?=_($localeYaml['form_1_SEPA_placeholder_2'][$loc])?>" />
|
<input type="input" size="32" id="iban" name="iban" placeholder="<?=$localeYaml['form_1_SEPA_placeholder_2'][$loc]?>" />
|
||||||
</div>
|
</div>
|
||||||
<div class="is-col">
|
<div class="is-col">
|
||||||
<input type="input" size="32" id="bic" name="bic" placeholder="<?=_($localeYaml['form_1_SEPA_placeholder_3'][$loc])?>" />
|
<input type="input" size="32" id="bic" name="bic" placeholder="<?=$localeYaml['form_1_SEPA_placeholder_3'][$loc]?>" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<textarea id="comments" name="comments" style="resize:none;" cols="32" rows="4"
|
<textarea id="comments" name="comments" style="resize:none;" cols="32" rows="4"
|
||||||
placeholder="<?=_($localeYaml['form_1_SEPA_placeholder_4'][$loc])?>"></textarea >
|
placeholder="<?=$localeYaml['form_1_SEPA_placeholder_4'][$loc]?>"></textarea >
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
@ -91,35 +89,35 @@
|
||||||
<section id="bank-noneu">
|
<section id="bank-noneu">
|
||||||
<div class="is-row">
|
<div class="is-row">
|
||||||
<div class="is-col">
|
<div class="is-col">
|
||||||
<input type="input" size="32" name="non_sepa_owner" placeholder="<?=_($localeYaml['form_1_noSEPA_placeholder_1'][$loc])?>" />
|
<input type="input" size="32" name="non_sepa_owner" placeholder="<?=$localeYaml['form_1_noSEPA_placeholder_1'][$loc]?>" />
|
||||||
</div>
|
</div>
|
||||||
<div class="is-col">
|
<div class="is-col">
|
||||||
<input type="input" size="32" id="n_bic" name="n_bic" placeholder="<?=_($localeYaml['form_1_noSEPA_placeholder_2'][$loc])?>" />
|
<input type="input" size="32" id="n_bic" name="n_bic" placeholder="<?=$localeYaml['form_1_noSEPA_placeholder_2'][$loc]?>" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="is-row">
|
<div class="is-row">
|
||||||
<div class="is-col">
|
<div class="is-col">
|
||||||
<input type="input" size="32" id="n_iban" name="n_iban" placeholder="<?=_($localeYaml['form_1_noSEPA_placeholder_3'][$loc])?>" />
|
<input type="input" size="32" id="n_iban" name="n_iban" placeholder="<?=$localeYaml['form_1_noSEPA_placeholder_3'][$loc]?>" />
|
||||||
</div>
|
</div>
|
||||||
<div class="is-col">
|
<div class="is-col">
|
||||||
<input type="input" size="32" id="n_routing" name="n_routing" placeholder="<?=_($localeYaml['form_1_noSEPA_placeholder_4'][$loc])?>" />
|
<input type="input" size="32" id="n_routing" name="n_routing" placeholder="<?=$localeYaml['form_1_noSEPA_placeholder_4'][$loc]?>" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<input class="EU nonEU" type="input" size="32" id="n_bank" name="n_bankname" placeholder="<?=$localeYaml['form_1_noSEPA_placeholder_5'][$loc]?>" />
|
<input class="EU nonEU" type="input" size="32" id="n_bank" name="n_bankname" placeholder="<?=$localeYaml['form_1_noSEPA_placeholder_5'][$loc]?>" />
|
||||||
|
|
||||||
<textarea class="nonEU" name="n_bankaddress" id="n_bankaddress" style="resize:both;" cols="32" rows="4"
|
<textarea class="nonEU" name="n_bankaddress" id="n_bankaddress" style="resize:both;" cols="32" rows="4"
|
||||||
placeholder="<?=_($localeYaml['form_1_noSEPA_placeholder_6'][$loc])?>"></textarea>
|
placeholder="<?=$localeYaml['form_1_noSEPA_placeholder_6'][$loc]?>"></textarea>
|
||||||
<br>
|
<br>
|
||||||
<textarea name="n_address" lang="de" class="nonEU" id="n_address" style="resize:both;" cols="32" rows="4"
|
<textarea name="n_address" lang="de" class="nonEU" id="n_address" style="resize:both;" cols="32" rows="4"
|
||||||
placeholder="<?=_($localeYaml['form_1_noSEPA_placeholder_7'][$loc])?>"></textarea>
|
placeholder="<?=$localeYaml['form_1_noSEPA_placeholder_7'][$loc]?>"></textarea>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<textarea id="n_comments" name="n_comments"
|
<textarea id="n_comments" name="n_comments"
|
||||||
style="resize:both;" cols="32" rows="4"
|
style="resize:both;" cols="32" rows="4"
|
||||||
placeholder="<?=_($localeYaml['form_1_noSEPA_placeholder_8'][$loc])?>"></textarea>
|
placeholder="<?=$localeYaml['form_1_noSEPA_placeholder_8'][$loc]?>"></textarea>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
@ -129,10 +127,10 @@
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
|
||||||
<fieldset id="fieldset2"> <legend><?=_($localeYaml['form_2_header'][$loc])?></legend>
|
<fieldset id="fieldset2"> <legend><?=$localeYaml['form_2_header'][$loc]?></legend>
|
||||||
<div class="is-row">
|
<div class="is-row">
|
||||||
<div class="is-col">
|
<div class="is-col">
|
||||||
<?=_($localeYaml['form_2_currency'][$loc])?>
|
<?=$localeYaml['form_2_currency'][$loc]?>
|
||||||
</div>
|
</div>
|
||||||
<div class="is-col">
|
<div class="is-col">
|
||||||
<select onchange="renumberTableRows()" name='currency' id="currency" >
|
<select onchange="renumberTableRows()" name='currency' id="currency" >
|
||||||
|
@ -149,13 +147,13 @@
|
||||||
<table id="tabtab" class="is-responsive is-bordered is-striped">
|
<table id="tabtab" class="is-responsive is-bordered is-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th><?=_($localeYaml['form_2_table_1'][$loc])?></th>
|
<th><?=$localeYaml['form_2_table_1'][$loc]?></th>
|
||||||
<th><?=_($localeYaml['form_2_table_2'][$loc])?></th>
|
<th><?=$localeYaml['form_2_table_2'][$loc]?></th>
|
||||||
<th><?=_($localeYaml['form_2_table_3'][$loc])?></th>
|
<th><?=$localeYaml['form_2_table_3'][$loc]?></th>
|
||||||
<th><?=_($localeYaml['form_2_table_4'][$loc])?></th>
|
<th><?=$localeYaml['form_2_table_4'][$loc]?></th>
|
||||||
<th><?=_($localeYaml['form_2_table_5'][$loc])?></th>
|
<th><?=$localeYaml['form_2_table_5'][$loc]?></th>
|
||||||
<th><?=_($localeYaml['form_2_table_6'][$loc])?></th>
|
<th><?=$localeYaml['form_2_table_6'][$loc]?></th>
|
||||||
<th><?=_($localeYaml['form_2_table_7'][$loc])?></th>
|
<th><?=$localeYaml['form_2_table_7'][$loc]?></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="tabbody">
|
<tbody id="tabbody">
|
||||||
|
@ -163,15 +161,15 @@
|
||||||
</table>
|
</table>
|
||||||
<div class="is-col">
|
<div class="is-col">
|
||||||
<button id="add_issue" type="button" onclick="addRow();"
|
<button id="add_issue" type="button" onclick="addRow();"
|
||||||
class="button is-green"><?=_($localeYaml['form_2_button'][$loc])?></button>
|
class="button is-green"><?=$localeYaml['form_2_button'][$loc]?></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<br>
|
<br>
|
||||||
<fieldset> <legend><?=_($localeYaml['form_3_header'][$loc])?></legend>
|
<fieldset> <legend><?=$localeYaml['form_3_header'][$loc]?></legend>
|
||||||
<div class="is-row">
|
<div class="is-row">
|
||||||
<div class="is-col valign="center"">
|
<div class="is-col valign="center"">
|
||||||
<?=_($localeYaml['form_3_subtext_1'][$loc])?>
|
<?=$localeYaml['form_3_subtext_1'][$loc]?>
|
||||||
</div>
|
</div>
|
||||||
<div class="is-col">
|
<div class="is-col">
|
||||||
<input input name="advance" id="advance" type="text" placeholder="0,00 EUR"/>
|
<input input name="advance" id="advance" type="text" placeholder="0,00 EUR"/>
|
||||||
|
@ -180,7 +178,7 @@
|
||||||
|
|
||||||
<div class="is-row">
|
<div class="is-row">
|
||||||
<div class="is-col valign="center"">
|
<div class="is-col valign="center"">
|
||||||
<?=_($localeYaml['form_3_subtext_2'][$loc])?>*
|
<?=$localeYaml['form_3_subtext_2'][$loc]?>*
|
||||||
</div>
|
</div>
|
||||||
<div class="is-col">
|
<div class="is-col">
|
||||||
<input id="agree" type="checkbox" />
|
<input id="agree" type="checkbox" />
|
||||||
|
@ -190,12 +188,12 @@
|
||||||
<div class="is-row">
|
<div class="is-row">
|
||||||
<div class="is-col">
|
<div class="is-col">
|
||||||
<button type="button" onclick="downloadDocument(false);"
|
<button type="button" onclick="downloadDocument(false);"
|
||||||
class="button is-orange"><?=_($localeYaml['form_3_button_1'][$loc])?></button>
|
class="button is-orange"><?=$localeYaml['form_3_button_1'][$loc]?></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="is-col">
|
<div class="is-col">
|
||||||
<button type="button" onclick="downloadDocument(true);"
|
<button type="button" onclick="downloadDocument(true);"
|
||||||
class="button is-green"><?=_($localeYaml['form_3_button_2'][$loc])?></button>
|
class="button is-green"><?=$localeYaml['form_3_button_2'][$loc]?></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -209,5 +207,4 @@
|
||||||
|
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
<?php
|
<?php
|
||||||
|
|
32
index.php
32
index.php
|
@ -34,7 +34,7 @@
|
||||||
$loc = "de-DE";
|
$loc = "de-DE";
|
||||||
|
|
||||||
//$loc = "en-US";
|
//$loc = "en-US";
|
||||||
print "$loc $loc1";
|
//print "$loc $loc1";
|
||||||
$domain = "messages";
|
$domain = "messages";
|
||||||
|
|
||||||
setlocale(LC_MESSAGES, $loc);
|
setlocale(LC_MESSAGES, $loc);
|
||||||
|
@ -42,7 +42,10 @@
|
||||||
|
|
||||||
$results = putenv("LC_ALL=$loc");
|
$results = putenv("LC_ALL=$loc");
|
||||||
$results = putenv("LC_MESSAGES=$loc");
|
$results = putenv("LC_MESSAGES=$loc");
|
||||||
$results = bindtextdomain($domain,"./locale");
|
//$results = bindtextdomain($domain,"./locale");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<html >
|
<html >
|
||||||
<head>
|
<head>
|
||||||
|
@ -88,18 +91,37 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php echo _($localeYaml['impressum'][$loc])?>: <a href="https://www.wikimedia.de/impressum/">https://www.wikimedia.de/impressum</a><br>
|
<?php echo $localeYaml['impressum'][$loc]?>: <a href="https://www.wikimedia.de/impressum/">https://www.wikimedia.de/impressum</a><br>
|
||||||
<?php echo _($localeYaml['privacy'][$loc])?>: <a href="https://www.wikimedia.de/datenschutz/">https://www.wikimedia.de/datenschutz</a>
|
<?php echo $localeYaml['privacy'][$loc]?>: <a href="https://www.wikimedia.de/datenschutz/">https://www.wikimedia.de/datenschutz</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<script src="js/kube.min.js"></script>
|
<script src="js/kube.min.js"></script>
|
||||||
|
<script src="kaform.js"></script>
|
||||||
<script src="addons/upload/kube.upload.min.js"></script>
|
<script src="addons/upload/kube.upload.min.js"></script>
|
||||||
<script src="addons/kube-addons.min.js"></script>
|
<script src="addons/kube-addons.min.js"></script>
|
||||||
<script src="kaform.js"></script>
|
|
||||||
<script src="iban.js/iban.js"></script>
|
<script src="iban.js/iban.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
error_alert_projectid = "<?php echo $localeYaml['error_alert_projectid'][$loc]?>";
|
||||||
|
error_alert_realname = "<?php echo $localeYaml['error_alert_realname'][$loc]?>";
|
||||||
|
error_alert_email = "<?php echo $localeYaml['error_alert_email'][$loc]?>";
|
||||||
|
error_alert_iban = "<?php echo $localeYaml['error_alert_iban'][$loc]?>";
|
||||||
|
error_alert_bic = "<?php echo $localeYaml['error_alert_bic'][$loc]?>";
|
||||||
|
error_alert_paypal = "<?php echo $localeYaml['error_alert_paypal'][$loc]?>";
|
||||||
|
error_alert_expenses = "<?php echo $localeYaml['error_alert_expenses'][$loc]?>";
|
||||||
|
error_alert_agreement = "<?php echo $localeYaml['error_alert_agreement'][$loc]?>";
|
||||||
|
error_alert_ismailable = "<?php echo $localeYaml['error_alert_ismailable'][$loc]?>";
|
||||||
|
error_alert_date = "<?php echo $localeYaml['error_alert_date'][$loc]?>";
|
||||||
|
error_alert_description = "<?php echo $localeYaml['error_alert_description'][$loc]?>";
|
||||||
|
error_alert_sum = "<?php echo $localeYaml['error_alert_sum'][$loc]?>";
|
||||||
|
expenses_table_description_placeholder = "<?php echo $localeYaml['expenses_table_description_placeholder'][$loc]?>";
|
||||||
|
expenses_table_file_placeholder = "<?php echo $localeYaml['expenses_table_file_placeholder'][$loc]?>";
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
31
kaform.js
31
kaform.js
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
var currentRowId=1;
|
var currentRowId=1;
|
||||||
var banktype = "bank-eu";
|
var banktype = "bank-eu";
|
||||||
|
|
||||||
|
@ -23,7 +22,7 @@ function checkAllRows(){
|
||||||
var v =row.cells[f].firstElementChild.value;
|
var v =row.cells[f].firstElementChild.value;
|
||||||
if ( !v ){ // Datum
|
if ( !v ){ // Datum
|
||||||
row.cells[f].firstElementChild.focus();
|
row.cells[f].firstElementChild.focus();
|
||||||
showAlert("Bitte gib ein gültiges Datum an!");
|
showAlert(error_alert_date);
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -32,7 +31,7 @@ function checkAllRows(){
|
||||||
v =row.cells[f].firstElementChild.value;
|
v =row.cells[f].firstElementChild.value;
|
||||||
if ( !v ){ // Datum
|
if ( !v ){ // Datum
|
||||||
row.cells[f].firstElementChild.focus();
|
row.cells[f].firstElementChild.focus();
|
||||||
showAlert("Bitte gib ein Beschreibung ein!");
|
showAlert(error_alert_description);
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -41,7 +40,7 @@ function checkAllRows(){
|
||||||
v =row.cells[f].firstElementChild.value;
|
v =row.cells[f].firstElementChild.value;
|
||||||
if ( !isFloat(v) ){ // Amount
|
if ( !isFloat(v) ){ // Amount
|
||||||
row.cells[f].firstElementChild.focus();
|
row.cells[f].firstElementChild.focus();
|
||||||
showAlert("Bitte gib einen gültigen Betrag ein!");
|
showAlert(error_alert_sum);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -148,7 +147,7 @@ function getUploadField(rid)
|
||||||
data-url="upload.php?row=${rid}" data-url-remove="delete.php"
|
data-url="upload.php?row=${rid}" data-url-remove="delete.php"
|
||||||
data-progress="true"
|
data-progress="true"
|
||||||
data-size="40"
|
data-size="40"
|
||||||
data-placeholder="Datei">
|
data-placeholder="` + expenses_table_file_placeholder + `">
|
||||||
</div>
|
</div>
|
||||||
<div id="upload-target${rid}" class="upload-target small"></div>
|
<div id="upload-target${rid}" class="upload-target small"></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -168,7 +167,7 @@ function getRow(rid,num) {
|
||||||
+ `<input class="tab_input" name="date[${rid}]" value="" type="date" placeholder="Datum*"/>`
|
+ `<input class="tab_input" name="date[${rid}]" value="" type="date" placeholder="Datum*"/>`
|
||||||
+ "</td>"
|
+ "</td>"
|
||||||
+ "<td data-label=\"Beschr.\">"
|
+ "<td data-label=\"Beschr.\">"
|
||||||
+ `<input class="tab_input" name="desc[${rid}]" type="text" placeholder="Beschreibung"/>`
|
+ `<input class="tab_input" name="desc[${rid}]" type="text" placeholder=` + expenses_table_description_placeholder + `/>`
|
||||||
+ "</td>"
|
+ "</td>"
|
||||||
+ "<td data-label=\"Betrag\">"
|
+ "<td data-label=\"Betrag\">"
|
||||||
+ `<input class="tab_input" name="amount[${rid}] type="text" placeholder="0.00"/>`
|
+ `<input class="tab_input" name="amount[${rid}] type="text" placeholder="0.00"/>`
|
||||||
|
@ -293,25 +292,25 @@ function downloadDocument(mail)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
||||||
if (!check_field("projectid", "Bitte gib einen Projektnamen/Zweck der Reise an!"))
|
if (!check_field("projectid", error_alert_projectid))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!check_field("realname", "Bitte gib deinen Realnamen an!"))
|
if (!check_field("realname", error_alert_realname))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!check_field("email", "Bitte gib deinen E-Mail-Adresse an!"))
|
if (!check_field("email", error_alert_email))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (banktype == "bank-eu"){
|
if (banktype == "bank-eu"){
|
||||||
iban = document.getElementById('iban');
|
iban = document.getElementById('iban');
|
||||||
if (!IBAN.isValid(iban.value)){
|
if (!IBAN.isValid(iban.value)){
|
||||||
document.getElementById("iban").focus();
|
document.getElementById("iban").focus();
|
||||||
showAlert("Bitte gib eine korrekte IBAN ein!");
|
showAlert(error_alert_iban);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/* if (!document.getElementById('bic').value.trim().length){
|
/* if (!document.getElementById('bic').value.trim().length){
|
||||||
document.getElementById("bic").focus();
|
document.getElementById("bic").focus();
|
||||||
showAlert("Bitte gib einen korrekte BIC an!");
|
showAlert(error_alert_bic);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -322,7 +321,7 @@ function downloadDocument(mail)
|
||||||
ii = document.getElementById('paypal');
|
ii = document.getElementById('paypal');
|
||||||
if (!document.getElementById('paypal').value.trim().length){
|
if (!document.getElementById('paypal').value.trim().length){
|
||||||
document.getElementById("paypal").focus();
|
document.getElementById("paypal").focus();
|
||||||
showAlert("Bitte gib einen PayPal Account an!");
|
showAlert(error_alert_paypal);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -330,20 +329,20 @@ function downloadDocument(mail)
|
||||||
|
|
||||||
if (countRows()==0){
|
if (countRows()==0){
|
||||||
document.getElementById("add_issue").focus();
|
document.getElementById("add_issue").focus();
|
||||||
showAlert("Bitte füge mind. eine Auslage hinzu!");
|
showAlert(error_alert_expenses);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!document.getElementById("agree").checked){
|
if (!document.getElementById("agree").checked){
|
||||||
document.getElementById("agree").focus();
|
document.getElementById("agree").focus();
|
||||||
showAlert("Bitte bestätige, dass du alle Angaben nach bestem Wissen und Gewissen gemacht hast!");
|
showAlert(error_alert_agreement);
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
if (mail){
|
if (mail){
|
||||||
if (!isMailable()){
|
if (!isMailable()){
|
||||||
showAlert("Um den Antrag elektronisch direkt an WMDE zu schicken, muss jeder Position ein Beleg beigefügt sein.");
|
showAlert(error_alert_ismailable);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -388,5 +387,3 @@ function checkIban()
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
49
locale.yaml
49
locale.yaml
|
@ -143,20 +143,61 @@ form_3_header:
|
||||||
en-US: 3. Advance payment and other
|
en-US: 3. Advance payment and other
|
||||||
form_3_subtext_1:
|
form_3_subtext_1:
|
||||||
de-DE: 'Ich habe bereits einen Vorschuss erhalten in Höhe von:'
|
de-DE: 'Ich habe bereits einen Vorschuss erhalten in Höhe von:'
|
||||||
en-US: I have already received an advance in the amount of:
|
en-US: 'I have already received an advance in the amount of:'
|
||||||
form_3_subtext_2:
|
form_3_subtext_2:
|
||||||
de-DE: 'Hiermit bestätige ich die Vollständig- und Richtigkeit meiner Angaben:'
|
de-DE: 'Hiermit bestätige ich die Vollständig- und Richtigkeit meiner Angaben:'
|
||||||
en-US: Herewith I confirm the completeness and correctness of my data:
|
en-US: 'Herewith I confirm the completeness and correctness of my data:'
|
||||||
form_3_button_1:
|
form_3_button_1:
|
||||||
de-DE: Antrag herunterladen und später einreichen
|
de-DE: Antrag herunterladen und später einreichen
|
||||||
en-US: Download reimbursement claim and submit later
|
en-US: Download reimbursement claim and submit later
|
||||||
form_3_button_2:
|
form_3_button_2:
|
||||||
de-DE: Antrag elektronisch direkt an WMDE schicken
|
de-DE: Antrag elektronisch direkt an WMDE schicken
|
||||||
en-US: Send reimbursement claim electronically directly to WMDE
|
en-US: Send reimbursement claim electronically directly to WMDE
|
||||||
|
error_alert_projectid:
|
||||||
|
de-DE: Bitte gib einen Projektnamen/ Grund der Reise an!
|
||||||
|
en-US: Please enter a project name / reason of travel!
|
||||||
|
error_alert_realname:
|
||||||
|
de-DE: Bitte gib deinen Realnamen an!
|
||||||
|
en-US: Please enter your realname!
|
||||||
|
error_alert_email:
|
||||||
|
de-DE: Bitte gib deine E-mail-Adresse an!
|
||||||
|
en-US: Please enter a valid email address!
|
||||||
|
error_alert_iban:
|
||||||
|
de-DE: Bitte gib eine korrekte IBAN ein!
|
||||||
|
en-US: Please enter a correct IBAN!
|
||||||
|
error_alert_bic:
|
||||||
|
de-DE: Bitte gib eine korrekte BIC an!
|
||||||
|
en-US: Please enter a correct BIC!
|
||||||
|
error_alert_paypal:
|
||||||
|
de-DE: Bitte gib einen PayPal Account an!
|
||||||
|
en-US: Please enter your PayPal account!
|
||||||
|
error_alert_expenses:
|
||||||
|
de-DE: Bitte füge mindestens eine Auslage hinzu!
|
||||||
|
en-US: Please add at least one expense!
|
||||||
|
error_alert_agreement:
|
||||||
|
de-DE: Bitte bestätige, dass du alle Angaben nach bestem Wissen und Gewissen gemacht hast!
|
||||||
|
en-US: Please confirm that you have provided all information to the best of your knowledge and belief!
|
||||||
|
error_alert_ismailable:
|
||||||
|
de-DE: Um den Antrag elektronisch direkt an WMDE zu schicken, muss jeder Position ein Beleg beigefügt sein.
|
||||||
|
en-US: To submit the application electronically directly to WMDE, a receipt must be attached to each line item.
|
||||||
|
error_alert_date:
|
||||||
|
de-DE: Bitte gib ein gültiges Datum an!
|
||||||
|
en-US: Please enter a valid date!
|
||||||
|
error_alert_description:
|
||||||
|
de-DE: Bitte gib eine Beschreibung ein!
|
||||||
|
en-US: Please enter a description!
|
||||||
|
error_alert_sum:
|
||||||
|
de-DE: Bitte gib einen gültigen Betrag ein!
|
||||||
|
en-US: Please enter a valid sum!
|
||||||
|
expenses_table_description_placeholder:
|
||||||
|
de-DE: Beschreibung
|
||||||
|
en-US: Description
|
||||||
|
expenses_table_file_placeholder:
|
||||||
|
de-DE: Datei
|
||||||
|
en-US: File
|
||||||
impressum:
|
impressum:
|
||||||
de-DE: Impressum
|
de-DE: Impressum
|
||||||
en-US: Imprint
|
en-US: Imprint
|
||||||
privacy:
|
privacy:
|
||||||
de-DE: Datenschutz
|
de-DE: Datenschutz
|
||||||
en-US: Data Protection
|
en-US: Data Protection
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue