From 19292414b1f88f2387f5c8e8e5fa1df67ab60713 Mon Sep 17 00:00:00 2001 From: LouisGac Date: Wed, 16 Dec 2015 11:15:37 +0100 Subject: [PATCH] Dev: added right content subview in label for code readability --- .../labels/_labelviewrightcontent_view.php | 78 ++++++++++++++++ .../views/admin/labels/labelview_view.php | 92 ++----------------- 2 files changed, 88 insertions(+), 82 deletions(-) create mode 100644 application/views/admin/labels/_labelviewrightcontent_view.php diff --git a/application/views/admin/labels/_labelviewrightcontent_view.php b/application/views/admin/labels/_labelviewrightcontent_view.php new file mode 100644 index 00000000000..a3a843c7958 --- /dev/null +++ b/application/views/admin/labels/_labelviewrightcontent_view.php @@ -0,0 +1,78 @@ +
+
+
+
+ + + + + +
+
+
+ + + language), 'get', array('id'=>'browselabelresources','class'=>'form30','name'=>'browselabelresources','target'=>'_blank')); ?> +
    + + +
  • + +
    + gT('Files'), 'flash' => gT('Flash'), 'images' => gT('Images')), array('class'=>' form-control input-lg ') ); ?> +
    +
    + " /> +
    +
  • + + +
  • + + + onclick='window.open("createUrl("/admin/export/sa/resources/export/label/lid/$lid"); ?>", "_blank")' + value="" /> +
  • +
+ + + + + 'importlabelresources', + 'class'=>'form30', + 'name'=>'importlabelresources', + 'enctype'=>'multipart/form-data', + 'onsubmit'=>'return validatefilename(this, "'.gT('Please select a file to import!', 'js').'");')); ?> +
    + + +
  • + + +
  • + + +
  • + + /> +
  • +
+ + + + +
+
+
+
+
+
+
diff --git a/application/views/admin/labels/labelview_view.php b/application/views/admin/labels/labelview_view.php index afc0994ad27..9f3932e1b11 100644 --- a/application/views/admin/labels/labelview_view.php +++ b/application/views/admin/labels/labelview_view.php @@ -3,12 +3,12 @@ var otherisreserved=''; var quickaddtitle=''; -
+

-
+
+ + +
+ renderPartial("./labels/_labelviewrightcontent_view", array('lid'=>$lid)); ?> +
+
+
- - - - -
- - - -
-
-
-
-
- - - -
-
-
- language), 'get', array('id'=>'browselabelresources','class'=>'form30','name'=>'browselabelresources','target'=>'_blank')); ?> -
    -
  • - -
    - gT('Files'), 'flash' => gT('Flash'), 'images' => gT('Images')), array('class'=>' form-control input-lg ') ); ?> -
    -
    - " /> -
    -
  • -
  • - - - onclick='window.open("createUrl("/admin/export/sa/resources/export/label/lid/$lid"); ?>", "_blank")' - value="" /> -
  • -
- - - 'importlabelresources', - 'class'=>'form30', - 'name'=>'importlabelresources', - 'enctype'=>'multipart/form-data', - 'onsubmit'=>'return validatefilename(this, "'.gT('Please select a file to import!', 'js').'");')); ?> -
    -
  • - - -
  • -
  • - - /> -
  • -
- - - -
-
-
- -
-
-
-
-
- - - - -
-