Fix question tab translation
Conflicts: vendor/built_in_modules/survey/app/views/panel/survey/back_end/surveys/_questions.html.erb
This commit is contained in:
		
							parent
							
								
									a5705a57d9
								
							
						
					
					
						commit
						638add3e49
					
				|  | @ -23,13 +23,8 @@ | ||||||
|               </div> |               </div> | ||||||
|             </div> |             </div> | ||||||
|             <div class="btn-group" data-toggle="buttons-radio"> |             <div class="btn-group" data-toggle="buttons-radio"> | ||||||
|               <% if I18n.locale == :zh_tw %> |  | ||||||
|                 <a class="btn change-title active" href="${'#'+_title_translations[2]+'_zh_tw'}" data-toggle="tab"><%= I18nVariable.from_locale('zh_tw') %></a> |  | ||||||
|                 <a class="btn change-title" href="${'#'+_title_translations[2]+'_en'}" data-toggle="tab"><%= I18nVariable.from_locale('en') %></a> |  | ||||||
|               <% else %> |  | ||||||
|               <a class="btn change-title active" href="${'#'+_title_translations[2]+'_en'}" data-toggle="tab"><%= I18nVariable.from_locale('en') %></a> |               <a class="btn change-title active" href="${'#'+_title_translations[2]+'_en'}" data-toggle="tab"><%= I18nVariable.from_locale('en') %></a> | ||||||
|               <a class="btn change-title" href="${'#'+_title_translations[2]+'_zh_tw'}" data-toggle="tab"><%= I18nVariable.from_locale('zh_tw') %></a> |               <a class="btn change-title" href="${'#'+_title_translations[2]+'_zh_tw'}" data-toggle="tab"><%= I18nVariable.from_locale('zh_tw') %></a> | ||||||
|               <% end %> |  | ||||||
|             </div> |             </div> | ||||||
|           </div> |           </div> | ||||||
|         </div> |         </div> | ||||||
|  | @ -39,13 +34,8 @@ | ||||||
|         <div class="controls"> |         <div class="controls"> | ||||||
|           <div class="tab-content textarea-lang"> |           <div class="tab-content textarea-lang"> | ||||||
|             <div class="btn-group" data-toggle="buttons-radio"> |             <div class="btn-group" data-toggle="buttons-radio"> | ||||||
|               <% if I18n.locale == :zh_tw %> |  | ||||||
|                 <a class="btn active" href="${'#'+_description_translations[2]+'_zh_tw'}" data-toggle="tab"><%= I18nVariable.from_locale('zh_tw') %></a> |  | ||||||
|                 <a class="btn" href="${'#'+_description_translations[2]+'_en'}" data-toggle="tab"><%= I18nVariable.from_locale('en') %></a> |  | ||||||
|               <% else %> |  | ||||||
|               <a class="btn active" href="${'#'+_description_translations[2]+'_en'}" data-toggle="tab"><%= I18nVariable.from_locale('en') %></a> |               <a class="btn active" href="${'#'+_description_translations[2]+'_en'}" data-toggle="tab"><%= I18nVariable.from_locale('en') %></a> | ||||||
|               <a class="btn" href="${'#'+_description_translations[2]+'_zh_tw'}" data-toggle="tab"><%= I18nVariable.from_locale('zh_tw') %></a> |               <a class="btn" href="${'#'+_description_translations[2]+'_zh_tw'}" data-toggle="tab"><%= I18nVariable.from_locale('zh_tw') %></a> | ||||||
|               <% end %> |  | ||||||
|             </div> |             </div> | ||||||
|             <div class="tab-pane fade active in" id="${_description_translations[2]+'_en'}"> |             <div class="tab-pane fade active in" id="${_description_translations[2]+'_en'}"> | ||||||
|               <textarea class="resizable" id="${_description_translations[0]+'_en'}" name="${_description_translations[1]+'[en]'}" rows="3">${_description_translations[3].en}</textarea> |               <textarea class="resizable" id="${_description_translations[0]+'_en'}" name="${_description_translations[1]+'[en]'}" rows="3">${_description_translations[3].en}</textarea> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue