Просмотр исходного кода

switch '_' with '__' front end

sou 7 лет назад
Родитель
Сommit
5a86f87a4f
2 измененных файлов с 12 добавлено и 12 удалено
  1. 6 6
      lib/views/modal/create_page.html
  2. 6 6
      lib/views/modal/create_template.html

+ 6 - 6
lib/views/modal/create_page.html

@@ -51,8 +51,8 @@
               <div class="create-page-input-row d-flex align-items-center">
               <div class="create-page-input-row d-flex align-items-center">
                 <select id="template-type" class="page-name-input form-control">
                 <select id="template-type" class="page-name-input form-control">
                   <option value="" disabled selected>{{ t('template.option_label.select') }}</option>
                   <option value="" disabled selected>{{ t('template.option_label.select') }}</option>
-                  <option value="local">{{ t('template.local.label') }}(__template) - {{ t('template.local.desc') }}</option>
-                  <option value="global">{{ t('template.global.label') }}(_template) - {{ t('template.global.desc') }}</option>
+                  <option value="children">{{ t('template.local.label') }}(_template) - {{ t('template.local.desc') }}</option>
+                  <option value="decentants">{{ t('template.global.label') }}(__template) - {{ t('template.global.desc') }}</option>
                 </select>
                 </select>
               </div>
               </div>
               <div class="create-page-button-container">
               <div class="create-page-button-container">
@@ -76,12 +76,12 @@
     };
     };
 
 
     $("#template-type").on("change", () => {
     $("#template-type").on("change", () => {
-      if ($("#template-type").val() === "local") {
-        href = pagePath + "/__template#edit-form";
+      if ($("#template-type").val() === "children") {
+        href = pagePath + "/_template#edit-form";
         $("#link-to-template").attr("href", href);
         $("#link-to-template").attr("href", href);
       }
       }
-      else if ($("#template-type").val() === "global") {
-        href = pagePath + "/_template#edit-form";
+      else if ($("#template-type").val() === "decentants") {
+        href = pagePath + "/__template#edit-form";
         $("#link-to-template").attr("href", href);
         $("#link-to-template").attr("href", href);
       };
       };
     });
     });

+ 6 - 6
lib/views/modal/create_template.html

@@ -14,14 +14,14 @@
               <div class="panel panel-default">
               <div class="panel panel-default">
                 <div class="panel-heading">{{ t('template.local.label') }}</div>
                 <div class="panel-heading">{{ t('template.local.label') }}</div>
                 <div class="panel-body">
                 <div class="panel-body">
-                  <p class="text-center"><code>__template</code></p>
+                  <p class="text-center"><code>_template</code></p>
                   <p class="help-block text-center"><small>{{ t('template.local.desc') }}</small></p>
                   <p class="help-block text-center"><small>{{ t('template.local.desc') }}</small></p>
                 </div>
                 </div>
                 <div class="panel-footer text-center">
                 <div class="panel-footer text-center">
                   {% if localTemplateExists %}
                   {% if localTemplateExists %}
-                  <a href="{{ page.path }}/__template#edit-form"><button class="btn btn-sm btn-primary">{{ t('Edit') }}</button></a>
+                  <a href="{{ page.path }}/_template#edit-form"><button class="btn btn-sm btn-primary">{{ t('Edit') }}</button></a>
                   {% else %}
                   {% else %}
-                  <a href="{{ page.path }}/__template#edit-form"><button class="btn btn-sm btn-primary">{{ t('Create') }}</button></a>
+                  <a href="{{ page.path }}/_template#edit-form"><button class="btn btn-sm btn-primary">{{ t('Create') }}</button></a>
                   {% endif %}
                   {% endif %}
                 </div>
                 </div>
               </div>
               </div>
@@ -30,14 +30,14 @@
               <div class="panel panel-default">
               <div class="panel panel-default">
                 <div class="panel-heading">{{ t('template.global.label') }}</div>
                 <div class="panel-heading">{{ t('template.global.label') }}</div>
                 <div class="panel-body">
                 <div class="panel-body">
-                  <p class="text-center"><code>_template</code></p>
+                  <p class="text-center"><code>__template</code></p>
                   <p class="help-block text-center"><small>{{ t('template.global.desc') }}</small></p>
                   <p class="help-block text-center"><small>{{ t('template.global.desc') }}</small></p>
                 </div>
                 </div>
                 <div class="panel-footer text-center">
                 <div class="panel-footer text-center">
                   {% if globalTemplateExists %}
                   {% if globalTemplateExists %}
-                  <a href="{{ page.path }}/_template#edit-form"><button class="btn btn-sm btn-primary">{{ t('Edit') }}</button></a>
+                  <a href="{{ page.path }}/__template#edit-form"><button class="btn btn-sm btn-primary">{{ t('Edit') }}</button></a>
                   {% else %}
                   {% else %}
-                  <a href="{{ page.path }}/_template#edit-form"><button class="btn btn-sm btn-primary">{{ t('Create') }}</button></a>
+                  <a href="{{ page.path }}/__template#edit-form"><button class="btn btn-sm btn-primary">{{ t('Create') }}</button></a>
                   {% endif %}
                   {% endif %}
                 </div>
                 </div>
               </div>
               </div>