Sha256: 94a9c055039a3f11916f2917801ed90f0affb41f6628722a41080d019a77acbc

Contents?: true

Size: 1.05 KB

Versions: 19

Compression:

Stored size: 1.05 KB

Contents

<%- if clipboard_empty?('elements') -%>
<%= render :partial => 'new_element_form' %>
<%- else -%>
<div id="overlay_tabs">
	<ul>
		<li><a href="#create_element_tab"><%= t('New') %></a></li>
		<li><a href="#paste_element_tab"><%= t('Paste from clipboard') %></a></li>
	</ul>
	<div id="create_element_tab">
		<%= render :partial => 'new_element_form' %>
	</div>
	<div id="paste_element_tab">
		<%= form_for([:admin, @element], :remote => true, :id => 'paste_element_form') do |f| %>
			<div id="errors" style="display: none"></div>
			<table>
				<tr>
					<td class="label">
						<label for="paste_from_clipboard"><%= t("Element") %></label>
					</td>
					<td class="select">
						<%= clipboard_select_tag(@clipboard_items) %>
					</td>
				</tr>
				<tr>
					<td colspan="2" class="submit">
						<%= f.hidden_field(:page_id) %>
						<%= f.button t("paste"), :class => 'button' %>
					</td>
				</tr>
			</table>
		<% end %>
	</div>
</div>
<script type="text/javascript" charset="utf-8">

	jQuery(function() {
		jQuery("#overlay_tabs").tabs();
	});

</script>
<%- end -%>

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
alchemy_cms-2.1.12 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-2.1.11 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-2.1.9.1 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-2.1.9 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-2.1.8.1 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-2.1.8 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-2.1.7 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-2.1.6 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-2.1.5 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-2.1.4 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-2.1.3 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-2.1.2 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-2.1.1 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-2.1 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-2.1.rc6 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-2.1.rc5 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-2.1.rc4 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-2.1.rc3 app/views/alchemy/admin/elements/new.html.erb
alchemy_cms-2.1.rc2 app/views/alchemy/admin/elements/new.html.erb