From 04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 9 Jan 2020 10:55:03 +0100 Subject: phpmyadmin working --- .../templates/preferences/manage/error.twig | 20 ++++ .../templates/preferences/manage/main.twig | 112 +++++++++++++++++++++ 2 files changed, 132 insertions(+) create mode 100644 srcs/phpmyadmin/templates/preferences/manage/error.twig create mode 100644 srcs/phpmyadmin/templates/preferences/manage/main.twig (limited to 'srcs/phpmyadmin/templates/preferences/manage') diff --git a/srcs/phpmyadmin/templates/preferences/manage/error.twig b/srcs/phpmyadmin/templates/preferences/manage/error.twig new file mode 100644 index 0000000..d6b3522 --- /dev/null +++ b/srcs/phpmyadmin/templates/preferences/manage/error.twig @@ -0,0 +1,20 @@ +{{ 'Configuration contains incorrect data for some fields.'|trans|error }} +
+ {{ form_errors|raw }} +
+
+ {{ get_hidden_inputs() }} + + + {% if import_merge is not empty %} + + {% endif %} + {% if return_url %} + + {% endif %} +

+ {% trans 'Do you want to import remaining settings?' %} +

+ + +
diff --git a/srcs/phpmyadmin/templates/preferences/manage/main.twig b/srcs/phpmyadmin/templates/preferences/manage/main.twig new file mode 100644 index 0000000..0e51327 --- /dev/null +++ b/srcs/phpmyadmin/templates/preferences/manage/main.twig @@ -0,0 +1,112 @@ +{{ error|raw }} + +
+
+
+

{% trans 'Import' %}

+
+ {{ generate_hidden_max_file_size(max_upload_size) }} + {{ get_hidden_inputs() }} + + + +
+ + +
+ + +
+
+ {% trans 'Settings will be imported from your browser\'s local storage.' %} +
+
+ {% trans 'Saved on: @DATE@' %} +
+
+ {{ 'You have no saved settings!'|trans|notice }} +
+
+
+ {{ 'This feature is not supported by your web browser'|trans|notice }} +
+
+ + +

+ +
+
+ {% if exists_setup_and_not_exists_config %} + {# show only if setup script is available, allows to disable this message #} + {# by simply removing setup directory #} + {# Also do not show in config exists (and setup would refuse to work) #} +
+

{% trans 'More settings' %}

+
+ {{ 'You can set more settings by modifying config.inc.php, eg. by using %sSetup script%s.'|trans|format('','')|raw }} + {{ show_docu('setup', 'setup-script') }} +
+
+ {% endif %} +
+
+
+

{% trans 'Export' %}

+
+ {{ 'Configuration has been saved.'|trans|raw_success }} +
+
+ {{ get_hidden_inputs() }} +
+ +
+ +
+ + +
+
+ + {% trans 'Settings will be saved in your browser\'s local storage.' %} +
+ + {% trans 'Existing settings will be overwritten!' %} + +
+
+
+ {{ 'This feature is not supported by your web browser'|trans|notice }} +
+
+
+ +
+
+
+

{% trans 'Reset' %}

+
+ {{ get_hidden_inputs() }} + {% trans 'You can reset all your settings and restore them to default values.' %} +

+ +
+
+
+
+
-- cgit