-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Admin view denials - Points addition - Sorting (#45)
* Removed Deletion button and Request deny application * RemoveDeletionButton & DenyApplication * PHP_CS_FIXER * View Denials in Admin Panel * Added First&Lastname in View Denials * First-Lastname added in admin view applications * Applicants Sorted by specialty and points * Checked returned value in deny application transaction" * Removed redundant if in user's index.php * Sorting corrections/additions * Fix exception
- Loading branch information
Showing
13 changed files
with
256 additions
and
85 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
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
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
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,16 @@ | ||
<?php | ||
|
||
use yii\db\Migration; | ||
|
||
class m171024_104206_DenyToApply extends Migration | ||
{ | ||
public function safeUp() | ||
{ | ||
$this->addColumn('{{%applicant}}', 'state', $this->integer()->defaultValue(0)); | ||
} | ||
|
||
public function safeDown() | ||
{ | ||
$this->dropColumn('{{%applicant}}', 'state'); | ||
} | ||
} |
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,16 @@ | ||
<?php | ||
|
||
use yii\db\Migration; | ||
|
||
class m171025_092922_ApplicantsPoints extends Migration | ||
{ | ||
public function safeUp() | ||
{ | ||
$this->addColumn('{{%applicant}}', 'points', $this->decimal(9, 3)); | ||
} | ||
|
||
public function safeDown() | ||
{ | ||
$this->dropColumn('{{%applicant}}', 'points'); | ||
} | ||
} |
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
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
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
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,34 @@ | ||
<?php | ||
|
||
use yii\grid\GridView; | ||
|
||
$this->title = 'Προβολή δηλώσεων άρνησης'; | ||
$this->params['breadcrumbs'][] = ['label' => 'Διαχειριστικές λειτουργίες', 'url' => ['index']]; | ||
$this->params['breadcrumbs'][] = $this->title; | ||
|
||
echo GridView::widget([ | ||
'dataProvider' => $users, | ||
'columns' => [ | ||
['class' => 'yii\grid\SerialColumn'], | ||
[ | ||
'label' => 'Επώνυμο', | ||
'attribute' => 'lastname' | ||
], | ||
[ | ||
'label' => 'Όνομα', | ||
'attribute' => 'firstname' | ||
], | ||
[ | ||
'label' => 'Α.Φ.Μ.', | ||
'attribute' => 'vat' | ||
], | ||
[ | ||
'label' => 'Α.Δ.Τ.', | ||
'attribute' => 'identity' | ||
], | ||
[ | ||
'label' => 'Ειδικότητα', | ||
'attribute' => 'specialty' | ||
] | ||
] | ||
]); |
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,16 @@ | ||
<?php | ||
|
||
use yii\helpers\Html; | ||
|
||
/* @var $this yii\web\View */ | ||
|
||
$this->title = 'Επιβεβαίωση δήλωσης άρνησης αίτησης'; | ||
$this->params['breadcrumbs'][] = $this->title; | ||
|
||
?> | ||
<div class="jumbotron"> | ||
<h1>Επιβεβαίωση άρνησης αίτησης</h1> | ||
<p>Είστε βέβαιοι ότι επιθυμείτε να δηλώσετε άρνηση υποβολής αίτησης;</p> | ||
<p><?= Html::a('Eίμαι βέβαιος / βέβαιη', ['deny'], ['class' => 'btn btn-danger', 'data-method' => 'POST', 'data-confirm' => 'Η δήλωση άρνησης είναι μη αναστρέψιμη ενέργεια. Είστε απόλυτα βέβαιοι;']) ?></p> | ||
<p><?= Html::a('Άκυρο', ['/site/index'], ['class' => 'btn btn-default']) ?></p> | ||
</div> |
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
Oops, something went wrong.