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 29, 2024
1 parent dff56a5 commit 96758a1
Show file tree
Hide file tree
Showing 21 changed files with 1,311 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 @@ -423,9 +431,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 @@ -872,6 +887,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 96758a1

Please sign in to comment.