holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[ljcom] r11912: LJSUP-12104: Rename account page for use...

Committer: akanashin
LJSUP-12104: Rename account page for users without RF domens
U   trunk/cgi-bin/LJ/Widget/Shop/View/RenameAccount.pm
U   trunk/templates/Shop/RenameAccount.tmpl
Modified: trunk/cgi-bin/LJ/Widget/Shop/View/RenameAccount.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/Shop/View/RenameAccount.pm	2012-05-10 11:20:38 UTC (rev 11911)
+++ trunk/cgi-bin/LJ/Widget/Shop/View/RenameAccount.pm	2012-05-10 11:24:04 UTC (rev 11912)
@@ -40,8 +40,11 @@
         'type'  => 'S',
     };
 
+    my $domains = LJ::Pay::Payment::PayItem::DomainRU::get_domains($remote);
+
     my %ret = (
         'current_username' => $current->user,
+        'domainru'          => $domains,
     );
 
     unless ($LJ::TESTING_ENVIRONMENT) {

Modified: trunk/templates/Shop/RenameAccount.tmpl
===================================================================
--- trunk/templates/Shop/RenameAccount.tmpl	2012-05-10 11:20:38 UTC (rev 11911)
+++ trunk/templates/Shop/RenameAccount.tmpl	2012-05-10 11:24:04 UTC (rev 11912)
@@ -47,10 +47,12 @@
 				<li><input type="radio" name="opt_redir" value="0" id="opt_redir_no"> <label for="opt_redir_no"><TMPL_VAR expr="ml('/rename/use.bml.options.unlink', 'oldname', current_ljuser)"></label></li>
 				<li><input type="radio" name="opt_redir" value="1" id="opt_redir_yes" checked="checked"> <label for="opt_redir_yes"><TMPL_VAR expr="ml('/rename/use.bml.options.forward', 'oldname', current_ljuser)"></label></li>
 			</ul>
+			<TMPL_IF domainru>
 			<ul class="b-renacc-options">
 				<li><input type="radio" name="opt_domainru" value="0" id="opt_domainru_no"> <label for="opt_domainru_no"><TMPL_VAR expr="ml('/rename/use.bml.options.nostore')"></label></li>
 				<li><input type="radio" name="opt_domainru" value="1" id="opt_domainru_yes" checked="checked"> <label for="opt_domainru_yes"><TMPL_VAR expr="ml('/rename/use.bml.options.store')"></label></li>
 			</ul>
+			</TMPL_IF>
 			<button type="submit"><TMPL_VAR expr="ml('shop.view.proceed')"></button>
 		</fieldset>
 	</form>

Tags: akanashin, holyandrew, ljcom, pm, tmpl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments