From 82363f8b37e768d74185d1133a1fc52de0cc53f3 Mon Sep 17 00:00:00 2001 From: JackDandy Date: Sat, 15 Nov 2014 22:14:49 +0000 Subject: [PATCH] Fix unset vars on Add New Shows Page used in the Add Existing Shows context. --- CHANGES.md | 1 + .../interfaces/default/home_newShow.tmpl | 107 +++++++++--------- 2 files changed, 55 insertions(+), 53 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 73a8384a..c29c6028 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -10,6 +10,7 @@ * Change sharper looking heart image on the Add Show page * Change Add Show on Add Trending Show Page to use the full Add New Show flow * Fix adding shows with titles that contain "&" on Add Trending Show page +* Fix unset vars on Add New Shows Page used in the Add Existing Shows context ### 0.3.0 (2014-11-12 14:30:00 UTC) diff --git a/gui/slick/interfaces/default/home_newShow.tmpl b/gui/slick/interfaces/default/home_newShow.tmpl index e18ec6fb..715f8e90 100644 --- a/gui/slick/interfaces/default/home_newShow.tmpl +++ b/gui/slick/interfaces/default/home_newShow.tmpl @@ -2,28 +2,28 @@ #import sickbeard #from sickbeard.helpers import anon_url -#set global $header="New Show" -#set global $title="New Show" +#set global $header = 'New Show' +#set global $title = 'New Show' -#set global $sbPath="../.." +#set global $sbPath = '../..' -#set global $statpath="../.."# -#set global $topmenu="home"# +#set global $statpath = '../..' +#set global $topmenu = 'home' #import os.path -#include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_top.tmpl") +#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl') - #if $varExists('header') -

$header

- #else -

$title

- #end if - +#if $varExists('header') +

$header

+#else +

$title

+#end if +
aoeu
@@ -31,20 +31,21 @@
-
- Find a show on the TVDB or TVRAGE +
+ Find a show on the TVDB or TVRAGE -
- +
+ - #if $use_provided_info: - Show retrieved from existing metadata: $provided_indexer_name +#if $use_provided_info + #set $provided_indexer_local = $provided_indexer + #set $provided_indexer_id_local = $provided_indexer_id + Show retrieved from existing metadata: $provided_indexer_name - #else: - +#else   - #for $indexer in $indexers - - #end for + #for $indexer in $indexers + + #end for   - +
* This will only affect the language of the retrieved metadata file contents and episode filenames.
This DOES NOT allow SickGear to download non-english TV episodes!


- #end if +#end if -
-
+
+ -
- Pick the parent folder +
+ Pick the parent folder -
- #if $provided_show_dir: +
+#if $provided_show_dir Pre-chosen Destination Folder: $provided_show_dir

- #else - #include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_rootDirs.tmpl") - #end if -
-
- -
- Customize options -
- #include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_addShowOptions.tmpl") +#else + #include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_rootDirs.tmpl') +#end if
-
+
- #for $curNextDir in $other_shows: - - #end for - +
+ Customize options +
+#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_addShowOptions.tmpl') +
+
+ +#for $curNextDir in $other_shows + +#end for + -
+
-
- -#if $provided_show_dir: - +
+ +#if $provided_show_dir + #end if -
+
-#include $os.path.join($sickbeard.PROG_DIR,"gui/slick/interfaces/default/inc_bottom.tmpl") +#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')