Sha256: 72b4e8db2e3fcc57d2a59b8e521c272aef512214c0a9fa7f9fa62f98b2f67e83
Contents?: true
Size: 1.88 KB
Versions: 3
Compression:
Stored size: 1.88 KB
Contents
<div id="create_language_tree_form" style="display: none"> <div class="info"> <%= render_icon('info') %> <%= t("language_does_not_exist") %> </div> <%- if @language -%> <%- if @languages_with_page_tree.size >= 1 -%> <%= form_tag(alchemy.copy_language_tree_admin_pages_path) do %> <h2><%= t('copy_language_tree_heading') %></h2> <p><%= t("want_to_make_copy_of_existing_language") %></p> <table> <tr> <td class="label"><%= label_tag('languages[old_lang_id]', t('Language tree')) %></td> <td class="select"> <%= select_tag("languages[old_lang_id]", options_for_select(@languages_with_page_tree.map{ |l| [l.name, l.id] }), :class => "medium_long") %> <%= hidden_field_tag("languages[new_lang_id]", @language.id) %> </td> </tr> <tr> <td class="submit" colspan="2"> <%= hidden_field_tag("layoutpage", params[:action] == "layoutpages") if params[:action] == "layoutpages" %> <%= submit_tag t("copy"), :class => 'button' %> </td> </tr> </table> <% end %> <%- end -%> <%- if params[:action] == "index" -%> <%= form_for([:admin, Alchemy::Page.new], :remote => true) do |form| %> <h2><%= t('create_language_tree_heading') %></h2> <p><%= t("want_to_create_new_language") %></p> <%= form.hidden_field :name, :value => @language.frontpage_name %> <%= form.hidden_field :language_id, :value => @language.id %> <%= form.hidden_field :language_code, :value => @language.code %> <%= form.hidden_field :page_layout, :value => @language.page_layout %> <%= form.hidden_field :language_root, :value => true %> <%= form.hidden_field :parent_id, :value => Alchemy::Page.rootpage.id %> <%= form.button t("create_tree_as_new_language", :language => @language.name), :class => 'button' %> <% end %> <%- end -%> <%- else -%> <p><%= t("Actually this language does not exist. Please create this language first.") %></p> <%- end -%> </div>
Version data entries
3 entries across 3 versions & 1 rubygems