Sha256: e0ea29e9ebff7da6c462bf7a672442f689b083057367a881a0a0c862cc639b68

Contents?: true

Size: 1.56 KB

Versions: 15

Compression:

Stored size: 1.56 KB

Contents

<% if tr8n_current_language.rule_classes.size > 0 %>
	<% @dependant_tokens = @translation_key.language_rules_dependant_tokens %>
	<% td_width = (95/(tr8n_current_language.rule_classes.size))  %>  
	
	<table style="width:100%;">
	  <tr>
	    <td style="padding-left:5px; width:100px; font-size:10px; text-align:left; color:#ccc; font-weight:bold;">
			  <%=trla("tokens", "Rules table header")%>
			</td>
	    <% tr8n_current_language.rule_classes.each do |rule_class| %>
	      <td style="font-size:10px; text-align:center; color:#ccc; font-weight:bold; width:<%=td_width%>%">
	         <%=trla(rule_class.dependency_label, "Rules table header") %>
	      </td>    
	    <% end %>
	  </tr>
	            
	  <% @dependant_tokens.each do |token| %>
	  <tr>
	    <td style="font-size:10px; font-weight:bold; padding:5px; vertical-align:middle; ">
	      <%=token.permutable_name %>
	    </td>
	    <% tr8n_current_language.rule_classes.each do |rule_class| %>  
	      <td style="text-align:center; font-size:10px; color: grey; border: 1px dotted #ccc; padding:5px; vertical-align:middle; background:white;">
	        <% if rule_class.dependant?(token) %>
	          <%=check_box_tag("dependencies[#{token.name}][#{rule_class.dependency}]", "true", false, :style => "width:20px;")%>
	        <% else %>
	          n/a  
	        <% end %>  
	      </td>    
	    <% end %>
	  </tr>
	  <% end %>
		 
	</table>
<% else %>
  <%=trla("The language does not have any rules defined and no rules permutations can be generated. Please contact the language manager to define language rules.")%>
<% end %>	

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
tr8n-3.2.3 app/views/tr8n/common/_permutations.html.erb
tr8n-3.2.2 app/views/tr8n/common/_permutations.html.erb
tr8n-3.2.1 app/views/tr8n/common/_permutations.html.erb
tr8n-3.2.0 app/views/tr8n/common/_permutations.html.erb
tr8n-3.1.8 app/views/tr8n/common/_permutations.html.erb
tr8n-3.1.7 app/views/tr8n/common/_permutations.html.erb
tr8n-3.1.6 app/views/tr8n/common/_permutations.html.erb
tr8n-3.1.5 app/views/tr8n/common/_permutations.html.erb
tr8n-3.1.4 app/views/tr8n/common/_permutations.html.erb
tr8n-3.1.3 app/views/tr8n/common/_permutations.html.erb
tr8n-3.1.2 app/views/tr8n/common/_permutations.html.erb
tr8n-3.1.1 app/views/tr8n/common/_permutations.html.erb
tr8n-3.0.5 app/views/tr8n/common/_permutations.html.erb
tr8n-3.0.3 app/views/tr8n/common/_permutations.html.erb
tr8n-3.0.2 app/views/tr8n/common/_permutations.html.erb