From 055c19ab2fec4388e135bc0b2691a6712b21d2e2 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 29 Jan 2017 12:35:25 +0100 Subject: [PATCH] More flexbox implementations --- Controller.php | 2 +- Theme/Backend/editor-single.tpl.php | 7 ++ Theme/Backend/editor.tpl.php | 6 +- Theme/backend/editor-create.tpl.php | 188 +++++++++++++++------------- Theme/backend/editor-list.tpl.php | 50 ++++---- 5 files changed, 140 insertions(+), 113 deletions(-) create mode 100644 Theme/Backend/editor-single.tpl.php diff --git a/Controller.php b/Controller.php index 6fe90ab..65cfdbb 100644 --- a/Controller.php +++ b/Controller.php @@ -154,7 +154,7 @@ class Controller extends ModuleAbstract implements WebInterface public function viewEditorSingle(RequestAbstract $request, ResponseAbstract $response, $data = null) : \Serializable { $view = new View($this->app, $request, $response); - $view->setTemplate('/Modules/Editor/Theme/Backend/editor'); + $view->setTemplate('/Modules/Editor/Theme/Backend/editor-single'); $view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1005301001, $request, $response)); $doc = EditorDocMapper::get((int) $request->getData('id')); diff --git a/Theme/Backend/editor-single.tpl.php b/Theme/Backend/editor-single.tpl.php new file mode 100644 index 0000000..7737b33 --- /dev/null +++ b/Theme/Backend/editor-single.tpl.php @@ -0,0 +1,7 @@ +getData('nav')->render(); ?> + +
+
+ +
+
\ No newline at end of file diff --git a/Theme/Backend/editor.tpl.php b/Theme/Backend/editor.tpl.php index 4ee00fa..82c2058 100644 --- a/Theme/Backend/editor.tpl.php +++ b/Theme/Backend/editor.tpl.php @@ -19,13 +19,13 @@ $doc = $this->getData('doc') ?? null; ?> -
+
-
+
@@ -43,7 +43,7 @@ $doc = $this->getData('doc') ?? null;
-
+
-
-
- -
- -
-
    -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • +
    +
    +
    +
    + -
    - -
    -
      -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    -
    - -
    +
    + +
    +
      +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    +
    + +
    +
      +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    +
    + +
    +
    +
    -
    -
    - -
    - -
    - -
    - -
    +
    +
    +
    +
    + +
    + +
    + +
    + +
    +
    +
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    +
    -
    +
    diff --git a/Theme/backend/editor-list.tpl.php b/Theme/backend/editor-list.tpl.php index f247194..278be00 100644 --- a/Theme/backend/editor-list.tpl.php +++ b/Theme/backend/editor-list.tpl.php @@ -25,27 +25,31 @@ $footerView->setPage(1); $docs = $this->getData('docs'); echo $this->getData('nav')->render(); ?> -
    - - - - - - - - $value) : $count++; - $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/editor/single?id=' . $value->getId()); ?> - -
    getText('Documents'); ?>
    getText('Title'); ?> - getText('Creator'); ?> - getText('Created'); ?> -
    render(); ?> -
    getTitle(); ?> - getCreatedBy(); ?> - getCreatedAt()->format('Y-m-d H:i:s'); ?> - - -
    getText('Empty', 0, 0); ?> - -
    +
    +
    +
    + + + + + + + + $value) : $count++; + $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/editor/single?id=' . $value->getId()); ?> + +
    getText('Documents'); ?>
    getText('Title'); ?> + getText('Creator'); ?> + getText('Created'); ?> +
    render(); ?> +
    getTitle(); ?> + getCreatedBy(); ?> + getCreatedAt()->format('Y-m-d H:i:s'); ?> + + +
    getText('Empty', 0, 0); ?> + +
    +
    +