myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [3335] branches/wf4ever/app/views/packs: WFE-821


From: noreply
Subject: [myexperiment-hackers] [3335] branches/wf4ever/app/views/packs: WFE-821 Move upload to _add_item_ro.rhtml
Date: Wed, 23 Jan 2013 13:46:04 +0000 (UTC)

Revision
3335
Author
stain
Date
2013-01-23 13:46:04 +0000 (Wed, 23 Jan 2013)

Log Message

WFE-821 Move upload to _add_item_ro.rhtml

Conditional show either RO upload or classic upload

Modified Paths

Added Paths

Diff

Added: branches/wf4ever/app/views/packs/_add_item_ro.rhtml (0 => 3335)


--- branches/wf4ever/app/views/packs/_add_item_ro.rhtml	                        (rev 0)
+++ branches/wf4ever/app/views/packs/_add_item_ro.rhtml	2013-01-23 13:46:04 UTC (rev 3335)
@@ -0,0 +1,20 @@
+<% if true %>
+        <p>
+          <% form_tag(create_resource_pack_path(@pack), :multipart => true, :method => :post) do %>
+            <%= file_field_tag :data -%>
+            <%= submit_tag("Aggregate internal resource") -%>
+          <% end %>
+        </p>
+        <p>
+          <% form_tag(create_resource_pack_path(@pack), :multipart => true, :method => :post) do %>
+            <%= file_field_tag :data -%>
+            <%= submit_tag("Aggregate workflow") -%>
+          <% end %>
+        </p>
+        <p>
+          <% form_tag(create_resource_pack_path(@pack), :multipart => true, :method => :post) do %>
+            <%= text_field_tag :uri -%>
+            <%= submit_tag("Aggregate external resource") -%>
+          <% end %>
+        </p>      
+<% end %>

Modified: branches/wf4ever/app/views/packs/show.rhtml (3334 => 3335)


--- branches/wf4ever/app/views/packs/show.rhtml	2013-01-23 13:08:05 UTC (rev 3334)
+++ branches/wf4ever/app/views/packs/show.rhtml	2013-01-23 13:46:04 UTC (rev 3335)
@@ -130,31 +130,19 @@
   			<br/>
 			
 			<% if @authorised_to_edit -%>
-				<h3>
+      <section id="add_item">
+        <h3>
 					<%= info_icon_with_tooltip("This section provides various ways of adding items to this pack") %>
 					Add an Item
 				</h3>
-        <p>
-          <% form_tag(create_resource_pack_path(@pack), :multipart => true, :method => :post) do %>
-            <%= file_field_tag :data -%>
-            <%= submit_tag("Aggregate internal resource") -%>
-          <% end %>
-        </p>
-        <p>
-          <% form_tag(create_resource_pack_path(@pack), :multipart => true, :method => :post) do %>
-            <%= file_field_tag :data -%>
-            <%= submit_tag("Aggregate workflow") -%>
-          <% end %>
-        </p>
-        <p>
-          <% form_tag(create_resource_pack_path(@pack), :multipart => true, :method => :post) do %>
-            <%= text_field_tag :uri -%>
-            <%= submit_tag("Aggregate external resource") -%>
-          <% end %>
-        </p>
-				<a name="add_item"></a>
-				<%= render :partial => "add_item", :locals => { :pack => @pack } -%>
+        <% if @pack.ro_uri %>      
+          <%= render :partial => "add_item_ro", :locals => { :pack => @pack } -%>
+        <% else %>
+  				<%= render :partial => "add_item", :locals => { :pack => @pack } -%>
+        <% end %>
+      </section>
 			<% end -%>
+      
 		</div>
 	</div>
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]