Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
# Conflicts:
#	config/module.config.php
#	src/Controller/InstallController.php
#	src/Module.php
  • Loading branch information
Praesidiarius committed Feb 17, 2020
2 parents 6a99b5a + ec73211 commit d93b388
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.vagrant/
.idea/
vendor/
config/development.config.php
public/themes/vuze
public/themes/ablepro
data/cache/*
!data/cache/.gitkeep
phpunit.xml
composer.lock
.phpunit.result.cache
docs/html/
2 changes: 2 additions & 0 deletions COPYRIGHT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Copyright (c) 2019-2020, Verein onePlace
All rights reserved. (https://1plc.ch/)
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"mvc",
"oneplace-module",
"oneplace",
"skeleton",
"autoincrement",
"framework"
],
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/NumberController.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class NumberController extends CoreEntityController {
*/
public function __construct(AdapterInterface $oDbAdapter,ArticleTable $oTableGateway,$oServiceManager) {
$this->oTableGateway = $oTableGateway;
$this->sSingleForm = 'worktime-single';
$this->sSingleForm = 'article-single';
parent::__construct($oDbAdapter,$oTableGateway,$oServiceManager);

if($oTableGateway) {
Expand Down
46 changes: 46 additions & 0 deletions view/one-place/article/autoincrement/install/checkdb.phtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header">
<h2>Check for installation</h2>
</div>
<div class="card-body">
<form action="" method="POST">
<div class="form-group">
<?php
?>
<?php
if($bTableExists) { ?>
<div class="alert alert-success py-2 px-2">
<?=$this->translate('Database is up-to-date')?>
</div>
<?php
} else { ?>
<div class="alert alert-warning py-2 px-2">
<?=$this->translate('Database needs update. Please choose config')?>
</div>
<?php
if(file_exists('vendor/'.$sVendor.'/'.$sModule.'/data/structure_simple.sql')) {
?> <br/><input type="radio" name="plc_module_setup_config" value="simple" checked /> Simple
<?php
}
if(file_exists('vendor/'.$sVendor.'/'.$sModule.'/data/structure_extended.sql')) {
?> <br/><input type="radio" name="plc_module_setup_config" value="extended" /> Simple
<?php
}
}
?>
</div>

<?php if (! $bTableExists) { ?>
<div class="form-group">
<button type="submit" class="btn btn-primary">
<?=$this->translate('Update Database')?>
</button>
</div>
<?php } ?>
</form>
</div>
</div>
</div>
</div>

0 comments on commit d93b388

Please sign in to comment.