Sha256: 13b4650686ddba530292bd77ec2f4dfa0e195c3a1bf6e2566bdf5cbd2e38d312

Contents?: true

Size: 1.1 KB

Versions: 4

Compression:

Stored size: 1.1 KB

Contents

<div class="theme-block box">
  <h3><%= theme[:name] %></h3>
  <% form_for @theme, :url => admin_theme_path, :html => { :method => :put } do |f| -%>
  	<%= f.hidden_field :name, :value => theme[:name] %>
  	<%= image_submit_tag theme[:preview_image] %>
  	<%= theme[:description] %>
  <% end -%>
  <% if DomainTheme.use_domain_themes? -%>
    <% domain_theme = DomainTheme.new(:name => theme[:name]) %>
    <% form_for [:admin, domain_theme] do |f| -%>
    	<%= f.hidden_field :name %>
    	<%= f.label t('disguise.theme_uri_label') %>
    	<%= f.text_field :uri %>
      <%= submit_tag t('disguise.add_uri') %>
    <% end -%>
  <% end -%>
  <% if !@domain_themes[theme[:name]].blank? %>
    <p class="theme-information"><%= t('disguise.uris_title') %></p>
    <ul class="theme-list">
      <% @domain_themes[theme[:name]].each do |domain_theme| -%>
        <li>
          <% form_for [:admin, domain_theme], :html => { :method => :delete } do |f| -%>
            <%= domain_theme.uri %>
            <%= submit_tag t('disguise.delete_uri') %>
          <% end -%>
        </li>
      <% end -%>
    </ul>
  <% end -%>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
disguise-0.3.1 app/views/admin/themes/_theme.html.erb
disguise-0.3.2 app/views/admin/themes/_theme.html.erb
disguise-0.3.3 app/views/admin/themes/_theme.html.erb
disguise-0.3.0 app/views/admin/themes/_theme.html.erb