-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
# Conflicts: # config/module.config.php # src/Controller/InstallController.php # src/Module.php
- Loading branch information
Showing
5 changed files
with
62 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
"mvc", | ||
"oneplace-module", | ||
"oneplace", | ||
"skeleton", | ||
"autoincrement", | ||
"framework" | ||
], | ||
"require-dev": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
view/one-place/article/autoincrement/install/checkdb.phtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |