diff --git a/UPGRADE.md b/UPGRADE.md new file mode 100644 index 0000000..14bb4d8 --- /dev/null +++ b/UPGRADE.md @@ -0,0 +1,75 @@ +# Manual upgrade + + +### 1. Copy new version of original gentelella template to app/Resources/template + +### 2. Modify template files (use regular expressions) + +Stylesheets: +```html +From: href=['"](.*).css['"] +To: href="{{ asset('$1') }}" +``` + +Links: +```html +From: href=['"](.*).html['"] +To: href="/template/$1" +``` + +Scripts: +```html +From: src=['"](js/.*.(js|json))['"] +To: src="{{ asset('$1') }}" +``` + +Images: +```html +From: src=['"](images/.*.(jpg|png))['"] +To: src="{{ asset('$1') }}” +``` + +### 3. Link templates with panel + +In every template file + +After: + +```html + +``` + +Paste: +```html + +``` + +### 4. Copy plain_page.html template to app/Resources/admin.html.twig + +Then replace all paths: + +```html +From: /template/ +To: /admin/ +``` + +and replace + +```html +Form: Site +To: Template +``` + +### Test +From root of the project run command + +```base +$ phpunit +``` + + + diff --git a/app/Resources/views/admin.html.twig b/app/Resources/views/admin.html.twig new file mode 100644 index 0000000..fb3b8e9 --- /dev/null +++ b/app/Resources/views/admin.html.twig @@ -0,0 +1,415 @@ + + + + + + + + + + Gentallela Alela! | + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+ + +
+ + +
+
+ ... +
+
+ Welcome, +

John Doe

+
+
+ + +
+ + + + + + + + +
+
+ + + + + + +
+
+
+
+

Plain Page

+
+ +
+ +
+
+
+ +
+ +
+
+
+

Plain Page

+ +
+
+
+
+
+
+
+ + + +
+
+ Gentelella - Bootstrap Admin Template by Colorlib +
+
+
+ +
+
+ +
+ +
+
+
+ + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/Resources/views/base.html.twig b/app/Resources/views/base.html.twig deleted file mode 100644 index 04a71b4..0000000 --- a/app/Resources/views/base.html.twig +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - Gentallela Alela! | - - {% block stylesheets %} - - - - - - - - {% endblock %} - - - - - - - - - - -
-
- {% include "sidebar.html.twig" %} - {% include "topnav.html.twig" %} - -
- {% block body %}{% endblock %} - {% include "footer.html.twig" %} -
- -
-
- -
- -
-
-
- - {% block javascripts %} - - - - - - - - - {% endblock %} - - - - diff --git a/app/Resources/views/footer.html.twig b/app/Resources/views/footer.html.twig deleted file mode 100644 index ab58530..0000000 --- a/app/Resources/views/footer.html.twig +++ /dev/null @@ -1,12 +0,0 @@ -{% block footer %} - - - -{% endblock %} \ No newline at end of file diff --git a/app/Resources/views/index.html.twig b/app/Resources/views/index.html.twig index 7a55d80..2ad93c0 100755 --- a/app/Resources/views/index.html.twig +++ b/app/Resources/views/index.html.twig @@ -1,4 +1,4 @@ -{% extends "base.html.twig" %} +{% extends "admin.html.twig" %} {% block body %} diff --git a/app/Resources/views/sidebar.html.twig b/app/Resources/views/sidebar.html.twig deleted file mode 100644 index 954e59f..0000000 --- a/app/Resources/views/sidebar.html.twig +++ /dev/null @@ -1,159 +0,0 @@ -
-
- - -
- - -
-
- ... -
-
- Welcome, -

John Doe

-
-
- - -
- - - - - - - - -
-
diff --git a/app/Resources/views/template/calendar.html.twig b/app/Resources/views/template/calendar.html.twig index c7e1c3b..3233114 100755 --- a/app/Resources/views/template/calendar.html.twig +++ b/app/Resources/views/template/calendar.html.twig @@ -27,13 +27,13 @@ @@ -169,10 +169,26 @@
  • Pricing Tables
  • - -
  • Landing Page Coming Soon +
  • Multilevel Menu + +
  • +
  • Landing Page Coming Soon
  • @@ -209,7 +225,7 @@