Skip to content

Commit

Permalink
Decouple markup from FieldHelper.Move to elements.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioannis committed Apr 25, 2024
1 parent b8a627a commit 6dcdeb0
Show file tree
Hide file tree
Showing 21 changed files with 1,277 additions and 65 deletions.
33 changes: 28 additions & 5 deletions app/src/Controller/StandardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,15 @@ public function add() {
$this->set('vv_subtitle', $subtitle);

// Let the view render
$this->render('/Standard/add-edit-view');
if(in_array($this->name, [
'Cous', 'ApiUsers'
])
) {
$this->render('/Standard/add-edit-view-new');
} else {
// Let the view render
$this->render('/Standard/add-edit-view');
}
}

/**
Expand Down Expand Up @@ -419,9 +427,16 @@ public function edit(string $id) {
$this->set('vv_title', $title);
$this->set('vv_supertitle', $supertitle);
$this->set('vv_subtitle', $subtitle);

// Let the view render
$this->render('/Standard/add-edit-view');

if(in_array($this->name, [
'Cous'
])
) {
$this->render('/Standard/add-edit-view-new');
} else {
// Let the view render
$this->render('/Standard/add-edit-view');
}
}

/**
Expand Down Expand Up @@ -868,6 +883,14 @@ public function view($id = null) {
$this->set('vv_subtitle', $subtitle);

// Let the view render
$this->render('/Standard/add-edit-view');
if(in_array($this->name, [
'Cous', 'ApiUsers'
])
) {
$this->render('/Standard/add-edit-view-new');
} else {
// Let the view render
$this->render('/Standard/add-edit-view');
}
}
}
Loading

0 comments on commit 6dcdeb0

Please sign in to comment.